Slack Explorer MCP

平台与服务

by shibayu36

专为从 Slack 消息与线程中检索信息而设计的 MCP server,便于快速定位上下文与讨论内容。

什么是 Slack Explorer MCP

专为从 Slack 消息与线程中检索信息而设计的 MCP server,便于快速定位上下文与讨论内容。

README

Slack Explorer MCP Server

A Model Context Protocol (MCP) server specialized in retrieving information from Slack messages and threads. It provides tools to access messages that the authenticated user can view using a User Token (xoxp).

Available Tools

  • Message Search (search_messages)

    • Search Slack messages with advanced filtering options. You can search by channel, user, date range, and specific features (reactions, files, etc.).
    • Parameters
      • query: Basic search query. Use dedicated fields for inclusion modifiers (bare modifiers in this field are rejected). Exclusion modifiers prefixed with - (e.g., -in:#channel) ARE allowed here
      • in_channel: Filter by channel name (e.g., "general", "team-dev")
      • from_user: Search messages from specific user (User ID)
      • with: Search DMs/threads with specific users (array of User IDs)
      • before, after, on: Date range filtering (YYYY-MM-DD format)
      • during: Period specification (e.g., "July", "2023")
      • has: Messages containing specific features (emoji, "pin", "file", "link", "reaction")
      • hasmy: Messages where you reacted with specific emoji
      • sort: Sort method ("score" or "timestamp")
      • count: Number of results per page (1-100, default: 20)
      • page: Page number (1-100, default: 1)
  • Thread Replies (get_thread_replies)

    • Get all replies in a message thread. Supports pagination for efficiently handling large numbers of replies.
    • Parameters
      • channel_id: Channel ID (required)
      • thread_ts: Parent message timestamp (required)
      • limit: Number of replies to retrieve (1-1000, default: 100)
      • cursor: Pagination cursor
  • User Profiles (get_user_profiles)

    • Get profile information for multiple users in bulk. Retrieve display names, real names, email addresses, and other profile information by specifying a list of user IDs.
    • Parameters
      • user_ids: Array of user IDs (required, max 100)
  • Search Users by Display Name (search_users_by_name)

    • Search users by their display name. Supports both exact match and partial match search with case sensitivity.
    • Parameters
      • display_name: Display name to search for (required)
      • exact: Enable exact match search
  • File Search (search_files)

    • Search for files such as canvases, PDFs, and images. You can filter by file type, channel, user, and date range.
    • Parameters
      • query: Basic search query. Use dedicated fields for inclusion modifiers (bare modifiers in this field are rejected). Exclusion modifiers prefixed with - (e.g., -type:pdfs) ARE allowed here
      • types: Filter by file types (e.g., ["canvases", "pdfs"]). Available types: lists, canvases, documents, emails, images, pdfs, presentations, snippets, spreadsheets, audio, videos
      • in_channel: Filter by channel name (e.g., "general", "team-dev")
      • from_user: Search files from specific user (User ID)
      • with_users: Search files in DMs/threads with specific users (array of User IDs)
      • before, after, on: Date range filtering (YYYY-MM-DD format)
      • count: Number of results per page (1-100, default: 20)
      • page: Page number (1-100, default: 1)
  • Canvas Content (get_canvas_content)

    • Get HTML content of Slack canvases. Retrieve canvas content by specifying canvas IDs.
    • Parameters
      • canvas_ids: Array of canvas IDs (required, max 20)

Setup

Getting a Slack User Token

  1. Create an app at Slack API
  2. Add the following User Token Scopes in OAuth & Permissions:
    • channels:history - For public channels
    • groups:history - For private channels
    • im:history - For direct messages
    • mpim:history - For group direct messages
    • search:read - For message search
    • users.profile:read - For user profiles
    • users:read - For user information
    • files:read - For file content access
  3. Install the app to your workspace
  4. Get the User OAuth Token (starts with xoxp-)
    • Tip: To use with multiple users in the same workspace, add them as Collaborators and have each user reinstall from OAuth & Permissions to get their own User OAuth Token

MCP Server Configuration

  1. Configure mcp.json

    json
    {
      "mcpServers": {
        "slack-explorer-mcp": {
          "command": "docker",
          "args": ["run", "-i", "--rm", "--pull", "always",
            "-e", "SLACK_USER_TOKEN=xoxp-your-token-here",
            "ghcr.io/shibayu36/slack-explorer-mcp:latest"
          ]
        }
      }
    }
    

    If you're using Claude Code:

    bash
    claude mcp add slack-explorer-mcp -- docker run -i --rm --pull always \
      -e SLACK_USER_TOKEN=xoxp-your-token-here \
      ghcr.io/shibayu36/slack-explorer-mcp:latest
    
  2. Use the agent to perform Slack searches

    Examples:

    • "Search for meeting-related messages in the general channel from last week"
    • "Find messages from @john.doe about 'project'"
    • "Get all thread replies for this post"

Usage

Common Search Patterns

  • Search in a specific channel

    code
    Search for "release" messages in the general channel
    
  • Search messages from a specific user

    code
    Search for yesterday's messages from @john.doe
    
  • Search messages with reactions

    code
    Search for messages with :fire: reactions
    
  • Search messages you reacted to

    code
    Search for messages where you reacted with :eyes:
    
  • Search messages with file attachments

    code
    Search for messages with file attachments
    

Using as Streamable HTTP Server

By default, the server uses stdio for MCP communication. You can start it as a Streamable HTTP server by setting the TRANSPORT=http environment variable. In HTTP mode, pass the Slack token using the X-Slack-User-Token header.

Starting the server:

bash
# Start HTTP server (default: all interfaces 0.0.0.0, port 8080)
docker run -i --rm --pull always \
  -e TRANSPORT=http \
  -p 8080:8080 \
  ghcr.io/shibayu36/slack-explorer-mcp:latest

# Start with custom host and port
docker run -i --rm --pull always \
  -e TRANSPORT=http \
  -e HTTP_HOST=127.0.0.1 \
  -e HTTP_PORT=9090 \
  -p 9090:9090 \
  ghcr.io/shibayu36/slack-explorer-mcp:latest

常见问题

Slack Explorer MCP 是什么?

专为从 Slack 消息与线程中检索信息而设计的 MCP server,便于快速定位上下文与讨论内容。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描164.6k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描164.6k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.3k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.5k

评论