Slack MCP Server
Slack-MCP サーバー
Slack APIにアクセスするためのMCP(Model Context Protocol)サーバー。このサーバーにより、AIアシスタントは標準化されたインターフェースを介してSlack APIと対話できるようになります。
特徴
利用可能なツール:
slack_list_channels- ワークスペース内のパブリックチャンネルをページ区切りで一覧表示しますslack_post_message- Slackチャンネルに新しいメッセージを投稿するslack_reply_to_thread- Slack の特定のメッセージスレッドに返信するslack_add_reaction- メッセージに反応絵文字を追加するslack_get_channel_history- チャンネルから最近のメッセージを取得するslack_get_thread_replies- メッセージスレッド内のすべての返信を取得するslack_get_users- ワークスペース内のすべてのユーザーの基本プロフィール情報を取得しますslack_get_user_profile- ユーザーのプロフィール情報を取得するslack_search_messages- ワークスペース内のメッセージを検索する
Related MCP server: Slack MCP Server
クイックスタート
インストール
npm install @ubie-oss/slack-mcp-server注意: 現在、GitHub レジストリでホストされているため、PAT が必要です。
構成
次の環境変数を設定する必要があります。
SLACK_BOT_TOKEN: Slack ボットユーザー OAuth トークンSLACK_USER_TOKEN: Slack ユーザー OAuth トークン (メッセージ検索などの一部の機能に必要)
.envファイルを作成して、次の環境変数を設定することもできます。
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_USER_TOKEN=xoxp-your-user-token使用法
MCPサーバーを起動する
直接:
npx @ubie-oss/slack-mcp-serverまたは、インストールしたモジュールを node で実行します。
node node_modules/.bin/slack-mcp-serverクライアントの MCP 構成 json を編集します。
{
"slack": {
"command": "npx",
"args": [
"-y",
"@ubie-oss/slack-mcp-server"
],
"env": {
"NPM_CONFIG_//npm.pkg.github.com/:_authToken": "<your-github-pat>",
"SLACK_BOT_TOKEN": "<your-bot-token>",
"SLACK_USER_TOKEN": "<your-user-token>"
}
}
}実装パターン
このサーバーは次の実装パターンを採用しています。
Zodスキーマを使用してリクエスト/レスポンスを定義する
リクエストスキーマ: 入力パラメータを定義する
レスポンススキーマ: 必要なフィールドに限定したレスポンスを定義する
実装フロー:
Zodスキーマでリクエストを検証する
Slack WebAPIを呼び出す
Zodスキーマを使用してレスポンスを解析し、必要なフィールドに限定する
JSONとして返す
たとえば、 slack_list_channels実装は、 ListChannelsRequestSchemaを使用してリクエストを解析し、 slackClient.conversations.listを呼び出し、 ListChannelsResponseSchemaを使用して解析されたレスポンスを返します。
発達
利用可能なスクリプト
npm run dev- ホットリロードで開発モードでサーバーを起動しますnpm run build- 本番環境用にプロジェクトをビルドするnpm run start- 本番サーバーを起動するnpm run lint- リンティングチェックを実行する(ESLint と Prettier)npm run fix- リンティングの問題を自動的に修正する
貢献
リポジトリをフォークする
機能ブランチを作成する
テストとリンティングを実行する:
npm run lint変更をコミットする
ブランチにプッシュする
プルリクエストを作成する
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
- AlicenseBqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants to interact with Slack workspaces, allowing them to browse channels, send messages, reply to threads, add reactions, and retrieve user information.962Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates with Slack API, allowing users to send messages, view channel history, manage channels, send direct messages, and retrieve user lists from Slack workspaces.1
- AlicenseNot gradedqualityDmaintenanceA simple Model Context Protocol server for Slack integration that enables messaging, channel management, and workspace search capabilities.25MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with Slack workspaces through OAuth 2.0 authentication. It provides tools for listing channels and posting messages while supporting secure token persistence and dynamic client registration.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP server for AI dialogue using various LLM models via AceDataCloud
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/ubie-oss/slack-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server