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
Provides AI assistants with comprehensive access to Cisco Webex messaging capabilities.
Connect your AI agents to Google-Meet, Zoom & Microsoft Teams through tl;dv
integrates with Bluesky API to query and search feeds and posts.
Connect AI assistants like Cursor to Google Chat and beyond — enabling smart, extensible collaboration across chat platforms.
MCP server acting as an interface to the Facebook Ads, enabling programmatic access to Facebook Ads data and management features.
A read-only MCP server for Slack by CData, enabling LLMs to query live Slack data. Requires the CData JDBC Driver for Slack.
Interact with any other SaaS applications on behalf of your customers.
BGG MCP enables AI tools to interact with the BoardGameGeek API.
Integrates with Mailtrap Email API.
Query live Gmail data using LLMs via CData's read-only MCP server.