Manages environment variables for the server configuration, particularly for storing sensitive information like the Slack Bot Token.
Serves as the runtime environment for the MCP server, allowing it to execute the JavaScript code that powers the Slack integration.
Handles package management for the server, allowing easy installation of dependencies and running of scripts.
Enables messaging and management capabilities with Slack workspaces, including sending messages to channels/users, retrieving channel history, searching workspace messages, getting channel/user lists, and administrative functions like creating channels and inviting users.
Used as the programming language for implementing the MCP server, providing type safety and modern language features.
Slack MCP Server
A Model Context Protocol (MCP) server that provides seamless Slack integration for AI assistants. This server enables AI models to interact with Slack workspaces through a comprehensive set of tools for messaging, channel management, and user interactions.
🚀 Features
Core Slack Tools
- Message Management: Send messages to channels and users
- Channel Operations: List channels and retrieve message history
- User Management: Get workspace user information
- Message Search: Search across workspace messages
- Custom Tools: Specialized tools for specific workflows
Special Features
- Smart Workday Calculation: Automatically reads messages from the previous workday
- User-Specific Filtering: Dedicated tool for reading specific user messages
- Rich Message Information: Includes user details, timestamps, and thread information
- Flexible Time Ranges: Support for custom date ranges and all-time searches
📋 Available Tools
Tool Name | Description |
---|---|
slack_send_message | Send messages to channels or users |
slack_get_channels | Get list of workspace channels |
slack_get_users | Get list of workspace users |
slack_get_channel_history | Retrieve channel message history |
slack_search_messages | Search messages across workspace |
read_frontend_ladisai_messages | Special: Read Neil Kuo's messages from frontend-ladisai channel |
🛠️ Installation
Prerequisites
- Node.js 18 or higher
- npm or yarn
- Slack Bot Token with appropriate permissions
Setup
- Clone and install dependencies:
- Build the project:
⚙️ Configuration
Environment Variables
Create a .env
file with the following:
Slack Bot Permissions
Your Slack Bot needs the following OAuth scopes:
Required Scopes
channels:read
- Read public channelschannels:history
- Read channel message historygroups:read
- Read private channelsgroups:history
- Read private channel historyusers:read
- Read user informationchat:write
- Send messagessearch:read
- Search messages
Optional Scopes
channels:manage
- Create channels (if using channel creation tools)groups:write
- Manage private channels
MCP Configuration
Add to your MCP client configuration (e.g., Cursor's mcp.json
):
🎯 Usage Examples
Basic Message Sending
Reading Channel History
Special: Reading Neil Kuo's Messages
User and Channel Information
🔧 Development
Scripts
npm run build
- Build the TypeScript projectnpm run dev
- Build and watch for changesnpm start
- Start the MCP servernpm run typecheck
- Run TypeScript type checking
Project Structure
🔍 Smart Workday Logic
The read_frontend_ladisai_messages
tool includes intelligent workday calculation:
- Monday → Reads Friday's messages (3 days back)
- Tuesday → Reads Monday's messages (1 day back)
- Wednesday → Reads Tuesday's messages (1 day back)
- Thursday → Reads Wednesday's messages (1 day back)
- Friday → Reads Thursday's messages (1 day back)
- Saturday → Reads Friday's messages (1 day back)
- Sunday → Reads Friday's messages (2 days back)
🐛 Troubleshooting
Common Issues
- "Failed to get channel list"
- Check if your bot has
channels:read
permission - Ensure the bot is added to the workspace
- Check if your bot has
- "Failed to get channel history"
- Verify the bot has
channels:history
permission - Check if the bot is invited to the specific channel
- Verify the bot has
- "Message sent successfully" but no message appears
- Confirm the bot has
chat:write
permission - Verify the channel name/ID is correct
- Confirm the bot has
- MCP server not responding
- Check if the build was successful:
npm run build
- Verify environment variables are set correctly
- Restart your MCP client (e.g., Cursor)
- Check if the build was successful:
Testing the Server
📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📞 Support
For issues and questions:
- Check the troubleshooting section above
- Review Slack API documentation
- Check MCP protocol specifications
Note: This MCP server is optimized for the frontend-ladisai channel workflow and includes specialized tools for reading Neil Kuo's messages with smart workday detection.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A simple Model Context Protocol server for Slack integration that enables messaging, channel management, and workspace search capabilities.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to interact with Slack workspaces, allowing them to browse channels, send messages, reply to threads, add reactions, and retrieve user information.Last updated -161JavaScriptApache 2.0
- AsecurityAlicenseAqualityA server implementing Model Context Protocol that enables AI assistants to interact with Slack API through a standardized interface, providing tools for messaging, channel management, user information retrieval, and more.Last updated -953JavaScriptApache 2.0
- -securityAlicense-qualityEnables AI assistants to interact with Slack workspaces through the Model Context Protocol, providing tools for reading/sending messages, managing channels, and accessing Slack API functionality.Last updated -PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that integrates with Slack API, allowing users to send messages, view channel history, manage channels, send direct messages, and retrieve user lists from Slack workspaces.Last updated -Python