npm @pathcourse/mcp-serverstdioupdated 4mo ago
Drop-in MCP server for PathCourse Health (PCH) — cheaper LLM inference, USDC-based agent payments, and agent identity / reputation lookup. Works in Claude Desktop, Cursor, Cline, Continue.dev, and Zed.
PathCourse Health (PCH) 能做什么?
PCH MCP Server
Drop-in MCP server for PathCourse Health (PCH) — cheaper LLM inference, USDC-based agent payments, and agent identity / reputation lookup. Works in Claude Desktop, Cursor, Cline, Continue.dev, and Zed.
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.
Install
Claude Desktop, Cursor, Cline, Continue.dev, Zed (npm)
Add to your client's MCP config:
{
"mcpServers": {
"pch": {
"command": "npx",
"args": ["-y", "@pathcourse/mcp-server"],
"env": {
"PCH_API_KEY": "pch_prod_b_..."
}
}
}
}
If 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.
Per-client install instructions:
Python clients (PyPI)
uvx pch-mcp-server
# or
pip install pch-mcp-server
Tools
Free (no API key)
| Tool | What it does |
|---|---|
pch_models |
List all PCH models with rates and tier requirements |
pch_estimate |
Estimate cost of an inference request before running it |
pch_status |
Gateway health and service status |
pch_provision |
Get USDC payment instructions to obtain an API key |
pch_pay |
Submit USDC payment proof; returns API key + first inference |
pch_lookup_agent_identity |
Lookup an agent's ERC-8004 identity record |
pch_get_path_score |
Look up an agent's Path Score (0-1000) |
pch_get_agent_history |
12-month trend of an agent's score components |
pch_verify_certification |
Verify a PCH-issued certification |
pch_compare_costs |
Compare PCH model cost vs GPT-4o, Claude Sonnet, Claude Haiku |
Authenticated (PCH_API_KEY required)
| Tool | What it does |
|---|---|
pch_inference |
Run LLM inference on a PCH model |
pch_balance |
Check remaining USDC balance and current tier |
pch_check_agent_reputation |
Deeper reputation lookup ($0.001 USDC per query) |
pch_my_account |
Self-service balance + identity + recent activity |
Configuration
| Env var | Default | Notes |
|---|---|---|
PCH_API_KEY |
(none) | Required for authenticated tools. Format: pch_prod_b_... |
PCH_GATEWAY_URL |
https://gateway.pathcoursehealth.com |
Override for staging or local dev |
Security
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.
License
MIT
Source
This wrapper is open source: pathcourse-health/pch-mcp-server
The upstream PCH MCP server lives in the (private) pch-platform-gateway repo.
安装
把 PathCourse Health (PCH) 添加到你的客户端。选择你正在使用的那个。
claude mcp add mcp-server -- npx -y @pathcourse/mcp-servercodex mcp add mcp-server -- npx -y @pathcourse/mcp-serveramp mcp add mcp-server -- npx -y @pathcourse/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp-server","command":"npx","args":["-y","@pathcourse/mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@pathcourse/mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @pathcourse/mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护13/25
- 可信度6/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 113 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.1最新 | 2026年5月10日 |