Send notifications to Slack using OAuth bot tokens.
MCP server for sending notifications to Slack using OAuth bot tokens.
npm install @mkusaka/mcp-server-slack-notify
# or
pnpm add @mkusaka/mcp-server-slack-notify
Create a new Slack app
Configure OAuth scopes
chat:write
- Required for sending messagesInstall the app to your workspace
Get your Bot Token
xoxb-
SLACK_BOT_TOKEN
environment variableInvite the bot to channels
/invite @YourBotName
(replace with your bot's name)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
)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"
}
}
}
}
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@latest
Or 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-notify
To 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@latest
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)The description field supports Slack's mrkdwn formatting:
<@U1234567890>
(use the user's ID)<#C1234567890>
(use the channel's ID)<!here>
<!channel>
<!subteam^S1234567890>
(use the subteam's ID)mention
parameter or SLACK_MENTIONS
environment variable, user mentions are automatically added at the beginning of the message*bold text*
_italic text_
~strikethrough text~
`inline code`
```code block```
> quoted text
<https://example.com|Link text>
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build
pnpm build
# Run in development mode
pnpm start
# Debug with MCP Inspector
pnpm debug
The project includes comprehensive tests using Vitest with mocked Slack API calls.
# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watch
MIT
Sends desktop notifications with sound when agent tasks are completed.
An MCP server for Claude that integrates with the Evolution API for WhatsApp automation.
Tools for common Gmail operations, such as sending emails.
Interact with Mailgun API.
Send push notifications via the Pushinator service. Requires an API token from your Pushinator account.
A read-only MCP server for Slack by CData, enabling LLMs to query live Slack data. Requires the CData JDBC Driver for Slack.
An MCP server for interacting with Slack workspaces using user tokens, without requiring bots or special permissions.
Manage emails using Gmail and IMAP protocols. Requires external configuration for credentials and settings.
Access Reddit's public API to browse frontpage posts, subreddit information, and read post comments.
Interact with Africa's Talking airtime service and store transaction data in a local SQLite database.