Slack MCP
Slack MCP
セッショントークンを使用してAIエージェントがSlackワークスペースにアクセスできるようにするMCPサーバー。OAuthアプリ、ボット権限、管理者の承認は不要です。
仕組み
Slack MCPは、既存のブラウザセッショントークン(xoxc/xoxd)を使用して、あなたの代わりにSlackとやり取りします。デフォルトではステルス動作で、mark-readツールのみが既読通知を送信します。その他の操作は他のユーザーには見えません。
トークン抽出はバイナリに組み込まれています。ChromeまたはFirefoxでSlackにログインしている場合、セットアップフローでトークンを自動的に抽出できます。DevToolsからのコピー&ペーストは不要です。
Related MCP server: slack-mpm
前提条件
ブラウザでアクティブなSlackセッションが必要です。セットアップを実行する前に、Chrome、Chromium、Edge、またはFirefoxでapp.slack.comのワークスペースにログインしてください。
インストール
Claude Code
claude mcp add slack-mcp -- npx -y @aaronsb/slack-mcp次に、Claudeにauth-setupツールを実行するよう依頼します。ブラウザの選択、プロファイルの選択、自動トークン抽出をガイドします。
Claude Desktop
最新リリースから、お使いのプラットフォーム用の.mcpbファイルをダウンロードします:
プラットフォーム | ファイル |
macOS(Apple Silicon) |
|
macOS(Intel) |
|
Linux(x64) |
|
Linux(ARM) |
|
Windows(x64) |
|
ファイルを開きます(ダブルクリックするか、Claude Desktopにドラッグ&ドロップします)。トークンの入力を求められたら、次のいずれかを選択できます:
空白のままにして、接続後に
auth-setupツールを使用する既にトークンを持っている場合は貼り付ける
スタンドアロンバイナリ
リリースからお使いのプラットフォーム用のバイナリをダウンロードし、次の手順を実行します:
# Extract tokens from your browser (interactive)
./slack-mcp setup
# Run as MCP server (stdio, default)
./slack-mcp
# Run as MCP server (SSE, for remote/shared access)
./slack-mcp --transport ssenpm(グローバル)
npm install -g @aaronsb/slack-mcp
slack-mcp setupトークン設定
Slackトークンを取得するには、最も簡単なものから最も手動のものまで、3つの方法があります:
自動(Chrome/Edge)
auth-setup MCPツールまたはslack-mcp setup CLIコマンドは次のことを行います:
インストールされているブラウザを検出する
Slackが開かれているブラウザとプロファイルを選択させる
ブラウザを開き、Slackに移動し、Chrome DevTools Protocolを介してトークンを抽出する
検証して保存する
抽出前にChromeを完全に閉じる必要があります — 再開するとタブは復元されます。
半自動(Firefox)
セットアップフローは一時的なブラウザ拡張機能を一時ディレクトリに書き込み、about:debuggingを介してFirefoxに読み込むようにガイドします。拡張機能はトークンを抽出し、ローカルのコールバックサーバーに送信します。Firefoxを閉じると自動的に削除されます。
手動
slack-mcp setupを実行するか、auth-setupツールを使用します。ブラウザが検出されない場合、または自動抽出が失敗した場合、ステップバイステップのDevTools手順が記載されたlocalhostウェブページにフォールバックします。
環境変数を介してトークンを直接設定することもできます:
export SLACK_MCP_XOXC_TOKEN="xoxc-..."
export SLACK_MCP_XOXD_TOKEN="xoxd-..."
./slack-mcpツール
ツール | 機能 |
| DM、チャンネル、メンション全体の未読メッセージ |
| 時間フィルタリング付きの最近のチャンネルアクティビティ |
| チャンネルとメンバーシップの参照 |
| 緊急度別にグループ化されたあなたへの@メンション |
| メッセージの検索(完全なSlackクエリ構文) |
| スレッド履歴と会話のコンテキスト |
| 会話のペース分析 |
| チャンネル、DM、またはスレッドに投稿 |
| 会話を既読としてマーク(既読通知を送信する唯一のツール) |
| 絵文字リアクションの追加または削除 |
| ブラウザ自動化によるトークン抽出 |
プライバシー
デフォルトでステルス — 読み取り操作は決して既読通知を送信しません。
mark-readのみが送信します。チャンネル名、IDではない — AIは内部のSlack識別子を決して見ません。
トークンはローカルに保存 —
~/.config/slack-mcp/config.jsonに0600のパーミッションで保存されます。Slack以外へのネットワークトラフィックはなし — バイナリは
slack.com/api/*にのみ接続します。ブラウザのダウンロードはなし — インストール済みのブラウザを使用し、CDNからバイナリを取得することはありません。
開発
make build # Build for current platform
make test # Run tests
make build-all-platforms # Cross-compile (6 platforms)
make release TAG=v1.3.0 # Tag and push (CI handles the rest)ライセンス
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA Model Context Protocol (MCP) server for Slack workspace integration. This server allows AI assistants to interact directly with your Slack workspace, providing tools to manage channels, send messages, list users, and upload files.16,9561MIT
- Flicense-qualityAmaintenanceMCP server for Slack workspace integration, exposing 40+ Slack operations as tools for Claude Desktop and providing a clean async Python API.1
- Alicense-qualityCmaintenanceAn MCP server that enables AI agents to read and write Slack messages as the user, not as a bot, using Slack user tokens for authentic actions across multiple workspaces.1MIT
- Alicense-qualityBmaintenanceMCP server for interacting with Slack using a user token. It allows reading channels, DMs, threads, search, and posting messages as the authenticated user.25MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aaronsb/slack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server