Client CLI

Developer tools

A simple CLI to run LLM prompt and implement MCP client.

Your AI app calls the Client CLI MCP server, which does the developer tools work and sends the result back to the chat.

About Client CLI

Client CLI is a community MCP server from adhikasp, filed in our directory under developer tools. A simple CLI to run LLM prompt and implement MCP client.

At a glance

Publisher
adhikasp (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
675

How to set up Client CLI

  1. Follow the install steps in the Client CLI README; it is written in Python, so have that toolchain ready.
  2. Check the Client CLI README for keys or settings; the registry lists none that Client CLI requires.
  3. Add Client CLI 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 Client CLI tools to confirm the connection.
  5. Run one read-only task with Client CLI first, and keep your app asking before each tool call until the results look right.

Client CLI compared with similar servers

  • OpenAI Tunnel Client by openai has fewer GitHub stars than Client CLI (670 against 675); OpenAI Tunnel Client is official while Client CLI is a community server, and both run locally.
  • Cclsp by ktnyt has more GitHub stars than Client CLI (676 against 675); both are community servers, and both run locally.
  • Lemma Platform by lemma-work has fewer GitHub stars than Client CLI (664 against 675); both are community servers, and both run locally.

Before you connect Client CLI

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

Marketing use cases for Client CLI

How marketing and sales teams put Client CLI to work, by company size. Pick the size closest to yours and start Client CLI on one use case.

Small business

  • A small business with a developer can use Client CLI to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Client CLI to explain and fix a marketing site issue without context switching between tools.
  • Client CLI 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 Client CLI to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Client CLI to keep scripts and automations documented and versioned as they change.
  • Start Client CLI 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 Client CLI with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Client CLI so web and marketing engineering share one reviewed way of working with AI.
  • Client CLI is a community server, so have security review the code and pin a version before Client CLI 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

Client CLI README

From adhikasp/mcp-client-cli on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP CLI client

A simple CLI program to run LLM prompt and implement Model Context Protocol (MCP) client.

You can use any MCP-compatible servers from the convenience of your terminal.

This act as alternative client beside Claude Desktop. Additionally you can use any LLM provider like OpenAI, Groq, or local LLM model via llama.

Setup

  1. Install via pip:

    pip install mcp-client-cli
    
  2. Create a ~/.llm/config.json file to configure your LLM and MCP servers:

    {
      "systemPrompt": "You are an AI assistant helping a software engineer...",
      "llm": {
        "provider": "openai",
        "model": "gpt-4",
        "api_key": "your-openai-api-key",
        "temperature": 0.7,
        "base_url": "https://api.openai.com/v1"  // Optional, for OpenRouter or other providers
      },
      "mcpServers": {
        "fetch": {
          "command": "uvx",
          "args": ["mcp-server-fetch"],
          "requires_confirmation": ["fetch"],
          "enabled": true,  // Optional, defaults to true
          "exclude_tools": []  // Optional, list of tool names to exclude
        },
        "brave-search": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-brave-search"],
          "env": {
            "BRAVE_API_KEY": "your-brave-api-key"
          },
          "requires_confirmation": ["brave_web_search"]
        },
        "youtube": {
          "command": "uvx",
          "args": ["--from", "git+https://github.com/adhikasp/mcp-youtube", "mcp-youtube"]
        }
      }
    }
    

    Note:

    • See CONFIG.md for complete documentation of the configuration format
    • Use requires_confirmation to specify which tools need user confirmation before execution
    • The LLM API key can also be set via environment variables LLM_API_KEY or OPENAI_API_KEY
    • The config file can be placed in either ~/.llm/config.json or $PWD/.llm/config.json
    • You can comment the JSON config file with // if you like to switch around the configuration
  3. Run the CLI:

    llm "What is the capital city of North Sumatra?"
    

Usage

Basic Usage
$ llm What is the capital city of North Sumatra?
The capital city of North Sumatra is Medan.

You can omit the quotes, but be careful with bash special characters like &, |, ; that might be interpreted by your shell.

You can also pipe input from other commands or files:

$ echo "What is the capital city of North Sumatra?" | llm
The capital city of North Sumatra is Medan.

$ echo "Given a location, tell me its capital city." > instructions.txt
$ cat instruction.txt | llm "West Java"
The capital city of West Java is Bandung.
Image Input

You can pipe image files to analyze them with multimodal LLMs:

$ cat image.jpg | llm "What do you see in this image?"
[LLM will analyze and describe the image]

$ cat screenshot.png | llm "Is there any error in this screenshot?"
[LLM will analyze the screenshot and point out any errors]
Using Prompt Templates

