Slack Notify MCP
Allows posting messages to Slack channels through webhooks or the Bot API, with support for channel overrides, custom usernames, emoji, and Slack-specific mention formats.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Slack Notify MCPpost 'Meeting starting in 5 minutes!' to #team-updates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Slack Webhook MCP Server
A Model Context Protocol (MCP) server for posting messages to Slack via webhooks or bot tokens.
Features
Two modes of operation: Webhooks or Bot API
Post messages to Slack channels
Support for channel overrides
Configurable bot username and emoji
Slack-specific mention support (
<!channel>,<!here>,<@USERID>)Comprehensive error handling and validation
Related MCP server: Slack MCP Server
Installation
bun installSetup
Option 1: Webhook Mode (Simple)
Create a Slack App and Webhook:
Go to Slack API Apps
Create a new app or select an existing one
Navigate to "Incoming Webhooks"
Enable incoming webhooks
Add a new webhook to your workspace
Copy the webhook URL (format:
https://hooks.slack.com/services/T.../B.../...)
Configure MCP Client:
{
"mcpServers": {
"slack-webhook": {
"command": "bun",
"args": [
"run",
"src/index.ts",
"--webhook-url",
"https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK",
"--channel",
"#general"
],
"cwd": "/path/to/slack-webhook-mcp-server"
}
}
}Option 2: Bot Token Mode (Advanced)
Create a Slack App with Bot Token:
Go to Slack API Apps
Create a new app or select an existing one
Go to "OAuth & Permissions"
Add bot token scopes:
chat:write,chat:write.publicInstall app to workspace
Copy the "Bot User OAuth Token" (starts with
xoxb-)
Get Channel IDs:
Right-click on channel in Slack → "View channel details" → Copy channel ID
Or use Slack API to list channels
Configure MCP Client:
{
"mcpServers": {
"slack-bot": {
"command": "bun",
"args": [
"run",
"src/index.ts",
"--bot-token",
"xoxb-YOUR-BOT-TOKEN",
"--channel",
"CXXXXXXXXXX",
"--username",
"MCP Bot"
],
"cwd": "/path/to/slack-webhook-mcp-server"
}
}
}Usage
Command Line Arguments
Webhook Mode:
--webhook-url <url>- Slack webhook URL (required)--channel <channel>- Default channel name (optional, e.g., "#general")
Bot Mode:
--bot-token <token>- Slack bot token (required, starts withxoxb-)--channel <channel>- Default channel ID (required, e.g., "CXXXXXXXXXX")
Common Options:
--username <username>- Default bot username (optional)--icon-emoji <emoji>- Default bot emoji (optional, e.g., ":robot_face:")--help- Show help message
Examples
Webhook Mode:
bun run src/index.ts \
--webhook-url "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" \
--channel "#general" \
--username "Assistant"Bot Mode:
bun run src/index.ts \
--bot-token "xoxb-YOUR-BOT-TOKEN" \
--channel "CXXXXXXXXXX" \
--username "Assistant"Available Tools
post_slack_message
Post a message to your configured Slack integration.
Parameters:
message(required): The message content to send (max 4000 characters)channel(optional): Channel to post to (overrides default)Webhook mode: Channel name (e.g., "#random")
Bot mode: Channel ID (e.g., "CXXXXXXXXXX")
username(optional): Override the default username for this messageicon_emoji(optional): Override the default emoji for this message
Example usage in MCP client:
Please post "Hello from MCP!" to the general channelMode Comparison
Feature | Webhook Mode | Bot Mode |
Setup | Simple | Requires OAuth setup |
Channel Reference | Names (#general) | IDs (CXXXXXXXXXX) |
Permissions | Limited to webhook channel | Configurable scopes |
Rate Limits | Higher | Standard API limits |
Features | Basic messaging | Full API access |
Authentication | URL-based | Token-based |
Slack-Specific Features
Mentions
User mention:
<@U1234567890>Channel notification:
<!channel>Here notification:
<!here>
Channel References
Webhook mode: Use
#channel-nameformatBot mode: Use channel IDs like
CXXXXXXXXXX
Development
Scripts
bun run start- Start the serverbun run dev- Start with file watchingbun run build- Build for production
Project Structure
slack-webhook-mcp-server/
├── package.json # Dependencies and scripts
├── src/
│ └── index.ts # Main server implementation
├── types/
│ └── slack.ts # TypeScript types and schemas
└── README.md # This fileError Handling
The server includes comprehensive error handling for:
Invalid webhook URLs and bot tokens
Network connectivity issues
Slack API errors (different handling for webhook vs bot)
Message length validation (4000 char limit)
Channel ID validation (bot mode)
Malformed requests
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceThe most powerful MCP server for Slack Workspaces. This integration supports both Stdio and SSE transports, proxy settings and does not require any permissions or bots being created or approved by Workspace admins 😏.21,780MIT
- Alicense-qualityCmaintenanceA strong MCP server for Slack integration, providing standardized access to Slack's API features through both MCP tools and webhook processing.1MIT
- AlicenseAqualityFmaintenanceA minimal MCP server for sending Slack messages, supporting both bot and user tokens with concurrent safety and an AI bot signature in user-token mode.1281MIT
- Flicense-qualityDmaintenanceAn MCP server that connects to Slack via Socket Mode (WebSocket) and surfaces real-time message notifications through MCP tools. No public URL or ngrok needed.
Related MCP Connectors
A basic MCP server to operate on the Postman API.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
A very simple remote MCP server that greets you, with a custom icon.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SilasReinagel/slack-notify-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server