Chatbot (3choff)

Developer tools

A simple CLI chatbot that demonstrates the integration of the Model Context Protocol (MCP).

Your AI app calls the Chatbot (3choff) MCP server, which does the developer tools work and sends the result back to the chat.

About Chatbot (3choff)

Chatbot (3choff) is a community MCP server from 3choff, filed in our directory under developer tools. A simple CLI chatbot that demonstrates the integration of the Model Context Protocol (MCP).

At a glance

Publisher
3choff (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
251

How to set up Chatbot (3choff)

  1. Follow the install steps in the Chatbot (3choff) README; it is written in Python, so have that toolchain ready.
  2. Check the Chatbot (3choff) README for keys or settings; the registry lists none that Chatbot (3choff) requires.
  3. Add Chatbot (3choff) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Chatbot (3choff) tools to confirm the connection.
  5. Run one read-only task with Chatbot (3choff) first, and keep your app asking before each tool call until the results look right.

Chatbot (3choff) compared with similar servers

  • Claude Code Gemini by RaiAnsar has fewer GitHub stars than Chatbot (3choff) (251 against 251); both are community servers, and both run locally.
  • Live Coding Music by williamzujkowski has more GitHub stars than Chatbot (3choff) (252 against 251); both are community servers, and both run locally.
  • Google Tag Manager by stape-io has fewer GitHub stars than Chatbot (3choff) (251 against 251); both are community servers, and both run locally.

Before you connect Chatbot (3choff)

  • Give Chatbot (3choff) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Chatbot (3choff) tool call until you trust what it does with them.
  • Treat text that Chatbot (3choff) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Chatbot (3choff) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Chatbot (3choff)

How marketing and sales teams put Chatbot (3choff) to work, by company size. Pick the size closest to yours and start Chatbot (3choff) on one use case.

Small business

  • A small business with a developer can use Chatbot (3choff) to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Chatbot (3choff) to explain and fix a marketing site issue without context switching between tools.
  • Chatbot (3choff) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Chatbot (3choff) to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Chatbot (3choff) to keep scripts and automations documented and versioned as they change.
  • Start Chatbot (3choff) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Chatbot (3choff) with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Chatbot (3choff) so web and marketing engineering share one reviewed way of working with AI.
  • Chatbot (3choff) is a community server, so have security review the code and pin a version before Chatbot (3choff) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Chatbot (3choff) README

From 3choff/mcp-chatbot on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP Chatbot

This chatbot example demonstrates how to integrate the Model Context Protocol (MCP) into a simple CLI chatbot. The implementation showcases MCP's flexibility by supporting multiple tools through MCP servers and is compatible with any LLM provider that follows OpenAI API standards.

If you find this project helpful, don’t forget to ⭐ star the repository or buy me a ☕ coffee.

Key Features

  • LLM Provider Flexibility: Works with any LLM that follows OpenAI API standards (tested with Llama 3.2 90b on Groq and GPT-4o mini on GitHub Marketplace).
  • Dynamic Tool Integration: Tools are declared in the system prompt, ensuring maximum compatibility across different LLMs.
  • Server Configuration: Supports multiple MCP servers through a simple JSON configuration file like the Claude Desktop App.

Requirements

  • Python 3.10
  • python-dotenv
  • requests
  • mcp
  • uvicorn

Installation

  1. Clone the repository:

    git clone https://github.com/3choff/mcp-chatbot.git
    cd mcp-chatbot
    
  2. Install the dependencies:

    pip install -r requirements.txt
    
  3. Set up environment variables:

    Create a .env file in the root directory and add your API key:

    LLM_API_KEY=your_api_key_here
    
  4. Configure servers:

    The servers_config.json follows the same structure as Claude Desktop, allowing for easy integration of multiple servers. Here's an example:

    {
      "mcpServers": {
        "sqlite": {
          "command": "uvx",
          "args": ["mcp-server-sqlite", "--db-path", "./test.db"]
        },
        "puppeteer": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
        }
      }
    }
    

    Environment variables are supported as well. Pass them as you would with the Claude Desktop App.

    Example:

    {
      "mcpServers": {
        "server_name": {
          "command": "uvx",
          "args": ["mcp-server-name", "--additional-args"],
          "env": {
            "API_KEY": "your_api_key_here"
          }
        }
      }
    }
    

Usage

  1. Run the client:

    python main.py
    
  2. Interact with the assistant:

    The assistant will automatically detect available tools and can respond to queries based on the tools provided by the configured servers.

  3. Exit the session:

    Type quit or exit to end the session.

Architecture

  • Tool Discovery: Tools are automatically discovered from configured servers.
  • System Prompt: Tools are dynamically included in the system prompt, allowing the LLM to understand available capabilities.
  • Server Integration: Supports any MCP-compatible server, tested with various server implementations including Uvicorn and Node.js.
Class Structure
  • Configuration: Manages environment variables and server configurations
  • Server: Handles MCP server initialization, tool discovery, and execution
  • Tool: Represents individual tools with their properties and formatting
  • LLMClient: Manages communication with the LLM provider
  • ChatSession: Orchestrates the interaction between user, LLM, and tools
Logic Flow
flowchart TD
    A[Start] --> B[Load Configuration]
    B --> C[Initialize Servers]
    C --> D[Discover Tools]
    D --> E[Format Tools for LLM]
    E --> F[Wait for User Input]
    
    F --> G{User Input}
    G --> H[Send Input to LLM]
    H --> I{LLM Decision}
    I -->|Tool Call| J[Execute Tool]
    I -->|Direct Response| K[Return Response to User]
    
    J --> L[Return Tool Result]
    L --> M[Send Result to LLM]
    M --> N[LLM Interprets Result]
    N --> O[Present Final Response to User]
    
    K --> O
    O --> F
  1. Initialization:

    • Configuration loads environment variables and server settings
    • Servers are initialized with their respective tools
    • Tools are discovered and formatted for LLM understanding
  2. Runtime Flow:

    • User input is received
    • Input is sent to LLM with context of available tools
    • LLM response is parsed:
      • If it's a tool call → execute tool and return result
      • If it's a direct response → return to user
    • Tool results are sent back to LLM for interpretation
    • Final response is presented to user
  3. Tool Integration:

    • Tools are dynamically discovered from MCP servers
    • Tool descriptions are automatically included in system prompt
    • Tool execution is handled through standardized MCP protocol

Contributing

Feedback and contributions are welcome. If you encounter any issues or have suggestions for improvements, please create a new issue on the GitHub repository.

If you'd like to contribute to the development of the project, feel free to submit a pull request with your changes.

License

This project is licensed under the MIT License.

Questions about Chatbot (3choff)

What is the Chatbot (3choff) MCP server?

A simple CLI chatbot that demonstrates the integration of the Model Context Protocol (MCP). Chatbot (3choff) is maintained by 3choff on GitHub at 3choff/mcp-chatbot, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Chatbot (3choff) MCP server?

Chatbot (3choff) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (3choff/mcp-chatbot). Like most servers, Chatbot (3choff) ends with a command or URL you paste into your AI app's MCP config.

Does Chatbot (3choff) need an API key?

The registry lists no required keys for Chatbot (3choff). Check the Chatbot (3choff) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Chatbot (3choff) an official MCP server?

No. Chatbot (3choff) is a community server maintained by 3choff. Community servers can be excellent; read the code and the open issues before you give Chatbot (3choff) access to company data.

What license is Chatbot (3choff) under?

Chatbot (3choff) is released under the MIT license, according to its GitHub repository. The license covers the code of Chatbot (3choff); the service it connects to has its own terms.