
avimbu/slack-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Slack とのやりとりのためのモデルコンテキストプロトコルサーバー
概要
これは、Claudeデスクトップ(または任意のMCPクライアント)がSlackのワークスペースとやり取りし、メッセージを投稿し、すべてのユーザーのリストを照会できるようにするコネクタです。 ローカルでこのクライアントを実行するには、Claude Desktop MCP Server config ファイルに次の設定を追加します。 この後、Claude Desktop App でこの実装をテストするには、以下のようなプロンプトを使用します。 - 「Slack チームのすべてのユーザーをリストできますか?」 - 「ID で Slack チャンネルにウェルカムメッセージを送信できますか? 以下の権限は既に実装されています。 ご不明な点がございましたら、お気軽に AVIMBU までお問い合わせください.
概要(AI 翻訳)
これは、Claudeデスクトップ(または任意のMCPクライアント)がSlackのワークスペースとやり取りし、メッセージを投稿し、すべてのユーザーのリストを照会できるようにするコネクタです。
ローカル開発
ローカルでこのクライアントを実行するには、Claude Desktop MCP Server config ファイルに次の設定を追加します。
この後、Claude Desktop App でこの実装をテストするには、以下のようなプロンプトを使用します。
- 「Slackチームの全てのユーザーをリストできますか?
- 「ID[[
]]]でSlackチャンネルにウェルカムメッセージを送信できますか?
ローカルでサーバーを実行する:
別のターミナルのビルドを使って
Slack パーミッションスコープ
以下の権限は既に実装されています。
| 許可 | 説明 | 実施 | お問い合わせ | app configurations:read | アプリのマニフェスト API によるアプリ設定情報 | ✕ | | app configurations:write | アプリの設定情報を書き、App Manifest APIでアプリを作成 | ✕ | | app mentions:read | アプリ内にある会話で @your slack app に直接言及するメッセージを見る | ✕ | | アシスタント:ライト | slackアプリがAIアシスタントとして機能できるように | ✕ | | 備考:read | リストブックマーク | × |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Slack Model Context Protocol Server
This is a connector to allow Claude Desktop (or any MCP client) to interact with your Slack workspace to post messages and query a list of all users.
Local Development
In order to run this client locally, add the following configuration to your Claude Desktop MCP Server config file:
{
"mcpServers": {
"mcp-slack-local": {
"command": "node",
"args": ["/path/to/project/dist/index.js"], <---- replace this with your project path
"env": {
"SLACK_BOT_USER_OAUTH_TOKEN": "test-bot-token",
"SLACK_TEAM_ID": "test-team-id"
}
},
}
}
After this, you should be able to test this implementation in your Claude Desktop App using example prompts like:
- “Can you list all users of my Slack team?”
- “Can you send a welcome message to my Slack Channel with the ID ``?”
Running the server locally:
node dist/index.js
With the build in another terminal
npm run watch
Slack Permission Scopes
The following permissions are already implemented:
| Permission | Description | Implemented |
|---|---|---|
| app_configurations:read | Read app configuration info via App Manifest APIs | ❌ |
| app_configurations:write | Write app configuration info and create apps via App Manifest APIs | ❌ |
| app_mentions:read | View messages that directly mention @your_slack_app in conversations that the app is in | ❌ |
| assistant:write | Allow your slack app to act as an AI Assistant | ❌ |
| bookmarks:read | List bookmarks | ❌ |
| bookmarks:write | Create, edit, and remove bookmarks | ❌ |
| calls:read | View information about ongoing and past calls | ❌ |
| calls:write | Start and manage calls in a workspace | ❌ |
| canvases:read | your slack app will be able to access contents of canvases created inside Slack. | ❌ |
| canvases:write | your slack app will be able to create, edit and remove canvases. | ❌ |
| channels:history | View messages and other content in public channels that your slack app has been added to | ❌ |
| channels:join | Join public channels in a workspace | ❌ |
| channels:manage | Manage public channels that your slack app has been added to and create new ones | ❌ |
| channels:read | View basic information about public channels in a workspace | ❌ |
| channels:write.invites | Invite members to public channels | ❌ |
| channels:write.topic | Set the description of public channels | ❌ |
| chat:write | Post messages in approved channels & conversations | ✅ |
| chat:write.customize | Send messages as @your_slack_app with a customized username and avatar | ❌ |
| chat:write.public | Send messages to channels @your_slack_app isn’t a member of | ❌ |
| commands | Add shortcuts and/or slash commands that people can use | ❌ |
| conversations.connect:manage | Allows your slack app to manage Slack Connect channels | ❌ |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →