Slack MCP Server Bdc50ff4

MCP办公协作

提供方 bcharleson

办公协作 stdio · 本地进程 OAuth 授权 社区 / 第三方 Claude DesktopClaude
查看接入方式

一个全面的Slack API集成服务器,用于管理频道、发送消息、搜索内容和用户管理等。

一句话选型结论

按资料字段整理

Slack MCP Server Bdc50ff4 属于办公协作类 MCP 服务器,stdio · 本地进程,OAuth 授权,可直接接入 Claude Desktop、Claude,有可直接复制的远程端点配置。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类办公协作 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式支持远程部署
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 30 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

办公协作
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量30暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

Slack集成Python本地部署频道管理消息发送内容搜索用户管理

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
pip install -e .

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 30 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
日程与消息

查日程、发消息、约会议。

表单与审批

填表单、走审批流。

团队协作

同步任务、汇总进展。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 30 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在办公协作场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Slack MCP Server Bdc50ff4当前 30 stdio · 本地进程 支持远程部署 有 2026-05-17
CowAgent 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Karakeep MCP 未标注 未标注 未标注 无 2026-05-17
agentscope 未标注 stdio · 本地进程 本地部署 有 2026-04-11
note-gen 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Everywhere 未标注 stdio · 本地进程 本地部署 有 2026-04-12

服务器档案

办公协作
字段来自项目仓库与公开索引,中文说明由本站标注
提供方bcharleson上游标注的维护方 bcharleson
分类办公协作本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型支持远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

9.8 KB
来自项目仓库与上游目录的原文,未做删改

Slack Agent CLI

A CLI and Model Context Protocol (MCP) server for Slack API integration. Use slack from the terminal for scripting and agent workflows, or slack mcp for AI assistant integration via stdio MCP.

AI agents: See AGENTS.md for install, auth, all commands, MCP tool names, and workflow examples.

Features

Channel Management

  • List all accessible channels (public/private)
  • Get channel information and details
  • Create new channels
  • Archive channels
  • Join/leave channels
  • Set channel topics
  • Fetch channel message history

Messaging

  • Post messages to channels
  • Reply to message threads
  • Update and delete messages
  • Add and remove emoji reactions
  • Get message reactions

Direct Messages (DMs)

  • Send direct messages to users
  • List DM and group DM conversations
  • Fetch DM conversation history
  • Open new DM conversations

Search (requires User Token)

  • Search messages across the workspace
  • Search files
  • Combined search for messages and files

User Management

  • List workspace users
  • Get user profile information
  • Check user presence/online status
  • Look up users by email
  • Get bot and team information

Prerequisites

  • Python 3.10 or higher
  • A Slack workspace with admin access to create apps
  • Slack Bot Token (xoxb-...) for most operations
  • Slack User Token (xoxp-...) for search functionality

Installation

npm (recommended)

Requires Node.js 18+ and Python 3.10+.```bash
npm install -g slack-agent-cli
slack --version


MCP via global install:```bash
slack mcp

From source (Python)

1. Clone the Repository```bash

git clone https://github.com/bcharleson/slack-agent-cli.git
cd slack-agent-cli


#### 2. Create Virtual Environment```bash
python3.12 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install Dependencies```bash

pip install -e .


Or install from requirements:```bash
pip install -r requirements.txt

Slack App Setup

1. Create a Slack App

  1. Go to Slack API Apps
  2. Click "Create New App" → "From scratch"
  3. Name your app and select your workspace

2. Configure Bot Token Scopes

Navigate to OAuth & Permissions and add these Bot Token Scopes:

Channels

  • channels:read - View basic channel info
  • channels:write - Manage public channels
  • channels:history - View messages in public channels
  • groups:read - View private channels
  • groups:write - Manage private channels
  • groups:history - View messages in private channels

Messaging

  • chat:write - Send messages
  • reactions:read - View reactions
  • reactions:write - Add reactions

Direct Messages

  • im:read - View DM info
  • im:write - Start DMs
  • im:history - View DM history
  • mpim:read - View group DM info
  • mpim:write - Start group DMs
  • mpim:history - View group DM history

Users

  • users:read - View users
  • users:read.email - View user emails

3. Configure User Token Scopes (for Search)

If you need search functionality, add these User Token Scopes:

  • search:read - Search messages and files

4. Install the App

  1. Click "Install to Workspace"
  2. Authorize the app
  3. Copy the Bot User OAuth Token (starts with xoxb-)
  4. If using search, also copy the User OAuth Token (starts with xoxp-)

Configuration

Environment Variables

Create a .env file in the project root:```bash

Required: Bot Token for most operations

SLACK_BOT_TOKEN=xoxb-your-bot-token-here

Optional: User Token for search functionality

SLACK_USER_TOKEN=xoxp-your-user-token-here


You can copy the example file:```bash
cp .env.example .env
# Then edit .env with your tokens

Usage

CLI

After installation, the slack command exposes grouped subcommands that mirror the MCP tools:```bash

Channels

slack channels list
slack channels info C01234567
slack channels history C01234567 --limit 10

Messages

slack messages post C01234567 "Hello from the CLI"
slack messages reply C01234567 1710000000.000100 "Thread reply"

DMs

slack dms send U01234567 "Quick note from CLI"
slack dms list

Search (requires SLACK_USER_TOKEN)

slack search messages "project update in:#general"

Users / workspace

slack users list
slack users lookup brandon@example.com
slack workspace team

Output formatting

slack --pretty channels list
slack --output json --quiet channels list


Global options:

- `--bot-token` / `SLACK_BOT_TOKEN`
- `--user-token` / `SLACK_USER_TOKEN`
- `--output json|pretty` (default: `json`)
- `--pretty` shorthand
- `--quiet` for exit-code-only automation

### MCP server

Start the stdio MCP server:```bash
slack mcp
# or
slack-agent-cli mcp

