MCP Chat
MCP Chat is a command-line interface application. The application supports document retrieval, command-based prompts, and extensible tool integrations via the MCP (Model Control Protocol) architecture.
Prerequisites
- Python 3.9+
- Any Chat Completions LLM API Key and Provider (i.e: Gemini)
Setup
Step 1: Configure the environment variables
- Create or edit the
.env
file in the project root and verify that the following variables are set correctly:
Step 2: Install dependencies
uv is a fast Python package installer and resolver.
- Install uv, if not already installed:
- Create and activate a virtual environment:
- Install dependencies:
- Start MCP Server:
- Run the project with ChatAgent in CLI
- Optionally start inspector
Usage
Basic Interaction
Simply type your message and press Enter to chat with the model.
Document Retrieval
Use the @ symbol followed by a document ID to include document content in your query:
Commands
Use the / prefix to execute commands defined in the MCP server:
Commands will auto-complete when you press Tab.
Development
Adding New Documents
Edit the mcp_server.py
file to add new documents to the docs
dictionary.
Implementing MCP Features
To fully implement the MCP features:
- Complete the TODOs in
mcp_server.py
- Implement the missing functionality in
mcp_client.py
Linting and Typing Check
There are no lint or type checks implemented.
This server cannot be installed
A command-line interface application that enables interaction with LLMs through document retrieval, command-based prompts, and extensible tool integrations using the Model Control Protocol architecture.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.Last updated -3Python
- -securityAlicense-qualityA comprehensive toolkit that enhances LLM capabilities through the Model Context Protocol, allowing LLMs to interact with external services including command-line operations, file management, Figma integration, and audio processing.Last updated -22PythonApache 2.0
- -securityFlicense-qualityAllows LLM tools like Claude Desktop and Cursor AI to access and summarize code files through a Model Context Protocol server, providing structured access to codebase content without manual copying.Last updated -1TypeScript
- -securityFlicense-qualityA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.Last updated -1Python