Sponsored by Deepsite.site

mcp-chatbot

Created By
mctrinh7 months ago
MCP Chatbot powered by Anthropic Claude. Delivering on‐demand literature search and summarisation for academics and engineers
Content

mcp-chatbot

A modular, async research assistant that combines Anthropic Claude 3 with the Model Context Protocol (MCP), delivering on‐demand literature search and summarisation for academics and engineers.


1. Project Structure

mcp-chatbot/
├── Dockerfile
├── pyproject.toml
├── uv.lock
├── README.md
├── server_config.json
├── research_server.py
├── papers/                  # Cached paper metadata by topic
├── mcp_chatbot/
│   ├── __init__.py
│   ├── cli.py               # Typer-based CLI
│   └── core.py              # Main chatbot engine
└── tests/
    └── test_core.py

2. Quick Start

2.1. Clone the Repository

git clone https://github.com/mctrinh/mcp-chatbot.git
cd mcp-chatbot

2.2. Install Dependencies

# Git Bash or WSL on Windows, doesn't work in standard Command Prompt or PowerShell
curl -LsSf https://astral.sh/uv/install.sh | sh

# Scoop (Windows)
scoop install uv

# Chocolatey (Windows - Administrator Command Prompt - Recommended)
choco install uv
uv --version

Install Python packages in project.dependencies in pyproject.toml

pip install -e .

3. Build and Run with Docker

# Build image
docker build -t mcp-chatbot:0.1 .

# Run server and CLI (ports 8001 and 8000)
docker run --rm -it -p 8001:8001 -p 8000:8000 mcp-chatbot:0.1

4. Run Without Docker (Local Dev)

# Install dependencies
uv pip install -e .[dev]

# Start the research server (MCP tool)
python research_server.py

# In a new terminal, launch the chatbot CLI
mcp-chatbot run

5. Try the Chatbot

5.1. REPL Mode

python -m mcp_chatbot.cli run

Or using the installed script:

mcp-chatbot run

Once inside the REPL (Read-Eval-Print Loop), you can interact with the chatbot directly by typing commands or queries. Example commands:

/prompts            # list Claude prompts
@folders            # list downloaded paper topics
AI alignment        # ask anything – Claude decide whether to invoke tools

5.2. One-shot Query

mcp-chatbot once "What are the latest trends in diffusion models?"

6. Configuration (Optional)

Environment variables and server_config.json control model and ports:

export ANTHROPIC_MODEL="claude-3-opus-20240229"
export RESEARCH_PORT=8001
export PAPER_DIR=./papers

7. Testing

# Installs pytest, coverage, etc.
uv pip install -e .[dev]

# Run unit tests
pytest -q

# With coverage (optional)
pytest --cov=mcp_chatbot

8. Road map

  • Research MCP server with search_papers and extract_info (done)

  • Tool usage via Claude 3 (done)

  • Prompt orchestration (done)

  • Vector search over stored papers (Faiss / Chroma)

  • Web UI using FastAPI + React

  • GitHub Actions for CI/CD

9. License

MIT License. Copyright © 2025.

10. Current Issues

Issues occur when running mcp-chatbot run

  • ⚠ Could not connect to server 'fetch': Method not found
  • ⚠ Could not connect to server 'filesystem': Method not found
Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
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
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
ZedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
LutraLutra is the first MCP compatible client built for everyone
Cherry Studio🍒 Cherry Studio is a desktop client that supports for multiple LLM providers.
ChatWiseThe second fastest AI chatbot™
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.
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
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 .
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
y-cli 🚀A Tiny Terminal Chat App for AI Models with MCP Client Support
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.
MCP PlaygroundCall MCP Server Tools Online
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
BACHAI-TWITTER-API45Twitter的一些api mcp
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).