A comprehensive toolkit for interacting with Model Context Protocol (MCP) servers. This project provides both a graphical user interface and command-line tools for managing MCP servers, running queries against them using OpenAI models, and discovering available tools.
The Model Context Protocol (MCP) is an open standard for exposing tools and capabilities to large language models (LLMs). It enables LLMs to access external tools like web browsers, databases, and APIs in a standardized way. This project provides a client implementation that makes it easy to:
- Connect to MCP-compatible servers
- Manage multiple server configurations
- Run natural language queries that leverage MCP tool capabilities
- Explore available tools and their functionality
This project consists of three main components:
- Command-Line Interface (CLI): For managing servers and running queries in a terminal
- Graphical User Interface (GUI): A PyQt5-based desktop application for visual interaction
- API Server: A RESTful API that exposes MCP CLI functionality via HTTP, enabling integration with web applications and other services
mcp-cli-project/
├── mcp_cli/ # Core Python package
│ ├── api/ # RESTful API server implementation
│ │ ├── server.py # Flask-based API server
│ │ └── README.md # API documentation
│ ├── gui/ # GUI implementation using PyQt5
│ ├── core.py # Core functionality shared by CLI, implementation
├── mcpgui/ # Web-based GUI (Next.js frontend)
│ ├── src/ # Source code for the web interface
│ └── public/ # Static assets
├── bin/ # Executable scripts
│ ├── mcp_gui.py # Script to start the GUI
│ └── mcp_cli.py # Script to run CLI commands
├── config/ # Configuration files
│ └── config.json # Server configurations
├── docs/ # Documentation
└── setup.py # Package installation configuration