Send notifications to Slack channels using webhook URLs.
Transform your Claude AI workflows with instant Slack notifications!
A powerful Model Context Protocol (MCP) server that seamlessly connects Claude AI with Slack, enabling real-time notifications for task completions, alerts, and workflow automation. Never miss important updates from your AI assistant again!
# 1. Clone and install
git clone https://github.com/Zavdielx89/slack-notification-mcp.git
cd slack-notification-mcp
npm install
# 2. Configure your Slack webhooks
cp config.example.json config.json
# Edit config.json with your webhook URLs
# 3. Add to your Claude Desktop config
# See detailed setup instructions below
cd ~/code/workflows/Slack-Notification-MCP
npm install
For each Slack channel you want to send notifications to:
https://[your-workspace].slack.com/apps/manage/custom-integrations
Create a config.json
file in the project directory:
cp config.example.json config.json
Edit config.json
with your actual Slack webhook URLs:
{
"channels": {
"general": {
"name": "General",
"webhook_url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
},
"notifications": {
"name": "Task Notifications",
"webhook_url": "https://hooks.slack.com/services/T11111111/B11111111/YYYYYYYYYYYYYYYYYYYYYYYY"
},
"alerts": {
"name": "System Alerts",
"webhook_url": "https://hooks.slack.com/services/T22222222/B22222222/ZZZZZZZZZZZZZZZZZZZZZZZZ"
}
}
}
Add this server to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"slack-notifications": {
"command": "node",
"args": ["/Users/zavdielx/code/workflows/Slack-Notification-MCP/index.js"]
}
}
}
Restart your Claude Desktop application to load the new MCP server.
Once configured, you'll have access to tools for each channel you configured. For example, if you configured channels named "general", "notifications", and "alerts", you'll see these tools:
slack_notify_general
slack_notify_notifications
slack_notify_alerts
Use the slack_notify_notifications tool to send a message "Task completed successfully!"
Send a notification to the general channel with title "Build Complete" and message "The deployment finished without errors"
Send an alert to the alerts channel with title "Error Detected", message "API endpoint is returning 500 errors", and color "danger"
Each slack_notify_*
tool accepts these parameters:
"good"
- Green (success)"warning"
- Yellow (warning)"danger"
- Red (error)After completing a long analysis, send a message to notifications channel: "Data analysis complete. Found 15 anomalies in the dataset. Report ready for review."
If an error occurs, send a danger-colored alert to the alerts channel with title "Processing Error" and message "Failed to process user upload: invalid file format"
Send a good-colored message to general channel with title "System Update" and message "All services are running normally after the maintenance window"
npm run dev
This will start the server with file watching for automatic restarts.
config.json
slack_notify_[channel_id]
tool will be automatically availableYou can test the server directly:
npm start
The server will run and wait for MCP protocol messages on stdin/stdout.
Make sure you've created config.json
in the project directory with valid Slack webhook URLs.
config.json
file secure and don't commit webhook URLs to version controlContributions are welcome! Feel free to:
If this MCP server saves you time or enhances your Claude AI workflows, consider supporting its development:
Your support helps me:
Made with β€οΈ for the Claude AI community
If this project helps you stay connected with your AI workflows, consider giving it a β!
MIT License - feel free to use and modify as needed!
Advanced audio transcription and processing using OpenAI's Whisper and GPT-4o models.
Chat with any other OpenAI SDK Compatible Chat Completions API, like Perplexity, Groq, xAI and more
A server for interacting with DingTalk workspaces using the Model Context Protocol.
Access market data, manage accounts, and execute trades on the Upbit Cryptocurrency Exchange via its OpenAPI.
An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.
Connects AI agents to the Feishu/Lark platform via its OpenAPI to automate tasks like document processing, conversation management, and calendar scheduling.
A server for interacting with WeChat, a popular messaging and social media app.
An MCP server for collecting interactive user feedback through a graphical user interface.
An MCP server for seamless integration with the Kick.com API.
MCP server acting as an interface to the Facebook Ads, enabling programmatic access to Facebook Ads data and management features.