Python

Slack Bot

Bridge AI agents with Slack. Send messages, manage channels, and trigger workflows.

from mcp_server import MCPServer
from slack_sdk import WebClient

server = MCPServer("slack")
client = WebClient(token=process.env.SLACK_BOT_TOKEN)

@server.tool()
def send_message(channel: str, text: str):
  """Send a message to a Slack channel."""
  return client.chat_postMessage(channel=channel, text=text)

server.run()
Get Template Browse All Templates