mcp-server-slack-notify
Sends formatted notifications to Slack channels using a bot token, supporting optional titles/headers, Slack mrkdwn formatting in message bodies, default channels, and automatic user mentions.
Click on "Deploy 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., "@mcp-server-slack-notify send a Slack notification to #general titled 'Standup' saying the build is green"
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.
@mkusaka/mcp-server-slack-notify
MCP server for sending notifications to Slack using OAuth bot tokens.
Features
Send formatted messages to Slack channels with title and description
Mention specific users automatically with the mention parameter
Support for Slack's markdown formatting
Clean message formatting with optional header
TypeScript support with full type safety
Related MCP server: Slack Notifications MCP Server
Installation
npm install @mkusaka/mcp-server-slack-notify
# or
pnpm add @mkusaka/mcp-server-slack-notifyConfiguration
Creating a Slack App
Create a new Slack app
Click "Create New App"
Choose "From scratch"
Enter your app name (e.g., "MCP Notification Bot")
Select your workspace
Click "Create App"
Configure OAuth scopes
In your app settings, navigate to "OAuth & Permissions" in the sidebar
Scroll down to "Scopes" section
Under "Bot Token Scopes", click "Add an OAuth Scope"
Add the following scope:
chat:write- Required for sending messages
Install the app to your workspace
Stay on the "OAuth & Permissions" page
Click "Install to Workspace" at the top
Review the permissions and click "Allow"
You'll be redirected back to the OAuth & Permissions page
Get your Bot Token
After installation, you'll see a "Bot User OAuth Token" on the OAuth & Permissions page
It starts with
xoxb-Copy this token - you'll need it for the
SLACK_BOT_TOKENenvironment variable
Invite the bot to channels
In Slack, go to the channel where you want to send notifications
Type
/invite @YourBotName(replace with your bot's name)Or click the channel name → "Integrations" tab → "Add apps" → Select your bot
Environment Variables
Set the following environment variables:
SLACK_BOT_TOKEN(required): Your Bot User OAuth Token from step 4SLACK_DEFAULT_CHANNEL(optional): Default channel for notifications (e.g.,#general)SLACK_MENTIONS(optional): Default user IDs to mention in all messages (e.g.,U1234567890,U0987654321)
Usage with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"slack-notify": {
"command": "npx",
"args": ["-y", "@mkusaka/mcp-server-slack-notify@latest"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-token-here",
"SLACK_DEFAULT_CHANNEL": "#general",
"SLACK_MENTIONS": "U1234567890,U0987654321"
}
}
}
}Usage with Claude Code
You can add this MCP server to Claude Code using the following command:
claude mcp add slack-notify -e SLACK_BOT_TOKEN=xoxb-your-token-here -e SLACK_DEFAULT_CHANNEL=#general -e SLACK_MENTIONS=U1234567890,U0987654321 -- npx -y @mkusaka/mcp-server-slack-notify@latestOr if you have the package installed globally:
# Install globally first
npm install -g @mkusaka/mcp-server-slack-notify
# Then add to Claude Code
claude mcp add slack-notify -e SLACK_BOT_TOKEN=xoxb-your-token-here -e SLACK_DEFAULT_CHANNEL=#general -e SLACK_MENTIONS=U1234567890,U0987654321 -- mcp-server-slack-notifyTo add with user scope (available across all projects):
claude mcp add --scope user slack-notify -e SLACK_BOT_TOKEN=xoxb-your-token-here -e SLACK_DEFAULT_CHANNEL=#general -e SLACK_MENTIONS=U1234567890,U0987654321 -- npx -y @mkusaka/mcp-server-slack-notify@latestAvailable Tools
send_slack_notification
Sends a notification to a Slack channel.
Parameters:
channel(optional): The Slack channel (e.g., #general or C1234567890)title(optional): The notification title (if provided, displays with header formatting)description(required): The notification body (supports Slack markdown)mention(optional): User ID(s) to mention. Can be a single user ID (e.g., U1234567890) or multiple IDs separated by commas (e.g., U1234567890,U0987654321)
Formatting Guide
The description field supports Slack's mrkdwn formatting:
Mentions:
User:
<@U1234567890>(use the user's ID)Channel:
<#C1234567890>(use the channel's ID)@here:
<!here>@channel:
<!channel>User groups:
<!subteam^S1234567890>(use the subteam's ID)Note: When using the
mentionparameter orSLACK_MENTIONSenvironment variable, user mentions are automatically added at the beginning of the message
Text formatting:
Bold:
*bold text*Italic:
_italic text_Strikethrough:
~strikethrough text~Code:
`inline code`Code block:
```code block```Quote:
> quoted textLink:
<https://example.com|Link text>
Development
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build
pnpm build
# Run in development mode
pnpm start
# Debug with MCP Inspector
pnpm debugTesting
The project includes comprehensive tests using Vitest with mocked Slack API calls.
# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watchLicense
MIT
Available Tools
1 toolsend_slack_notificationC
Sends a notification to a Slack channel with a title and description
Inputs: description (required), title, channel, mention.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool in the set, there is no possibility of selecting the wrong one. The single tool's purpose (send a Slack notification) is explicit in its name and description.
The lone tool follows a clear verb_noun convention (send_slack_notification) in snake_case. There are no competing names or mixed conventions to create inconsistency.
The server's stated scope is narrow—notification delivery only—so a single tool is largely justified rather than bloat. It is slightly thin in that no companion operations (e.g. listing channels or checking delivery) exist, but it is not a mismatch for the purpose.
Core send capability is present, but an agent cannot list channels, target users/threads, or retrieve prior notifications, creating potential dead ends when it needs to discover valid destinations. Coverage is adequate for fire-and-forget alerts only.
Maintenance
Related MCP Connectors
Enable interaction with Slack workspaces. Supports subscribing to Slack events through Resources.
Use Slack from chat: see channels, catch up on messages, post updates, and reply in threads in your…
Human-authenticated setup for routing GitHub pull requests into the right Slack channel.
Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude AI to send real-time notifications to Slack channels with support for rich formatting, multiple channels, and customizable message styling for workflow automation and task completion alerts.2MIT
- FlicenseAqualityBmaintenanceEnables interaction with Slack channels including checking Xcode Cloud build status, reading and searching messages, sending messages, and listing channels.51-
- AlicenseAqualityBmaintenanceEnables Slack integration with tools to list channels, read messages, and post messages using a bot token.31MIT
- FlicenseAqualityCmaintenanceEnables posting messages to a Slack channel using a bot token, with support for stdio and HTTP modes.1-