Slack MCP Server
Contribute to Chandrakant0110/slack-mcp development by creating an account on GitHub.
README
Slack MCP (Model Context Protocol) Server
This is a Slack MCP server implementation that provides various Slack API functionalities through the Model Context Protocol. It allows AI models to interact with Slack through a standardized interface.
Features
- List public channels
- Post messages
- Reply to threads
- Add reactions
- Get channel history
- Get thread replies
- List users
- Get user profiles
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- A Slack workspace with admin access
- A Slack Bot Token
- Your Slack Team ID
Installation
- Clone this repository
- Install dependencies:
npm install
# or
yarn install
- Build the TypeScript code:
npm run build
# or
yarn build
Configuration
- Open
index.ts
and replace the placeholder values:
public static readonly BOT_TOKEN = "enter-your-bot-token-here";
public static readonly TEAM_ID = "enter-your-team-id-here";
Replace these with your actual Slack Bot Token and Team ID.
Usage
Running the Server
After building the project, you can run the server:
node dist/index.js
Setting up in Cursor
To use this MCP server in Cursor:
- Open Cursor settings
- Navigate to the "Model Context Protocol" section
- Add a new tool with the following configuration:
- Name:
slack
- Command:
node /path/to/your/dist/index.js
- Working Directory:
/path/to/your/project
- Name:
Replace /path/to/your
with the actual path to your project directory.
Available Tools
-
slack_list_channels
- Lists public channels in the workspace
- Optional parameters: limit, cursor
-
slack_post_message
- Posts a message to a channel
- Required parameters: channel_id, text
-
slack_reply_to_thread
- Replies to a message thread
- Required parameters: channel_id, thread_ts, text
-
slack_add_reaction
- Adds an emoji reaction to a message
- Required parameters: channel_id, timestamp, reaction
-
slack_get_channel_history
- Gets recent messages from a channel
- Required parameters: channel_id
- Optional parameters: limit
-
slack_get_thread_replies
- Gets all replies in a thread
- Required parameters: channel_id, thread_ts
-
slack_get_users
- Lists all users in the workspace
- Optional parameters: limit, cursor
-
slack_get_user_profile
- Gets detailed profile information for a user
- Required parameters: user_id
Development
To modify the server:
- Make changes to
index.ts
- Rebuild the project:
npm run build
# or
yarn build
Security Notes
- Never commit your actual Slack Bot Token or Team ID to version control
- Consider using environment variables for production deployments
- Ensure your Slack Bot has the necessary OAuth scopes for the actions you want to perform
Contributing
Feel free to submit issues and pull requests for improvements.
License
MIT
推荐服务器
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
AIO-MCP Server
🚀 集成了 AI 搜索、RAG 和多服务(GitLab/Jira/Confluence/YouTube)的一体化 MCP 服务器,旨在增强 AI 驱动的开发工作流程。来自 Folk。
https://github.com/Streen9/react-mcp
react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。
MCP Atlassian
适用于 Atlassian Cloud 产品(Confluence 和 Jira)的 Model Context Protocol (MCP) 服务器。此集成专为 Atlassian Cloud 实例设计,不支持 Atlassian Server 或 Data Center 部署。

any-chat-completions-mcp
将 Claude 与任何 OpenAI SDK 兼容的聊天完成 API 集成 - OpenAI、Perplexity、Groq、xAI、PyroPrompts 等。
Exa MCP Server
一个模型上下文协议服务器,它使像 Claude 这样的人工智能助手能够以安全和受控的方式,使用 Exa AI 搜索 API 执行实时网络搜索。
MySQL MCP Server
允许人工智能助手通过受控界面列出表格、读取数据和执行 SQL 查询,从而使数据库探索和分析更安全、更有条理。