MCP server for Slack API integration
npm install @neuroequalityorg/mcp-slackMCP (Model Context Protocol) server for Slack API integration. Enables AI assistants to interact with Slack workspaces.
``bash`
npm install -g @neuroequalityorg/mcp-slack
Or use with npx:
`bash`
npx @neuroequalityorg/mcp-slack
Set your Slack Bot Token as an environment variable:
`bash`
export SLACK_BOT_TOKEN=xoxb-your-bot-token
Your Slack app needs the following OAuth scopes:
- channels:read - List channelschannels:write
- - Create channelschannels:history
- - Read channel historychat:write
- - Send messagesgroups:read
- - List private channelsgroups:write
- - Create private channelsgroups:history
- - Read private channel historyim:history
- - Read direct message historympim:history
- - Read group DM historysearch:read
- - Search messagesusers:read
- - List usersusers:read.email
- - Read user emails
Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json):
`json`
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["@neuroequalityorg/mcp-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token"
}
}
}
}
Send a message to a Slack channel or user.
Parameters:
- channel (required): Channel ID or nametext
- (required): Message text to sendthread_ts
- (optional): Thread timestamp to reply in a thread
List all channels in the Slack workspace.
Parameters:
- types (optional): Channel types (default: "public_channel,private_channel")limit
- (optional): Max results (default: 100)cursor
- (optional): Pagination cursor
List all users in the Slack workspace.
Parameters:
- limit (optional): Max results (default: 100)cursor
- (optional): Pagination cursor
Search for messages in Slack.
Parameters:
- query (required): Search query (supports Slack search modifiers)count
- (optional): Number of results (default: 20)sort
- (optional): "score" or "timestamp"sort_dir
- (optional): "asc" or "desc"
Create a new Slack channel.
Parameters:
- name (required): Channel name (lowercase, no spaces)is_private
- (optional): Create as private channel
Get message history from a Slack channel.
Parameters:
- channel (required): Channel IDlimit
- (optional): Number of messages (default: 50)oldest
- (optional): Messages after this Unix timestamplatest
- (optional): Messages before this Unix timestampcursor` (optional): Pagination cursor
-
MIT
NeuralQuantum - tommy@gain.energy