Running the Server (development)```bash

source venv/bin/activate
python -m slack_agent_cli.cli mcp


### Claude Desktop Configuration

Add to your Claude Desktop configuration file:

**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json````json
{
  "mcpServers": {
    "slack": {
      "command": "/path/to/slack-agent-cli/venv/bin/python",
      "args": ["-m", "slack_agent_cli"],
      "cwd": "/path/to/slack-agent-cli",
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token",
        "SLACK_USER_TOKEN": "xoxp-your-user-token"
      }
    }
  }
}

Replace /path/to/slack-agent-cli with the actual path to your installation.

Cursor IDE Configuration

Add to your Cursor MCP settings (~/.cursor/mcp.json):```json
{
"mcpServers": {
"slack-agent-cli": {
"command": "slack",
"args": ["mcp"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_USER_TOKEN": "xoxp-your-user-token"
}
}
}
}


Or with a global install:```json
{
  "mcpServers": {
    "slack-agent-cli": {
      "command": "slack",
      "args": ["mcp"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token",
        "SLACK_USER_TOKEN": "xoxp-your-user-token"
      }
    }
  }
}

Available Tools

Channel Tools

Tool Description
list_channels List all accessible channels
get_channel_info Get details about a specific channel
create_channel Create a new channel
archive_channel Archive a channel
get_channel_history Fetch message history
join_channel Join a channel
leave_channel Leave a channel
set_channel_topic Set channel topic

Message Tools

Tool Description
post_message Post a message to a channel
reply_to_thread Reply in a thread
get_thread_replies Get all replies in a thread
add_reaction Add emoji reaction
remove_reaction Remove emoji reaction
get_message_reactions Get reactions on a message
update_message Update an existing message
delete_message Delete a message

DM Tools

Tool Description
send_dm Send a direct message
list_conversations List DM conversations
get_dm_history Fetch DM history
open_dm Open a DM conversation

Search Tools (requires User Token)

Tool Description
search_messages Search messages
search_files Search files
search_all Search both messages and files

User Tools

Tool Description
list_users List workspace users
get_user_info Get user details
get_user_presence Check if user is online
lookup_user_by_email Find user by email
get_user_profile Get detailed profile
get_bot_info Get bot identity
get_team_info Get workspace info

Testing

Using MCP Inspector```bash

npx @modelcontextprotocol/inspector python -m slack_agent_cli


This opens a web interface to test all available tools interactively.

### Manual Testing

1. Start the server
2. Use Claude Desktop or another MCP client
3. Try basic commands:
   - "List all channels in the workspace"
   - "Get the history of #general channel"
   - "Send a message to #test-channel saying Hello!"

## Troubleshooting

### "SLACK_BOT_TOKEN is not set"

Ensure your `.env` file exists and contains the token, or set it in your MCP client configuration.

### "Search requires a User Token"

Search operations require a User Token (`SLACK_USER_TOKEN`). Add User Token scopes to your Slack app and include the token.

### "channel_not_found"

The bot may not have access to the channel. Ensure:
1. The channel exists
2. The bot is a member of private channels
3. The channel ID is correct (use `list_channels` to find IDs)

### "missing_scope"

Your Slack app is missing required permissions. Check the OAuth scopes section above and add the missing scopes in your Slack app settings.

## Development

### Project Structure```
slack-agent-cli/
├── src/
│   └── slack_agent_cli/
│       ├── cli/
│       │   └── main.py            # Click CLI + `slack mcp`
│       ├── core/
│       │   └── output.py          # JSON/pretty output helpers
│       ├── operations/            # Shared handlers for CLI + MCP
│       │   ├── channels.py
│       │   ├── messages.py
│       │   ├── search.py
│       │   └── users.py
│       ├── tools/                   # MCP tool registration
│       ├── utils/
│       │   └── slack_client.py
│       └── server.py              # FastMCP stdio server
├── pyproject.toml
├── package.json
├── AGENTS.md                      # AI agent guide (commands, MCP, workflows)
├── requirements.txt
├── .env.example
└── README.md

Adding New Tools

  1. Create or edit a file in src/slack_agent_cli/tools/
  2. Define tools using the @mcp.tool() decorator
  3. Register the tools in the server by calling the registration function

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Slack MCP Server Bdc50ff4 怎么安装?

在客户端按下面的安装命令接入:pip install -e .。装完在客户端配置里引用同一个包或端点。

Slack MCP Server Bdc50ff4 怎么在 Claude Desktop、Claude 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Slack MCP Server Bdc50ff4 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Slack MCP Server Bdc50ff4 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

Slack MCP Server Bdc50ff4 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Slack MCP Server Bdc50ff4 能提供哪些能力?

资料显示约 30 个工具;能力标签包括 Slack、Python、Claude。具体工具清单以官方文档为准。

Slack MCP Server Bdc50ff4 需要什么运行环境?

属于本地进程,需要在本机装好运行环境。

Slack MCP Server Bdc50ff4 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。