AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Mcp Client Cli

mcp-thedotmack-mcp-client-cli · by thedotmack

Command-line interface for any Model Context Protocol (MCP) server.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add mcp-thedotmack-mcp-client-cli

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-thedotmack-mcp-client-cli)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
11mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mcp Client Cli? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcp-cli

Why can't a human use MCP too?

Command-line interface for any Model Context Protocol (MCP) server.

MCP enables AI assistants to interact with tools and data sources. mcp-cli brings that same power to the command line, making MCP accessible to humans for:

  • 🤖 Shell scripting and automation
  • 🔧 DevOps and CI/CD pipelines
  • 🧪 Quick testing of MCP servers
  • 📊 Data operations and queries
  • ⚡ Rapid prototyping

Features

  • 🔌 Universal: Works with ANY MCP server
  • 🚀 Zero Schema Config: Discovers tools dynamically from the server
  • 🎯 Automatic CLI Generation: Tool schemas → Commander.js options (magically!)
  • 📝 Clean Output: Parseable results perfect for piping
  • 🛠️ Human-Friendly: No JSON-RPC knowledge needed

Installation

npm install -g mcp-cli

Quick Start

Inline Server Specification

# Use any MCP server directly
mcp-cli --server "uvx chroma-mcp" --list-tools

# Call a tool
mcp-cli --server "uvx chroma-mcp" chroma_list_collections

Named Server Configuration

Create ~/.mcp-cli.json:

{
  "servers": {
    "chroma": {
      "command": "uvx",
      "args": ["chroma-mcp", "--data-dir", "~/.chroma"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "your-token"
      }
    }
  },
  "defaultServer": "chroma"
}

Then use named servers:

# List tools from named server
mcp-cli --use chroma --list-tools

# Use default server (no --use needed)
mcp-cli chroma_query_documents --help

# Call a tool
mcp-cli --use github github_create_issue --repo "owner/repo" --title "Bug"

How It Works

1. Connect to MCP Server

mcp-cli --server "uvx chroma-mcp" --list-tools

2. Server Discovers Its Own Tools

The CLI calls the MCP tools/list method - the server returns:

{
  "tools": [
    {
      "name": "chroma_query_documents",
      "description": "Query documents with semantic search",
      "inputSchema": {
        "type": "object",
        "properties": {
          "collection_name": { "type": "string" },
          "query_texts": { "type": "array" },
          "n_results": { "type": "integer" }
        },
        "required": ["collection_name", "query_texts"]
      }
    }
  ]
}

3. CLI Generates Commands Dynamically

mcp-cli chroma_query_documents --help

Output:

Usage: mcp-cli chroma_query_documents [options]

Query documents with semantic search

Options:
  --collection_name   Collection name (required)
  --query_texts         Query texts (JSON array) (required)
  --n_results [integer]       Number of results
  -h, --help                  display help for command

4. Execute Tool

mcp-cli chroma_query_documents \
  --collection_name memories \
  --query_texts '["search term"]' \
  --n_results 5

All generated from the MCP schema - zero manual configuration!

Usage Examples

ChromaDB Operations

# List collections
mcp-cli --use chroma chroma_list_collections

# Query documents
mcp-cli chroma_query_documents \
  --collection_name memories \
  --query_texts '["important notes"]' \
  --n_results 10

# Add documents
mcp-cli chroma_add_documents \
  --collection_name memories \
  --documents '["Note 1", "Note 2"]' \
  --ids '["id1", "id2"]'

GitHub Operations

# Create issue
mcp-cli --use github github_create_issue \
  --repo "myorg/myrepo" \
  --title "Bug: Login fails" \
  --body "Description here"

# List pull requests
mcp-cli --use github github_list_pull_requests \
  --repo "myorg/myrepo" \
  --state open

Shell Scripting

#!/bin/bash
# Query memories and create GitHub issues for bugs

# Get bug reports from vector db
BUGS=$(mcp-cli chroma_query_documents \
  --collection_name bugs \
  --query_texts '["high priority bugs"]' \
  --n_results 5)

# Parse and create issues
echo "$BUGS" | jq -r '.documents[0][]' | while read bug; do
  mcp-cli --use github github_create_issue \
    --repo "myorg/myrepo" \
    --title "$bug"
done

Configuration

Config File Locations

The CLI looks for config in this order:

  1. ./.mcp-cli.json (current directory)
  2. ~/.mcp-cli.json (home directory)
  3. ~/.config/mcp-cli/config.json

Config Schema

{
  "servers": {
    "server-name": {
      "command": "executable",
      "args": ["arg1", "arg2"],
      "env": {
        "ENV_VAR": "value"
      },
      "description": "Optional description"
    }
  },
  "defaultServer": "server-name"
}

Note: The config ONLY specifies HOW to connect to servers. Tool schemas are discovered dynamically from the MCP server itself.

CLI Options

# Specify server inline
mcp-cli --server "command args..."  [options]

# Use named server from config
mcp-cli --use   [options]

# Use default server from config
mcp-cli  [options]

# List available tools
mcp-cli --list-tools

# Get help for a tool (dynamically generated!)
mcp-cli  --help

# Version
mcp-cli --version

Output Format

Results are automatically formatted for readability:

# Simple values
$ mcp-cli chroma_get_collection_count --collection_name memories
42

# JSON objects (pretty-printed)
$ mcp-cli chroma_query_documents --collection_name memories --query_texts '["test"]'
{
  "ids": [["doc1", "doc2"]],
  "documents": [["First doc", "Second doc"]],
  "distances": [[0.1, 0.2]]
}

Perfect for piping to jq:

mcp-cli chroma_query_documents ... | jq '.documents[0][0]'

Why This Exists

MCP servers expose powerful capabilities through a standard protocol. But to use them, you typically need to:

  1. Write custom client code
  2. Handle JSON-RPC manually
  3. Parse tool schemas yourself
  4. Build your own CLI

mcp-cli does all of this automatically.

You just specify the server command, and the CLI:

  • ✅ Connects via stdio
  • ✅ Discovers available tools
  • ✅ Generates CLI commands from schemas
  • ✅ Handles all the protocol details
  • ✅ Formats output nicely

Supported MCP Servers

Works with any MCP server that implements the standard protocol. Examples:

  • uvx chroma-mcp - ChromaDB vector database
  • npx @modelcontextprotocol/server-github - GitHub API
  • npx @modelcontextprotocol/server-filesystem - Filesystem operations
  • npx @modelcontextprotocol/server-postgres - PostgreSQL database
  • Custom MCP servers you build

Development

# Clone repo
git clone https://github.com/YOUR_USERNAME/mcp-cli.git
cd mcp-cli

# Install dependencies
npm install

# Build
npm run build

# Test locally
node bin/mcp-cli.js --server "uvx chroma-mcp" --list-tools

Contributing

Contributions welcome! Please open an issue or PR.

License

MIT

Tagline

"Why can't a human use MCP too?"

Because now they can. 🚀

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.