yt-slack-mcp
yt-slack-mcp
Slack 用の MCP サーバー — パーマリンク、スレッド、チャンネル履歴の読み取り、スレッドへの返信、リアクションの追加が可能です。
Model Context Protocol 仕様を実装しています。stdio トランスポート上で動作し、JSON-RPC 2.0 で通信し、initialize でプロトコルバージョンをネゴシエーションし、tools 機能をアドバタイズし、各ツールを JSON Schema で記述します。プロトコルバージョンのネゴシエーションは @modelcontextprotocol/sdk の Server クラスが処理し、デフォルトで最新のサポートバージョンを使用します。
ツール
ツール | 説明 |
| パーマリンクからメッセージまたはスレッドを読み取る(PDF/画像を含む) |
| チャンネル ID + タイムスタンプでスレッドの返信を読み取る |
| 最近のチャンネル履歴を読み取る |
| スレッドに返信する(許可されたチャンネルのみ) |
| リアクションを追加する(許可されたチャンネルのみ) |
読み取りツールはプライベートな Slack ブラウザセッション API(xoxc / xoxd トークン経由)を使用するため、プライベートファイルの内容も取得できます — PDF はダウンロードしてテキスト抽出され(最大 50 ページ / 100k 文字)、画像はインラインで返されます。
Related MCP server: Slack MCP Server
セットアップ
1. ブラウザセッショントークンを取得する
xoxc: Slack Web の localStorage トークン(ログイン済みのブラウザセッションから取得)。xoxd:dという名前の Slack クッキー。
Slack がセッションをローテーションまたは無効化した場合は、これらの更新が必要になる場合があります。
2. シークレットを配置する
各トークンを 1 行のファイルとして保存します:
~/.config/opencode/secrets/slack-xoxc.txt
~/.config/opencode/secrets/slack-xoxd.txtまたは、設定ファイルや環境変数でパスを上書きします。
3. (任意)書き込み可能なチャンネルとパスを設定する
すべての設定は ~/.config/yt-slack-mcp/config.json の JSON 設定ファイルに記述できます(SLACK_MCP_CONFIG で上書き可能):
{
"secretsDir": "~/.config/opencode/secrets",
"xoxcPath": "~/.config/opencode/secrets/slack-xoxc.txt",
"xoxdPath": "~/.config/opencode/secrets/slack-xoxd.txt",
"allowedWriteChannels": ["C0123456789", "C0987654321"],
"userAgent": "Mozilla/5.0"
}デフォルトでは、書き込みツール(slack_reply_to_thread、slack_add_reaction)はロックダウンされています — 書き込み可能なチャンネルはありません。すべてのフィールドは任意です。ファイルがない場合はデフォルト値が使用されます。環境変数は常に設定ファイルより優先されます。
設定
設定の解決順序: 組み込みデフォルト → 設定ファイル → 環境変数。
設定ファイルキー | 環境変数 | デフォルト | 説明 |
|
|
| トークンファイルを保持するディレクトリ |
|
|
|
|
|
|
|
|
|
| (なし) | 書き込みツールが許可されるチャンネル ID(環境変数ではカンマ区切り) |
|
|
| HTTP |
(設定ファイルパス) |
|
| JSON 設定ファイルへのパス |
MCP ホスト設定
opencode
{
"mcp": {
"slack": {
"type": "local",
"command": ["npx", "yt-slack-mcp"]
}
}
}Claude Desktop
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["yt-slack-mcp"]
}
}
}ライセンス
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
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP server for Slack using User OAuth Token, enabling message management, channel operations, and user interactions via natural language.25MIT
- AlicenseNot gradedqualityBmaintenanceA production-ready MCP server for the Slack API that enables searching, listing channels, reading history, inspecting users, fetching threads, and sending messages through controlled Slack tools.16,956MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for interacting with Slack using a user token. It allows reading channels, DMs, threads, search, and posting messages as the authenticated user.25MIT
- AlicenseAqualityCmaintenanceMCP server that reads Slack through your own browser session, authenticating as you rather than a bot. Provides tools to search messages, retrieve channel/DM/thread history, resolve users, and post messages (write disabled by default).10MIT
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
A basic MCP server to operate on the Postman API.
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/yentsun/slack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server