- agentic-slackbot
Content
agentic-slackbot
A simple Slack bot that uses the OpenAI Agents SDK to interact with the Model Context Protocol (MCP) server.
Install Dependencies
uv sync
Environment Variables
Create a .envrc file in the root directory of the project and add the following environment variables:
export OPENAI_API_KEY=""
export SLACK_BOT_TOKEN=""
export SLACK_APP_TOKEN=""
export OPENAI_MODEL="gpt-4o"
export HTTP_PROXY=""
If you are using Azure OpenAI, you can set the following environment variables instead:
AZURE_OPENAI_API_KEY=""
AZURE_OPENAI_ENDPOINT="https://<myopenai>.azure.com/"
OPENAI_MODEL="gpt-4o"
OPENAI_API_VERSION="2025-03-01-preview"
If you are using Langfuse
export LANGFUSE_PUBLIC_KEY="xxx"
export LANGFUSE_SECRET_KEY="xxx"
export LANGFUSE_HOST="xxx"
Running the Bot
uv run bot
Running the bot in docker
# Build the Docker image
docker build . -t agentic-slackbot
# Run the Docker container
docker run -e SLACK_BOT_TOKEN="" \
-e SLACK_APP_TOKEN="" \
-e HTTP_PROXY="" \
-e OPENAI_PROXY_BASE_URL="" \
-e OPENAI_PROXY_API_KEY="" \
-e OPENAI_MODEL=gpt-4o \
-e FIRECRAWL_API_URL="" slackbot
Credit
This project is based on the sooperset/mcp-client-slackbot example.
Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbotโข
MCP PlaygroundCall MCP Server Tools Online
CursorThe AI Code Editor
y-cli ๐A Tiny Terminal Chat App for AI Models with MCP Client Support
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
LutraLutra is the first MCP compatible client built for everyone
Cline โ #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
Continueโฉ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
ZedCode at the speed of thought โ Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
LINKAGOGO-MCP---BOOKMARK-MANAGERManage your LinkaGoGo bookmarks through any AI assistant that supports the Model Context Protocol (MCP). Search, add, organize, tag, move, and export bookmarks conversationally โ 16 tools for full bookmark and folder management. Connect via Claude.ai, Claude Desktop, or any MCP-compatible client.
Cherry Studio๐ Cherry Studio is a desktop client that supports for multiple LLM providers.