LH

lars-hagen/slack-user-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 13 forks 品質 82 トレンド 38MIT

Model Context Protocol server for authorized Slack workspace automation

概要

MCP Server for the Slack API, enabling Claude to interact with Slack workspaces as a user. 1. slack_list_channels - List public channels in the workspace - Optional inputs: - limit (number, default: 100, max: 200): Maximum number of channels to return - cursor (string): Pagination cursor for next page - Returns: List of channels with their IDs and information 2. slack_post_message - Post a new message to a Slack channel - Required inputs: - channel_id (string): The ID of the channel to post to - text (string): The message text to post - Returns: Message posting confirmation and timestamp 3. slack_reply_to_thread - Reply to a specific message thread - Required inputs: - channel_id (string): The channel containing the thread - thread_ts (string): Timestamp of the parent message - text (string): The reply text - Returns: Reply confirmation and timestamp 4.

README

以下は原文 README の抜粋です。原文を見る。

Slack User MCP Server

MCP Server for the Slack API, enabling Claude to interact with Slack workspaces as a user.

Tools

  1. slack_list_channels

    • List public channels in the workspace
    • Optional inputs:
      • limit (number, default: 100, max: 200): Maximum number of channels to return
      • cursor (string): Pagination cursor for next page
    • Returns: List of channels with their IDs and information
  2. slack_post_message

    • Post a new message to a Slack channel
    • Required inputs:
      • channel_id (string): The ID of the channel to post to
      • text (string): The message text to post
    • Returns: Message posting confirmation and timestamp
  3. slack_reply_to_thread

    • Reply to a specific message thread
    • Required inputs:
      • channel_id (string): The channel containing the thread
      • thread_ts (string): Timestamp of the parent message
      • text (string): The reply text
    • Returns: Reply confirmation and timestamp
  4. slack_add_reaction

    • Add an emoji reaction to a message
    • Required inputs:
      • channel_id (string): The channel containing the message
      • timestamp (string): Message timestamp to react to
      • reaction (string): Emoji name without colons
    • Returns: Reaction confirmation
  5. slack_get_channel_history

    • Get recent messages from a channel
    • Required inputs:
      • channel_id (string): The channel ID
    • Optional inputs:
      • limit (number, default: 10): Number of messages to retrieve
    • Returns: List of messages with their content and metadata
  6. slack_get_thread_replies

    • Get all replies in a message thread
    • Required inputs:
      • channel_id (string): The channel containing the thread
      • thread_ts (string): Timestamp of the parent message
    • Returns: List of replies with their content and metadata
  7. slack_get_users

    • Get list of workspace users with basic profile information
    • Optional inputs:
      • cursor (string): Pagination cursor for next page
      • limit (number, default: 100, max: 200): Maximum users to return
    • Returns: List of users with their basic profiles
  8. slack_get_user_profile

    • Get detailed profile information for a specific user
    • Required inputs:
      • user_id (string): The user’s ID
    • Returns: Detailed user profile information

Setup

  1. Create a Slack App:
    • Visit the Slack Apps page
    • Click “Create New App”
    • Choose “From scratch”
    • Name your app and select your workspace
GitHub で README 全文を見る

インストール

docker run -i --rm -e SLACK_TOKEN slack-user-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "slack": { "command": "npm", "args": [ "run", "--prefix", "/path/to/slack-user-mcp", "start" ], "env": { "SLACK_TOKEN": "xoxp-your-user-token" } } } }