Slack User MCP Server
Slack ユーザー MCP サーバー
Slack API 用の MCP サーバー。Claude がユーザーとして Slack ワークスペースと対話できるようにします。
ツール
slack_list_channelsワークスペース内のパブリックチャンネルを一覧表示する
オプション入力:
limit(数値、デフォルト:100、最大:200):返されるチャンネルの最大数cursor(文字列): 次のページのページ区切りカーソル
戻り値: IDと情報を含むチャンネルのリスト
slack_post_messageSlackチャンネルに新しいメッセージを投稿する
必要な入力:
channel_id(文字列): 投稿先のチャンネルのIDtext(文字列): 投稿するメッセージテキスト
戻り値: メッセージ投稿の確認とタイムスタンプ
slack_reply_to_thread特定のメッセージスレッドに返信する
必要な入力:
channel_id(文字列): スレッドを含むチャネルthread_ts(文字列): 親メッセージのタイムスタンプtext(文字列):返信テキスト
戻り値: 返信確認とタイムスタンプ
slack_add_reactionメッセージに絵文字リアクションを追加する
必要な入力:
channel_id(文字列): メッセージを含むチャネルtimestamp(文字列): 反応するメッセージのタイムスタンプreaction(文字列):コロンなしの絵文字名
返品:反応確認
slack_get_channel_historyチャンネルから最近のメッセージを取得する
必要な入力:
channel_id(文字列): チャンネルID
オプション入力:
limit(数値、デフォルト:10):取得するメッセージの数
戻り値: メッセージとその内容およびメタデータのリスト
slack_get_thread_repliesメッセージスレッド内のすべての返信を取得する
必要な入力:
channel_id(文字列): スレッドを含むチャネルthread_ts(文字列): 親メッセージのタイムスタンプ
戻り値: コンテンツとメタデータを含む返信のリスト
slack_get_users基本的なプロフィール情報を持つワークスペースユーザーのリストを取得します
オプション入力:
cursor(文字列): 次のページのページ区切りカーソルlimit(数値、デフォルト:100、最大:200):返されるユーザーの最大数
戻り値: 基本プロフィールを持つユーザーのリスト
slack_get_user_profile特定のユーザーの詳細なプロフィール情報を取得する
必要な入力:
user_id(文字列): ユーザーのID
返されるもの: 詳細なユーザープロフィール情報
Related MCP server: Slack MCP Server
設定
Slack アプリを作成する:
Slackアプリページにアクセスしてください
「新しいアプリを作成」をクリックします
「最初から」を選択
アプリに名前を付けてワークスペースを選択します
ユーザー トークン スコープを構成する:「OAuth と権限」に移動し、次のスコープを追加します。
channels:history- パブリックチャンネルのメッセージやその他のコンテンツを表示するchannels:read- 基本的なチャンネル情報を表示するchat:write- 自分としてメッセージを送信するreactions:write- メッセージに絵文字反応を追加するusers:read- ユーザーとその基本情報を表示する
ワークスペースにアプリをインストールします:
「ワークスペースにインストール」をクリックしてアプリを承認します
xoxp-で始まる「ユーザーOAuthトークン」を保存します。
このガイダンスに従ってチームID(
Tで始まる)を取得してください
Claude Desktopでの使用
claude_desktop_config.jsonに以下を追加します。
ローカルインストール
まずサーバーをインストールして構築します。
git clone https://github.com/lars-hagen/slack-user-mcp.git
cd slack-user-mcp
npm install
npm run build次に、Claude Desktop を構成します。
{
"mcpServers": {
"slack": {
"command": "npm",
"args": [
"run",
"--prefix",
"/path/to/slack-user-mcp",
"start"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}NPX
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}ドッカー
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_TOKEN",
"-e",
"SLACK_TEAM_ID",
"mcp/slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}Smithery経由でインストール
Smithery経由で Claude Desktop 用の Slack ユーザー サーバーを自動的にインストールするには:
npx -y @smithery/cli install @lars-hagen/slack-user-mcp2 --client claudeトラブルシューティング
権限エラーが発生した場合は、次の点を確認してください。
必要なスコープがすべてSlackアプリに追加されます
アプリがワークスペースに正しくインストールされている
トークンとワークスペースIDが構成に正しくコピーされました
アプリはアクセスする必要があるチャンネルに追加されました
ボットトークンではなく、ユーザーOAuthトークン(xoxp-で始まる)を使用しています
建てる
Dockerビルド:
docker build -t mcp/slack-user -f src/slack/Dockerfile .ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
Available Tools
8 toolsslack_add_reactionB
Add a reaction emoji to a message
Inputs: channel_id (required), timestamp (required), reaction (required).
slack_get_channel_historyC
Get recent messages from a channel
Inputs: channel_id (required), limit.
slack_get_thread_repliesB
Get all replies in a message thread
Inputs: channel_id (required), thread_ts (required).
slack_get_user_profileB
Get detailed profile information for a specific user
Inputs: user_id (required).
slack_get_usersB
Get a list of all users in the workspace with their basic profile information
Inputs: cursor, limit.
slack_list_channelsB
List public channels in the workspace with pagination
Inputs: limit, cursor.
slack_post_messageB
Post a new message to a Slack channel
Inputs: channel_id (required), text (required).
slack_reply_to_threadB
Reply to a specific message thread in Slack
Inputs: channel_id (required), thread_ts (required), text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose targeting specific Slack operations: adding reactions, retrieving channel history, fetching thread replies, getting user profiles, listing users, listing channels, posting messages, and replying to threads. There is no overlap or ambiguity between these functions.
All tool names follow a consistent 'slack_verb_noun' pattern using snake_case, such as slack_post_message and slack_get_user_profile. This uniformity makes the tool set predictable and easy to navigate.
With 8 tools, the server is well-scoped for a Slack integration, covering essential messaging, user management, and channel operations. Each tool serves a clear purpose without redundancy, making the count appropriate for the domain.
The tool set provides strong coverage for core Slack workflows, including message posting, reactions, threading, and user/channel listing. Minor gaps exist, such as updating or deleting messages, but agents can likely work around these with the available tools.
Maintenance
Related MCP Connectors
Enable interaction with Slack workspaces. Supports subscribing to Slack events through Resources.
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Chat with your AI agents from Slack: each gets a thread in your DM, and your replies there wake it.
Work with shared spaces, threads, documents, skills, apps, automations, and connected tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Slack workspaces through comprehensive integration capabilities. Supports channel management, messaging, thread replies, reactions, and message history retrieval through natural language commands.MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Slack workspaces through comprehensive channel management, messaging, direct messages, search functionality, and user management capabilities.305 npm3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Slack workspaces through natural language, supporting channel management, message operations, user profiles, reactions, and threaded conversations.-
- AlicenseAqualityCmaintenanceEnables Slack workspace integration including channel creation, user invites, message posting, and thread management through natural language.61MIT