Slack Note Capture MCP Server

Slack Note Capture MCP Server

Enables two-way communication between Claude and Slack for posting messages, managing threads, and handling files. It specifically supports asynchronous workflows by allowing Claude to poll for remote user replies and send task notifications.

Category
访问服务器

README

Slack Note Capture MCP Server

A Model Context Protocol (MCP) server that enables two-way communication between Claude Code and Slack. Post messages, read threads, and wait for user replies — enabling remote conversations when you're away from your machine.

New to MCP servers? See QUICKSTART.md for step-by-step setup instructions with screenshots-style guidance.

Prerequisites

  • Node.js 18+nodejs.org
  • Claude Code — Anthropic's CLI tool (claude.ai/claude-code)
  • Slack workspace — Free plan works; you need permission to install apps

Features

  • Two-way conversations — Claude asks questions via Slack, you reply from your phone
  • Thread support — Post to threads and read thread replies
  • Wait for replies — Poll threads until you respond (configurable timeout)
  • Channel operations — Read history, search messages, list channels
  • File handling — Get file info and download shared files

Use Cases

Remote Conversations

Claude asks a question via Slack, you reply from your phone, Claude continues working.

Task Notifications

Claude posts completion updates to a Slack channel so you know when work is done.

Note Capture

Send ideas, links, and voice notes to Slack for Claude to process later.

Async Workflows

Start a task, go about your day, get notified when input is needed.

Installation

git clone https://github.com/larrygmaguire-hash/slack-note-capture.git
cd slack-note-capture
npm install

Slack App Setup

Detailed instructions: See QUICKSTART.md for step-by-step guidance with explanations.

  1. Go to api.slack.com/appsCreate New AppFrom scratch
  2. Name your app (e.g., Claude Assistant) and select your workspace
  3. Go to OAuth & Permissions and add these Bot Token Scopes:
Scope Purpose
channels:history Read messages from public channels
channels:read List channels
chat:write Post messages
files:read Access shared files
groups:history Read messages from private channels (optional)
groups:read List private channels (optional)
  1. Click Install to Workspace and authorise
  2. Copy the Bot User OAuth Token (starts with xoxb-)
  3. Create a channel for Claude and get its Channel ID (right-click channel → View details → scroll to bottom)
  4. Invite the bot: /invite @YourAppName in the channel

Configuration

Tool Permissions (Required)

By default, Claude Code prompts for approval each time an MCP tool is used. For Slack tools to work without interruption (especially slack_wait_for_reply which blocks execution), you must pre-approve them.

Add to ~/.claude/settings.local.json:

{
  "permissions": {
    "allow": [
      "mcp__slack-note-capture__slack_read_messages",
      "mcp__slack-note-capture__slack_post_message",
      "mcp__slack-note-capture__slack_post_to_thread",
      "mcp__slack-note-capture__slack_read_thread",
      "mcp__slack-note-capture__slack_wait_for_reply",
      "mcp__slack-note-capture__slack_get_file",
      "mcp__slack-note-capture__slack_download_file",
      "mcp__slack-note-capture__slack_list_channels",
      "mcp__slack-note-capture__slack_search_messages"
    ]
  }
}

Alternative (VSCode): When prompted for tool approval, select "Yes, allow for this project (just you)" — this persists the permission in ~/.claude.json.

Important: Restart Claude Code after changing permissions.

Environment Variables

Variable Required Description
SLACK_BOT_TOKEN Yes Bot User OAuth Token from your Slack app
SLACK_CHANNEL_ID No Default channel ID for operations

Claude Code Configuration

Add to your ~/.claude.json:

{
  "mcpServers": {
    "slack-note-capture": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/slack-note-capture/src/index.js"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-token-here",
        "SLACK_CHANNEL_ID": "C0123456789"
      }
    }
  }
}

Available Tools

slack_post_message

Post a message to a channel. Returns the message timestamp (ts) for thread operations.

