{
  "markdown": "# PCH MCP Server\n\nDrop-in MCP server for [PathCourse Health (PCH)](https://pathcoursehealth.com) — cheaper LLM inference, USDC-based agent payments, and agent identity / reputation lookup. Works in Claude Desktop, Cursor, Cline, Continue.dev, and Zed.\n\n**14 tools.** 7 free (no API key needed) and 7 authenticated. Includes a unique flow that lets you buy a PCH API key from inside Claude Desktop using USDC — no signup form, no email verification.\n\n## Install\n\n### Claude Desktop, Cursor, Cline, Continue.dev, Zed (npm)\n\nAdd to your client's MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"pch\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@pathcourse/mcp-server\"],\n      \"env\": {\n        \"PCH_API_KEY\": \"pch_prod_b_...\"\n      }\n    }\n  }\n}\n```\n\nIf you don't have a PCH API key yet, omit the `env` block. Many tools work without authentication; you can obtain a key via the `pch_provision` tool.\n\nPer-client install instructions:\n- [Claude Desktop](docs/install-claude-desktop.md)\n- [Cursor](docs/install-cursor.md)\n- [Cline (VS Code)](docs/install-cline.md)\n- [Continue.dev](docs/install-continue.md)\n- [Zed](docs/install-zed.md)\n\n### Python clients (PyPI)\n\n```bash\nuvx pch-mcp-server\n# or\npip install pch-mcp-server\n```\n\n## Tools\n\n### Free (no API key)\n\n| Tool | What it does |\n|---|---|\n| `pch_models` | List all PCH models with rates and tier requirements |\n| `pch_estimate` | Estimate cost of an inference request before running it |\n| `pch_status` | Gateway health and service status |\n| `pch_provision` | Get USDC payment instructions to obtain an API key |\n| `pch_pay` | Submit USDC payment proof; returns API key + first inference |\n| `pch_lookup_agent_identity` | Lookup an agent's ERC-8004 identity record |\n| `pch_get_path_score` | Look up an agent's Path Score (0-1000) |\n| `pch_get_agent_history` | 12-month trend of an agent's score components |\n| `pch_verify_certification` | Verify a PCH-issued certification |\n| `pch_compare_costs` | Compare PCH model cost vs GPT-4o, Claude Sonnet, Claude Haiku |\n\n### Authenticated (PCH_API_KEY required)\n\n| Tool | What it does |\n|---|---|\n| `pch_inference` | Run LLM inference on a PCH model |\n| `pch_balance` | Check remaining USDC balance and current tier |\n| `pch_check_agent_reputation` | Deeper reputation lookup ($0.001 USDC per query) |\n| `pch_my_account` | Self-service balance + identity + recent activity |\n\n## Configuration\n\n| Env var | Default | Notes |\n|---|---|---|\n| `PCH_API_KEY` | (none) | Required for authenticated tools. Format: `pch_prod_b_...` |\n| `PCH_GATEWAY_URL` | `https://gateway.pathcoursehealth.com` | Override for staging or local dev |\n\n## Security\n\n**Never commit `PCH_API_KEY` to a public repo.** The wrapper logs a warning at startup if it detects a key that looks like a real production key being passed through env. If you accidentally exposed your key, rotate it via PCH support.\n\n## License\n\nMIT\n\n## Source\n\nThis wrapper is open source: [pathcourse-health/pch-mcp-server](https://github.com/pathcourse-health/pch-mcp-server)\n\nThe upstream PCH MCP server lives in the (private) `pch-platform-gateway` repo.\n",
  "bytes": 3101,
  "sha": "604f3f54e8063a09b635ea95b4081f8891daef94004d7a6e1a3d382b230c44e4",
  "repo_slug": "pathcourse-health/pch-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_pathcourse_health_mcp_server_51d018d6/readme"
}