# MCP Doctor — Protocol Health & Schema Linter

> Audit, lint and verify MCP server configurations, tool collisions, missing binaries, and JSON-RPC handshakes.

MCP Doctor — Protocol Health & Schema Linter is a free AI agent skill on Agensi by Patryk Mazur, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Patryk Mazur](https://www.agensi.io/creators/patryk-mazur)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-doctor-protocol-health-schema-linter
- Tags: llm-ops, code-review, productivity, mcp, json-rpc, claude-desktop, cursor-ide, mcp-doctor

## About this skill

### MCP Doctor — Model Context Protocol Health & Schema Linter

Frustrated by AI coding assistants silently failing when invoking Model Context Protocol (MCP) servers due to subtle JSON syntax errors, missing executables on PATH, or tool name collisions?

**MCP Doctor** is a production-grade diagnostic CLI and schema linter for the open Model Context Protocol standard. It inspects your Claude Desktop, Cursor, Windsurf, Antigravity, and custom agent configurations in milliseconds.

##### ⚡ Key Capabilities:
- **Schema & Syntax Linting:** Validates JSON compliance and ensures required `command`, `args`, and `env` attributes match the official MCP specification.
- **Binary & PATH Resolution:** Instantly detects if `uvx`, `npx`, `python3`, or custom binaries are missing or inaccessible before an agent crashes.
- **Credential & Placeholder Watchdog:** Flags unconfigured API keys and dummy placeholder tokens (`YOUR_KEY_HERE`, `sk-ant-xxx`).
- **Cross-Config Collision Detection:** Identifies duplicated server names across multiple configuration files.
- **Live JSON-RPC Handshake Probe:** Performs a non-destructive stdio handshake (`initialize` call with strict timeout) to prove connectivity without side effects.
- **Agent-Ready JSON Output:** Seamlessly feeds structured diagnostics to autonomous agent orchestrators.

##### 📦 What's Included:
- `scripts/mcp_doctor.py` — Production CLI diagnostic linter
- `scripts/test_mcp_doctor.py` — Automated test suite with 100% pass rate
- `references/mcp_doctor_guide.md` — CLI reference & troubleshooting matrix
- `references/json_rpc_schema_spec.md` — Formal 2024-11-05 MCP spec summary
- `SKILL.md` — Lean Core prompt rules (< 40 lines) for Claude Code, Cursor, and Antigravity

##### 🔒 100% Local-First & Zero Telemetry
Runs entirely on your local machine. No external dependencies, zero cloud egress.

## Requires

- Python 3
- Terminal

## Known limitations

Requires Python 3. Cannot auto-repair broken binaries or permission errors; diagnostic only. Handshake tests require the server process to be executable.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Doctor — Protocol Health & Schema Linter skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does MCP Doctor solve for developers?

MCP Doctor acts as a diagnostic tool that scans your system to identify why tools might be failing or missing. It validates JSON-RPC connectivity, checks for missing binaries in your PATH, and flags tool name collisions that prevent agents from functioning correctly.

### Which AI agents and IDEs are compatible with this skill?

The skill is designed to audit configurations for Claude Desktop, Cursor, and Antigravity. It is compatible with any environment that follows the official Model Context Protocol (MCP) JSON-RPC specification.

### What exactly is included in the purchase?

You will receive the core diagnostic tool, a comprehensive setup guide, and example configurations to help you interpret scan results. It also includes the CLI-based script ready for immediate system-wide auditing.

### Can I use this to audit custom MCP server configurations that aren't in default locations?

Yes, while it automatically scans standard paths for popular agents, you can use the `--config` flag to point the tool at any specific JSON configuration file, making it ideal for custom development workflows.

### Are there any specific technical requirements or permissions needed to run the scan?

You need Python 3 installed on your host machine to run the diagnostics. While the tool identifies permission issues and missing dependencies, it requires you to have administrative access to manually fix system-level path or permission errors it discovers.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
