English | νκ΅μ΄
MCP Client Chatbot is a versatile chat interface that supports various AI model providers like OpenAI, Anthropic, Google, and Ollama. It is designed for instant execution in 100% local environments without complex configuration, enabling users to fully control computing resources on their personal computer or server.
Built with Vercel AI SDK and Next.js, this app adopts modern patterns for building AI chat interfaces. Leverage the power of Model Context Protocol (MCP) to seamlessly integrate external tools into your chat experience.
π Open Source Project MCP Client Chatbot is a 100% community-driven open source project.
- MCP Client Chatbot
Here are some quick examples of how you can use MCP Client Chatbot:
Example: Control a web browser using Microsoft's playwright-mcp tool.
Sample prompt:
Please go to GitHub and visit the cgoinglove profile.
Open the mcp-client-chatbot project.
Then, click on the README.md file.
After that, close the browser.
Finally, tell me how to install the package.
Quickly call any registered MCP tool during chat by typing @toolname
.
No need to memorize β just type @
and pick from the list!
You can also control how tools are used with the new Tool Choice Mode:
- Auto: Tools are automatically called by the model when needed.
- Manual: The model will ask for your permission before calling any tool.
- None: Disables all tool usage.
Toggle modes anytime with the shortcut βP
.
Add new MCP servers easily through the UI, and start using new tools without restarting the app.
MCP tools independently from chat sessions for easier development and debugging.
Visualize chatbot responses as pie, bar, or line charts using the built-in tool β perfect for quick data insight during conversations.
- π» 100% Local Execution: Run directly on your PC or server without complex deployment, fully utilizing and controlling your computing resources.
- π€ Multiple AI Model Support: Flexibly switch between providers like OpenAI, Anthropic, Google AI, and Ollama.
- π οΈ Powerful MCP Integration: Seamlessly connect external tools (browser automation, database operations, etc.) into chat via Model Context Protocol.
- π Standalone Tool Tester: Test and debug MCP tools separately from the main chat interface.
- π¬ Intuitive Mentions + Tool Control: Trigger tools with
@
, and control when they're used viaAuto
/Manual
/None
modes. - βοΈ Easy Server Setup: Configure MCP connections via UI or
.mcp-config.json
file. - π Markdown UI: Communicate in a clean, readable markdown-based interface.
- πΎ Zero-Setup Local DB: Uses SQLite by default for local storage (PostgreSQL also supported).
- π§© Custom MCP Server Support: Modify the built-in MCP server logic or create your own.
- π Built-in Chart Tools: Generate pie, bar, and line charts directly in chat with natural prompts.
This project uses pnpm as the recommended package manager.
# 1. Install dependencies
pnpm i
# 2. Initialize project (creates .env, sets up DB)
pnpm initial
# 3. Start dev server
pnpm dev
Open http://localhost:3000 in your browser to get started.
The pnpm initial
command generates a .env
file. Add your API keys there:
GOOGLE_GENERATIVE_AI_API_KEY=****
OPENAI_API_KEY=****
# ANTHROPIC_API_KEY=****
SQLite is the default DB (db.sqlite
). To use PostgreSQL, set USE_FILE_SYSTEM_DB=false
and define POSTGRES_URL
in .env.
You can connect MCP tools via:
- UI Setup: Go to http://localhost:3000/mcp and configure through the interface.
- Direct File Edit: Modify
.mcp-config.json
in project root. - Custom Logic: Edit
./custom-mcp-server/index.ts
to implement your own logic.
Here are some practical tips and guides for using MCP Client Chatbot:
-
Project Feature with MCP Server: Learn how to integrate system instructions and structures with MCP servers to build an agent that assists with GitHub-based project management.
-
Docker Hosting Guide: Coming soon...
MCP Client Chatbot is evolving with these upcoming features:
- Self Hosting:
- Easy deployment with Docker Compose
- Vercel deployment support (MCP Server: SSE only)
- Open Audio Real-Time Chat:
- Real-time voice chat with MCP Server integration
- File Attach & Image Generation:
- File upload and image generation
- Multimodal conversation support
- MCP Flow:
- Workflow automation with MCP Server integration
- Default Tools for Chatbot:
- Collaborative document editing (like OpenAI Canvas: user & assistant co-editing)
- RAG (Retrieval-Augmented Generation)
- Useful built-in tools for chatbot UX (usable without MCP)
- LLM-powered code writing and editing using Daytona integration
- Seamless LLM-powered code writing, editing, and execution in a cloud development environment via Daytona integration. Instantly generate, modify, and run code with AI assistanceβno local setup required.
π‘ If you have suggestions or need specific features, please create an issue!
We welcome all contributions! Bug reports, feature ideas, code improvements β everything helps us build the best local AI assistant.
Letβs build it together π