LH

lars-hagen/slack-user-mcp

开发工具

本页由 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
新手?先看 mcpskill.org 教程 →

配置

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