Provides a Slack-based MCP server that controls Slack actions via a Python client and C# server integration.
Configuration
View docs{
"mcpServers": {
"antonhofstader-slack-mcp": {
"command": "dotnet",
"args": [
"run",
"--project",
"../server-csharp/SlackMcpServer.csproj"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-token-here"
}
}
}
}You deploy a four-layer MCP implementation that connects a Python client to a C# Slack-integrated server. This setup enables natural language prompts to drive Slack actions such as posting messages, reading history, managing channels, and reacting to messages, all through a unified MCP protocol.
You interact with the Slack MCP server through the Python client. Start by launching the C# Slack MCP server in stdio mode, then run the Python client to communicate via JSON-RPC over standard input and output. The agent interprets your prompts, decides which Slack tool to call, and returns human-friendly responses. You can perform tasks like listing channels, creating channels, sending messages, reading history, and adding reactions by stating your intent in natural language.
Prerequisites you need before starting:
1) Set your Slack bot token in your environment.
2) Build the C# server and prepare the Python client to connect to it.
If you encounter issues, verify that environment variables are set, the C# server builds successfully, and the Python client launches with the correct server command.
Post a message to a Slack channel or thread.
Read recent messages from a channel or thread.
List channels in the Slack workspace.
Create a new public channel.
Add an emoji reaction to a message.
Enumerate workspace members.