Basic information
About Model Context Protocol CLI — by shahshrey
# Model Context Protocol CLI\nThis repository contains a protocol-level CLI designed to interact with a Model Context Protocol server. The client allows users to send commands, query data, and interact with various resources provided by the server.\n\n## Features\n- Protocol-level communication with the MCP Server.\n- Dynamic tool and resource exploration.\n- Support for multiple providers and models:\n - Providers: OpenAI, Ollama.\n - Default models: `gpt-4o` for OpenAI, `qwen2.5-coder` for Ollama.\n\n## Prerequisites\n- Python 3.8 or higher.\n- Required dependencies (see [Installation](...
Model Context Protocol CLI is a MCP client in the Other category listed in the AddMCP.net directory, published by shahshrey. Runtime: python. License: MIT license. The repository has 1 GitHub stars. Source code is hosted on github.com.
Model Context Protocol CLI — by shahshrey config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
Model Context Protocol CLI — by shahshrey tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Model Context Protocol CLI?
Model Context Protocol CLI is a command-line client that communicates with an MCP (Model Context Protocol) server, enabling users to send commands, query data, and interact with server resources. It runs on any system with Python 3.8+ and is designed for developers working with MCP-based services.
How to use Model Context Protocol CLI?
Clone the repository, install UV with pip install uv, then run uv sync --reinstall to install dependencies. Start the client with uv run mcp-cli --server sqlite, optionally specifying a JSON configuration file (--config-file), provider (--provider openai or --provider ollama), and model (--model). Use interactive commands like help, chat, list-tools, and list-resources.
Key features of Model Context Protocol CLI
- Protocol-level communication with any MCP server.
- Dynamic exploration of tools, resources, and prompts.
- Support for OpenAI and Ollama providers.
- Interactive and chat modes for live queries.
- Configurable via command-line arguments and JSON files.
Use cases of Model Context Protocol CLI
- Query a SQLite database through an MCP server interactively.
- Explore available tools and resources exposed by an MCP server.
- Integrate with multiple AI model providers (OpenAI, Ollama) for context-based interactions.
Frequently asked questions
1 What prerequisites are needed to run Model Context Protocol CLI?
Python 3.8 or higher. If using OpenAI, set the OPENAI_API_KEY environment variable. If using Ollama, have Ollama installed and running.
2 Which providers and models are supported?
OpenAI (default model: gpt-4o) and Ollama (default model: llama3.2, also listed as qwen2.5-coder in the README). You can specify a custom model with the --model flag.
3 How do I set up the OpenAI provider?
Set the OPENAI_API_KEY environment variable (e.g., in a .env file or system variable) before running the client, then use --provider openai.
4 What is the default model for the Ollama provider?
The default model for Ollama is llama3.2 (the README also mentions qwen2.5-coder earlier; the CLI uses llama3.2 per the usage examples).
5 Is this project open source?
Yes, it is licensed under the MIT License.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In