{
  channel_id: "C0123456789",  // optional, uses default if not provided
  text: "Hello from Claude!"
}

slack_post_to_thread

Reply to an existing message thread.

{
  channel_id: "C0123456789",  // optional
  thread_ts: "1234567890.123456",  // required - parent message timestamp
  text: "This is a thread reply"
}

slack_read_thread

Read all replies in a thread. Useful for checking responses to your messages.

{
  channel_id: "C0123456789",  // optional
  thread_ts: "1234567890.123456"  // required
}

slack_wait_for_reply

The key tool for remote conversations. Posts a message and polls for a user reply.

{
  channel_id: "C0123456789",  // optional
  message: "I need your input on X. Please reply in this thread.",
  poll_interval_seconds: 30,  // default: 30
  timeout_minutes: 15  // default: 15
}

Or monitor an existing thread:

{
  thread_ts: "1234567890.123456",
  poll_interval_seconds: 30,
  timeout_minutes: 15
}

Returns either:

  • Success with the user's reply text
  • Timeout with a hint to check manually later

slack_read_messages

Read recent messages from a channel.

{
  channel_id: "C0123456789",  // optional
  days_back: 7,  // default: 7
  limit: 100  // default: 100
}

slack_list_channels

List available channels to find channel IDs.

{
  types: "public_channel,private_channel"  // default
}

slack_search_messages

Search for messages containing specific text.

{
  query: "workshop idea",
  channel_id: "C0123456789"  // optional but recommended
}

slack_get_file

Get information about a shared file.

{
  file_id: "F0123456789"
}

slack_download_file

Download a file to local storage.

{
  file_id: "F0123456789",
  save_path: "/path/to/save/file.pdf"
}

Example: Remote Question/Answer

Claude: I'm working on the report but need to know which format you prefer.
        Let me ask you via Slack so you can respond from your phone.

[Claude calls slack_wait_for_reply with question about format]
[User receives Slack notification on phone]
[User replies in thread: "PDF please"]
[Claude receives reply and continues work]

Example: Task Completion Notification

When Claude finishes a task, it posts a summary to Slack:

Claude: [completes grading 15 assignments]
        Let me notify you that the task is complete.

[Claude calls slack_post_message: "✓ Grading complete — 15 assignments processed, feedback docs saved to Google Drive"]
[User receives notification on phone]

This is useful for long-running tasks where you've stepped away from your machine.

Finding Channel IDs

Channel IDs are not the same as channel names. To find a channel ID:

  1. Use the slack_list_channels tool, or
  2. In Slack: right-click a channel → "View channel details" → scroll to bottom

Channel IDs look like: C0A9WLH9KH9 (public) or G0A9WLH9KH9 (private)

Troubleshooting

"not_in_channel" error

The bot needs to be added to the channel. In Slack, type /invite @YourBotName in the channel.

Thread replies not appearing

Make sure you're replying in the thread, not as a new message in the channel. In Slack mobile, tap the message first, then reply.

Timeout on wait_for_reply

The default timeout is 15 minutes. Increase with timeout_minutes, or call slack_read_thread later to check manually.

MCP not loading

  1. Check ~/.claude.json syntax is valid JSON
  2. Restart Claude Code / VS Code
  3. Verify the path to index.js is correct

Testing Your Setup

After configuration, restart Claude Code and test:

List my Slack channels

If successful, you'll see your workspace channels. Then test posting:

Post "Hello from Claude!" to my Slack inbox

Check your Slack channel for the message. For full testing steps including the reply feature, see QUICKSTART.md.

Security Notes

  • Never commit your SLACK_BOT_TOKEN to git
  • The token is stored in ~/.claude.json which is machine-specific
  • Each machine needs its own configuration

Version History

  • 2.0.0 — Added two-way communication: slack_read_thread, slack_post_to_thread, slack_wait_for_reply
  • 1.0.0 — Initial release: basic read/post/file operations

Licence

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选