Slack MCP Server — Hosted for Any AI Agent
MCP Server language Hosted language PublicSend messages, search conversations, and manage channels in Slack — connect AI agents to your team workspace.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"slack": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-slack",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the list_channels tool to list public and private channels in the slack workspace”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
The Slack MCP server connects AI agents to your Slack workspace — sending messages, reading channels, searching history, and looking up users. Hosted on Aerostack with one URL for any MCP client, it lets an agent post updates, summarize threads, and route information across channels as part of automated workflows.
description Overview
mcp-slack — Slack MCP Server
Post messages, search conversations, and manage users in your Slack workspace.
Slack is the real-time communication hub for modern teams. This MCP server gives your AI agents the ability to post messages to any channel, read message history, search across conversations, look up user profiles, and add emoji reactions — making Slack a natural output channel for automated workflows and AI-driven notifications.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-slack
What You Can Do
- Post notifications, alerts, and summaries directly to Slack channels from any agent workflow — deploy notifications, error alerts, daily digests, and more
- Search message history to retrieve context from past conversations before an agent responds or takes action
- Look up user profiles to resolve names to user IDs or find contact details for routing
- Add emoji reactions to messages programmatically as a lightweight acknowledgment or status signal
Setup (Important — read before using)
Step 1: Create a Slack App
- Go to api.slack.com/apps → Create New App → From scratch
- Name it (e.g., "Aerostack Bot") and select your workspace
Step 2: Add Bot Token Scopes
Go to OAuth & Permissions → scroll to Bot Token Scopes → add these scopes:
| Scope | Required For | Tools |
|---|---|---|
chat:write |
Required — Send messages | post_message |
channels:read |
Required — List channels | list_channels |
channels:history |
Read channel messages | get_channel_history |
groups:read |
List private channels | list_channels (private) |
search:read |
Search messages | search_messages |
users:read |
Look up users | get_user_info, list_users |
reactions:write |
Add emoji reactions | add_reaction |
At minimum, add chat:write and channels:read. Add others based on which tools you need.
Step 3: Install to Workspace
Click Install to Workspace → Authorize → Copy the Bot User OAuth Token (xoxb-...).
Step 4: Invite Bot to Channels
This step is required! The bot can only post to channels it has been invited to.
In each Slack channel where you want the bot to operate:
/invite @YourBotName
Or: Click channel name → Integrations → Add apps → select your bot.
If you skip this step, you'll get a not_in_channel error when trying to post messages.
Step 5: Add to Aerostack Workspace
- Go to your Aerostack workspace → Add Server → search "Slack"
- Paste your
SLACK_BOT_TOKEN(xoxb-...) when prompted - Click Test to verify the connection
Available Tools
| Tool | Description | Required Scopes |
|---|---|---|
list_channels |
List public/private channels in the workspace | channels:read, groups:read |
post_message |
Post a message to a channel or thread | chat:write |
get_channel_history |
Get recent messages from a channel | channels:history |
search_messages |
Search messages across the workspace | search:read |
get_user_info |
Get profile info for a specific user | users:read |
list_users |
List all users in the workspace | users:read |
add_reaction |
Add an emoji reaction to a message | reactions:write |
Configuration
| Variable | Required | Description |
|---|---|---|
SLACK_BOT_TOKEN |
Yes | Slack Bot User OAuth Token (starts with xoxb-) |
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
missing_scope |
Bot token doesn't have the required scope | Add the scope in Slack API dashboard → OAuth & Permissions → Reinstall the app → update token in Aerostack |
not_in_channel |
Bot hasn't been invited to the channel | Type /invite @YourBotName in the channel |
channel_not_found |
Wrong channel name or ID | Use channel ID (e.g., C6GK6DHPY) instead of #name |
invalid_auth |
Token is expired or wrong | Re-copy the token from Slack API dashboard |
Example Prompts
"Post a message to #engineering saying the database migration completed successfully"
"Search Slack for any messages about the payment gateway outage from last week"
"List all users in the workspace and find the user ID for sarah@company.com"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-slack \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-SLACK-BOT-TOKEN: xoxb-your-bot-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_message","arguments":{"channel":"#general","text":"Hello from Aerostack!"}}}'
License
MIT
terminal Tools (7)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
list_channels #1 List public and private channels in the Slack workspace
post_message #2 Post a message to a Slack channel
get_channel_history #3 Get recent messages from a Slack channel
search_messages #4 Search for messages across the Slack workspace
get_user_info #5 Get profile information for a Slack user
list_users #6 List members of the Slack workspace
add_reaction #7 Add an emoji reaction to a Slack message
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-slack
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in Team Tools
Browse Team Tools MCPs →Discord
by @aerostack
Read and send Discord messages, manage channels, roles, and members — automate your community from AI agents.
Google Calendar
by @aerostack
Create events, check availability, and manage calendars across Google Calendar — automate your scheduling.
Jira
by @aerostack
Create, search, update issues, manage sprints, boards, and projects in Jira — AI-native agile project management.
Trello
by @aerostack
Manage Trello boards, lists, cards, and members — create, update, move cards and collaborate with AI.
Jira Cloud
by @aerostack
Full Jira Cloud integration — manage projects, issues, sprints, boards, comments, transitions, and user assignments for agile project management.
Frequently asked questions
What is the Slack MCP server and what can it do? +
The Slack MCP server is hosted on Aerostack and exposes these tools to your AI agent: `list_channels`, `post_message`, `get_channel_history`, `search_messages`, `get_user_info`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Slack MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Slack MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Slack MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Slack MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-slack": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-slack"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Slack MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-slack", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-slack"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Slack MCP require authentication? +
Yes. Slack requires authentication. Check the MCP's documentation for the required credentials.