MCP CLI client
@adhikasp
About MCP CLI client
A simple CLI to run LLM prompt and implement MCP client.
Overview
What is MCP CLI client?
MCP CLI client is a command-line program that runs LLM prompts and implements the Model Context Protocol (MCP) client side. It works in any terminal environment and is intended for developers and power users who want to interact with MCP-compatible servers and various LLM providers (OpenAI, Groq, or local models via llama.cpp).
How to use MCP CLI client?
Install via pip install mcp-client-cli, then create a JSON configuration file at ~/.llm/config.json (or $PWD/.llm/config.json) specifying your LLM provider and MCP servers. Run prompts with llm "your question", pipe input from files or commands, use prompt templates with llm p, or continue conversations with llm c. Clipboard support is available via the cb command.
Key features of MCP CLI client
- Integrates any MCP-compatible server (fetch, search, etc.)
- Supports multiple LLM providers (OpenAI, Groq, local via llama.cpp)
- Accepts text and image input via piping or clipboard
- Offers prompt templates for common tasks (review, commit, YouTube)
- Allows tool confirmation prompts and
--no-confirmationsflag - Can continue previous conversations with
cprefix
Use cases of MCP CLI client
- Ask questions and get answers enhanced with web search or database tools
- Analyze code or images by piping files into the prompt
- Generate commit messages or code reviews using predefined templates
- Summarize YouTube videos by providing the URL
- Automate tasks in bash scripts with
--no-intermediatesflag
FAQ from MCP CLI client
What is MCP?
MCP stands for Model Context Protocol, a standard for connecting LLMs with external servers. This client implements the MCP client side.
Which LLM providers are supported?
You can use OpenAI, Groq, or any OpenAI-compatible API endpoint (like OpenRouter), as well as local models via llama.cpp.
How do I configure the client?
Create a JSON config file at ~/.llm/config.json with your LLM provider settings and a list of MCP servers. Environment variables LLM_API_KEY or OPENAI_API_KEY can also be used.
What are the system requirements for clipboard support?
On macOS: pbpaste (built-in) for text, optionally pngpaste for images; Linux: requires xclip; Windows: uses built-in PowerShell. WSL can access Windows clipboard via `powers
Basic information
More Agent Frameworks MCP clients
chatmcp
daodao97ChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
Ollama MCP (Model Context Protocol)
mihirrdMCP client for local ollama models
mcp-cli
wong2A CLI inspector for the Model Context Protocol
🚀 MCPOmni Connect - Universal Gateway to MCP Servers
Abiorh001MCPOmni Connect is an agent execution runtime that connects to multiple MCP servers via stdio, SSE, or streamable HTTP. It supports chat, autonomous agents, and planner-based orchestration treating each MCP server as a tool agent to enable dynamic multi-agent workflows across LLM
Where On-Device and Cloud LLMs Meet
hazyresearchBig & Small LLMs working together
Comments