Slack MCP Server
Provides tools for interacting with Slack, including sending and viewing messages, managing channels, searching messages, setting reminders, and more, using a User OAuth Token.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Slack MCP Serverpost 'Meeting at 3pm' in #general"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Slack MCP Server
自前実装の Slack MCP サーバー。User OAuth Token (xoxp-) を使い、自分名義でメッセージ送信・閲覧が可能。
依存: @modelcontextprotocol/sdk のみ(サードパーティ Slack ライブラリなし)。
機能
ツール | 説明 |
| チャンネル一覧(public/private/DM/グループDM) |
| チャンネル履歴取得(チャンネル名指定可、スレッド自動展開) |
| チャンネルメンバー一覧(ユーザー名・メール・組織付き) |
| スレッド返信取得 |
| ピン留めメッセージ一覧(スレッド展開付き) |
| メッセージ投稿(自分名義、チャンネル名指定可、スレッド返信対応) |
| 予約投稿(指定時刻に自動投稿) |
| 投稿済みメッセージの編集 |
| 投稿済みメッセージの削除 |
| リアクション追加 |
| メッセージ検索(Slack検索構文対応) |
| DM送信(ユーザー名指定可) |
| リマインダー設定 |
| リマインダー一覧 |
| ユーザーのオンライン状態確認 |
| チャンネルトピック更新 |
| チャンネルのブックマーク一覧 |
| カスタム絵文字一覧 |
| 自分のSlackステータス変更 |
| ワークスペース全ユーザー一覧 |
| ユーザープロフィール詳細 |
特徴
チャンネル名で指定可能: IDを調べる必要なし(
#general、dev_channel等)ユーザー名自動解決: メッセージ中の
<@U123>や投稿者IDを表示名に変換スレッド自動展開: 返信を全件取得してインライン表示
メッセージリンク付き: 各メッセージに Slack URL を付与
Related MCP server: MCP Slack Python
セットアップ
1. Slack App 作成(一度だけ)
https://api.slack.com/apps にアクセスし「Create New App」をクリック
「From an app manifest」を選択
ワークスペースを選択(例: gochipon)
以下の JSON マニフェストを貼り付けて作成:
{
"display_information": {
"name": "kiro-mcp"
},
"oauth_config": {
"redirect_urls": [
"http://localhost:3000/callback"
],
"scopes": {
"user": [
"bookmarks:read",
"channels:history",
"channels:read",
"channels:write",
"chat:write",
"dnd:read",
"emoji:read",
"files:read",
"groups:history",
"groups:read",
"groups:write",
"identify",
"im:history",
"im:read",
"im:write",
"links:read",
"mpim:history",
"mpim:read",
"mpim:write",
"pins:read",
"reactions:read",
"reactions:write",
"reminders:read",
"reminders:write",
"search:read",
"team:read",
"usergroups:read",
"users:read",
"users:read.email",
"users.profile:read",
"users.profile:write"
]
}
},
"settings": {
"org_deploy_enabled": false,
"socket_mode_enabled": false,
"token_rotation_enabled": false
}
}作成後、Basic Information ページで Client ID と Client Secret を確認
注意: マニフェスト方式で作成すれば、スコープと Redirect URL が一発で設定されるため、手動で個別追加する必要はありません。
2. インストール
git clone <this-repo>
cd slack-mcp
npm install.env.example を編集(Client ID と Client Secret を記入):
SLACK_CLIENT_ID=(Basic Information の Client ID)
SLACK_CLIENT_SECRET=(Basic Information の Client Secret)注意:
.envファイルは初回起動時に.env.exampleから自動生成されます。cpコマンドは不要です。
3. MCP クライアント設定
Kiro
~/.kiro/settings/mcp.json の mcpServers に追加:
"slack": {
"command": "/opt/homebrew/bin/node",
"args": ["/path/to/slack-mcp/server.js"],
"disabled": false
}Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"slack": {
"command": "node",
"args": ["/path/to/slack-mcp/server.js"]
}
}
}4. 初回接続時の認証
MCP クライアントから接続すると:
.envにトークンがあれば → そのまま使える.envにトークンがなければ → 自動でブラウザが開き OAuth 認証画面が表示されるブラウザで「許可」を押せばトークンが
.envに保存され、以降は自動接続
npm run authを別途実行する必要はありません(初回接続時に自動実行されます)。 手動で再認証したい場合のみnpm run authを使ってください。
5. Kiro ステアリング(推奨)
.kiro/steering/slack-mcp-usage.md をプロジェクトまたはグローバルに配置すると、AI が Slack データをどう要約・表示するかのルールが適用されます。
トラブルシューティング
症状 | 対処 |
| トークン失効。 |
| api.slack.com で User Token Scopes を追加 → |
| チャンネルIDが正しいか確認。プライベートchは |
| User Token ならアクセス可能なはず。チャンネルに参加しているか確認 |
| node のフルパスを指定する(例: |
セキュリティ
.envは.gitignore済み(リポジトリにコミットされない)User Token は自分のアカウント権限で動作する
Token の有効期間: 明示的に revoke するまで有効(期限なし)
Slack App のワークスペースインストールには管理者承認が不要(User Token の OAuth フロー)
ファイル構成
slack-mcp/
├── .env.example ← コピーして Client ID/Secret を記入
├── .env ← Token 保存先(gitignore済み)
├── .gitignore
├── .kiro/
│ └── steering/
│ └── slack-mcp-usage.md ← AI表示ルール(ステアリング)
├── oauth.js ← トークン取得(一度だけ実行)
├── server.js ← MCP サーバー本体
├── package.json
└── README.mdThis 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.
Latest Blog Posts
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/reazon-rudel/slack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server