slack-user-mcp-server
Enables AI agents to interact with Slack using a user token, providing full access to message search, channel history, DMs, and posting as the user.
README
Slack User MCP Server
A personal MCP (Model Context Protocol) server that connects to Slack using your user token (xoxp-...), giving AI agents full access to your workspace — including message search, channel history, DMs, and posting as yourself.
Unlike bot-token-based Slack integrations, this server acts as you, so it can access any channel you're a member of (including private channels and DMs) and use the Slack search API.
Features
- Search messages — Full Slack search syntax (
from:me,in:#channel,has:link, date filters, etc.) - Channel history — Read messages from any channel, DM, or group message you're in
- Post messages — Send messages as yourself (not as a bot)
- User lookup — Find users by name or email
- Thread reading — Fetch all replies in a thread
- Auth verification — Confirm your connection and identity
Tools
| Tool | Description |
|---|---|
slack_search_messages |
Search messages with Slack query syntax |
slack_list_channels |
List channels (public, private, DMs) |
slack_get_channel_history |
Read recent messages from a channel |
slack_post_message |
Send a message as yourself |
slack_lookup_user |
Find users by name or email |
slack_get_user_info |
Get detailed user profile by ID |
slack_get_thread |
Read all replies in a thread |
slack_auth_test |
Verify your connection |
Setup
1. Create a Slack App and Get a User Token
- Go to api.slack.com/apps and create a new app From scratch
- Under OAuth & Permissions, add these User Token Scopes:
search:readchannels:read,channels:historygroups:read,groups:historyim:read,im:historympim:read,mpim:historyusers:read,users:read.emailchat:write
- Install the app to your workspace
- Copy the User OAuth Token (starts with
xoxp-)
2. Install Dependencies and Build
cd slack-user-mcp-server
npm install
npm run build
3. Connect to Claude Desktop
Add this to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"slack-personal": {
"command": "node",
"args": ["/path/to/slack-user-mcp-server/dist/index.js"],
"env": {
"SLACK_USER_TOKEN": "xoxp-your-token-here"
}
}
}
}
Note: If you use a Node version manager like
fnmornvm, use the full path tonodeinstead of just"node". Find it withfnm exec --using=default -- which nodeornvm which default.
4. Restart Claude Desktop
Quit and reopen Claude Desktop. The server will appear in your MCP connections.
Example Queries
Once connected, you can ask your AI assistant things like:
- "Search for my recent Slack messages" — uses
from:me - "What's the latest in #general?" — channel history
- "Find messages about the Q1 budget" — full-text search
- "Who is on the marketing team?" — user lookup
- "Send a message to #general saying the build is green" — post as yourself
Search Syntax
The search tool supports all Slack search modifiers:
| Modifier | Example | Description |
|---|---|---|
from: |
from:me or from:@username |
Messages from a user |
in: |
in:#channel |
Messages in a channel |
has: |
has:link, has:reaction |
Filter by attributes |
before: / after: |
after:2024-01-01 |
Date range |
is: |
is:thread |
Threaded messages only |
Tech Stack
- TypeScript
- MCP TypeScript SDK
- Slack Web API (via fetch)
- Zod for input validation
- stdio transport
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。