alvabillwu

🔌 mcp-probe

Community alvabillwu
Updated

🔌 Probe and inspect any MCP (Model Context Protocol) server from the CLI — zero-dependency, discover tools/resources/prompts, invoke tools

🔌 mcp-probe

PyPIPythonLicenseNo Dependencies

Probe and inspect any MCP (Model Context Protocol) server from the CLI.

mcp-probe is a zero-dependency MCP client that speaks JSON-RPC 2.0 over stdio. Connect to any MCP server, discover its tools, resources, and prompts, and invoke tools — all from your terminal. Great for debugging servers you're building, auditing third-party servers, or scripting MCP interactions.

Why mcp-probe?

  • Debug MCP servers without writing code — one command to discover tools, resources, and prompts. Essential for MCP server developers and security auditors.
  • Zero dependencies — pure Python stdlib. Implements the MCP protocol directly. Nothing to install, nothing to trust.
  • Works with any MCP server — Node.js (npx), Python, or compiled binaries. Spawn and probe over stdio.
  • Pipe-friendly output — human-readable tables for exploration, --json for scripting. Integrates with jq, mcp-guard, and other CLI tools.

Features

  • 🔍 Discover — list tools, resources, and prompts exposed by any MCP server
  • 🛠️ Invoke — call tools with JSON arguments and pretty-print results
  • 🚫 Zero dependencies — pure Python stdlib, implements the MCP protocol directly
  • 🎨 Readable output — color-coded, structured terminal display
  • 🔧 Any server — works with any stdio MCP server (npx, python, node, …)

Quick Start

pip install mcp-probe

Usage

Pass the server command after --. mcp-probe spawns it as a subprocess and speaks MCP over stdio.

Inspect a server (everything at once)

mcp-probe inspect -- npx -y @modelcontextprotocol/server-everything
● MCP Server
  name:     Everything
  version:  1.0.0
  protocol: 2024-11-05
  caps:     tools, resources, prompts

Tools (1)
  ▸ echo — Echoes back the input
      params: message*:string
...

List only tools

mcp-probe tools -- npx -y @modelcontextprotocol/server-everything

List resources / prompts

mcp-probe resources -- python my_server.py
mcp-probe prompts -- python my_server.py

Invoke a tool

mcp-probe call --tool echo --args '{"message":"hello"}' -- npx -y @modelcontextprotocol/server-everything
✓ Result
hello

How It Works

mcp-probe implements the MCP stdio transport:

  1. Spawns your server command as a subprocess
  2. Sends the initialize JSON-RPC request and reads the server's capabilities
  3. Sends the notifications/initialized acknowledgment
  4. Calls tools/list, resources/list, prompts/list, and tools/call as requested
  5. Renders results and tears down the subprocess

Messages are newline-delimited JSON (JSON-RPC 2.0). No SDK required.

Development

git clone https://github.com/alvabillwu/mcp-probe.git
cd mcp-probe
pip install -e ".[dev]"
pytest -v

The test suite runs against an in-repo mock MCP server (tests/mock_server.py), so it's fully self-contained.

🔗 Ecosystem

Part of the alvabillwu AI/LLM DevTools suite:

License

MIT © alvabillwu

Like this? Star the repo to support open-source MCP developer tools!

MCP Server · Populars

MCP Server · New

    cbtw-apac

    QDrant Loader

    Enterprise-ready vector database toolkit for building searchable knowledge bases from multiple data sources. Supports multi-project management, automatic ingestion from Confluence/JIRA/Git, intelligent file conversion (PDF/Office/images), and semantic search. Includes MCP server for seamless AI assistant integration.

    Community cbtw-apac
    aks129

    HealthClaw Guardrails

    Open-source guardrails between AI agents and FHIR clinical data — PHI redaction, immutable audit, step-up auth, tenant isolation. MCP server + OpenAI/Gemini adapters. A healthclaw.io project.

    Community aks129
    opentargets

    Open Targets Platform MCP

    Official MCP server implementation for accessing Open Targets Data

    Community opentargets
    longsizhuo

    openInvest

    基于multiple LLM的风险投资助手

    Community longsizhuo
    CCCpan

    Gebaini

    中国数据核验 MCP Server | 身份核验/企业查询/车辆信息/OCR识别/风险评估 | 10个Tool覆盖5大类 | 微信: chenganp | 邮箱: [email protected]

    Community CCCpan