Content
# Slack MCP Server
## Project Overview
Supports tools for sending Slack messages, querying channel history, etc., using **Spring AI**.
---
## Main Tools
### Implemented Tools
#### 1. Send Message (postSlackMessage)
* Sends a message to a Slack channel. Partially supports Markdown format.
#### 2. Query Channel History (slackChannelHistory)
* Queries the message history of a Slack channel. You can specify a cursor for pagination and the number of messages to retrieve.
#### 3. Upload File (uploadFileToSlack)
* Uploads a file specified by an absolute path to a Slack channel.
#### 4. Base64 File Upload (uploadFileToSlackByBase64)
* Uploads Base64 encoded file data to a Slack channel.
* However, if the file size is large, token usage may increase, so caution is advised.
> It is recommended to use the absolute path specification method.
#### 5. Schedule Message (slackScheduleMessage)
* A feature that allows you to schedule sending a message at a specific time.
---
## Setup Method
### Build and Run
1. Build the project
```bash
# Build the project
./gradlew build
```
2. Run with **Claude Desktop**
Write `claude_desktop_config.json` as follows.
```json
{
"mcpServers": {
"slack-mcp": {
"command": "java",
"args": [
"-Dfile.encoding\u003dUTF-8",
"-jar",
"JAR_PATH"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_ID": "your-channel-id"
}
}
}
}
```
- `JAR_PATH`: Path to the built jar file
- `SLACK_BOT_TOKEN`: Slack Bot token
- `SLACK_CHANNEL_ID`: Slack channel ID to send messages to
---
## Project Structure
```
src/main/java/dev/luigi/slack/mcp/server/
├── SlackMcpServerApplication.java # Main application class
├── dto/ # Data Transfer Objects
│ ├── common/ # Common DTO
│ ├── request/ # Request DTO
│ └── response/ # Response DTO
└── service/ # Service classes
├── SlackService.java # Slack service interface
├── SlackServiceImpl.java # Slack service implementation
├── file/ # File related services
├── history/ # Channel history related services
├── message/ # Message related services
└── schedule/ # Scheduled message related services
```
Connection Info
You Might Also Like
awesome-mcp-servers
A collection of MCP servers.
git
A Model Context Protocol server for Git automation and interaction.
Appwrite
Build like a team of hundreds
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)