You can use predefined prompt templates by using the p prefix followed by the template name and its arguments:

# List available prompt templates
$ llm --list-prompts

# Use a template
$ llm p review  # Review git changes
$ llm p commit  # Generate commit message
$ llm p yt url=https://youtube.com/...  # Summarize YouTube video
Triggering a tool
$ llm What is the top article on hackernews today?

================================== Ai Message ==================================
Tool Calls:
  brave_web_search (call_eXmFQizLUp8TKBgPtgFo71et)
 Call ID: call_eXmFQizLUp8TKBgPtgFo71et
  Args:
    query: site:news.ycombinator.com
    count: 1
Brave Search MCP Server running on stdio

# If the tool requires confirmation, you'll be prompted:
Confirm tool call? [y/n]: y

================================== Ai Message ==================================
Tool Calls:
  fetch (call_xH32S0QKqMfudgN1ZGV6vH1P)
 Call ID: call_xH32S0QKqMfudgN1ZGV6vH1P
  Args:
    url: https://news.ycombinator.com/
================================= Tool Message =================================
Name: fetch

[TextContent(type='text', text='Contents [REDACTED]]
================================== Ai Message ==================================

The top article on Hacker News today is:

### [Why pipes sometimes get "stuck": buffering](https://jvns.ca)
- **Points:** 31
- **Posted by:** tanelpoder
- **Posted:** 1 hour ago

You can view the full list of articles on [Hacker News](https://news.ycombinator.com/)

To bypass tool confirmation requirements, use the --no-confirmations flag:

$ llm --no-confirmations "What is the top article on hackernews today?"

To use in bash scripts, add the --no-intermediates, so it doesn't print intermediate messages, only the concluding end message.

$ llm --no-intermediates "What is the time in Tokyo right now?"
Continuation

Add a c prefix to your message to continue the last conversation.

$ llm asldkfjasdfkl
It seems like your message might have been a typo or an error. Could you please clarify or provide more details about what you need help with?
$ llm c what did i say previously?
You previously typed "asldkfjasdfkl," which appears to be a random string of characters. If you meant to ask something specific or if you have a question, please let me know!
Clipboard Support

You can use content from your clipboard using the cb command:

# After copying text to clipboard
$ llm cb
[LLM will process the clipboard text]

$ llm cb "What language is this code written in?"
[LLM will analyze the clipboard text with your question]

# After copying an image to clipboard
$ llm cb "What do you see in this image?"
[LLM will analyze the clipboard image]

# You can combine it with continuation
$ llm cb c "Tell me more about what you see"
[LLM will continue the conversation about the clipboard content]

The clipboard feature works in:

  • Native Windows/macOS/Linux environments
    • Windows: Uses PowerShell
    • macOS: Uses pbpaste for text, pngpaste for images (optional)
    • Linux: Uses xclip (required for clipboard support)
  • Windows Subsystem for Linux (WSL)
    • Accesses the Windows clipboard through PowerShell
    • Works with both text and images
    • Make sure you have access to powershell.exe from WSL

Required tools for clipboard support:

  • Windows: PowerShell (built-in)
  • macOS:
    • pbpaste (built-in) for text
    • pngpaste (optional) for images: brew install pngpaste
  • Linux:
    • xclip: sudo apt install xclip or equivalent

The CLI automatically detects if the clipboard content is text or image and handles it appropriately.

Additional Options
$ llm --list-tools                # List all available tools
$ llm --list-prompts              # List available prompt templates
$ llm --no-tools                  # Run without any tools
$ llm --force-refresh             # Force refresh tool capabilities cache
$ llm --text-only                 # Output raw text without markdown formatting
$ llm --show-memories             # Show user memories
$ llm --model gpt-4               # Override the model specified in config

Contributing

Feel free to submit issues and pull requests for improvements or bug fixes.

Questions about Client CLI

What is the Client CLI MCP server?

A simple CLI to run LLM prompt and implement MCP client. Client CLI is maintained by adhikasp on GitHub at adhikasp/mcp-client-cli, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Client CLI MCP server?

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

Does Client CLI need an API key?

The registry lists no required keys for Client CLI. Check the Client CLI README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Client CLI an official MCP server?

No. Client CLI is a community server maintained by adhikasp. Community servers can be excellent; read the code and the open issues before you give Client CLI access to company data.

What license is Client CLI under?

Client CLI is released under the MIT license, according to its GitHub repository. The license covers the code of Client CLI; the service it connects to has its own terms.