MCP server
phase-mcp is a single Go binary that exposes the catalog to agents (Claude Code, Cursor, any MCP client) as tools and pays for each call from a wallet key. Tools: list_models, quote (the 402 ceiling without paying), chat, embed, session (create, read, list and delete saved sessions) and receipt (the public receipt of a paid request and its Merkle proof).
| Env | Meaning / default |
|---|---|
PHASE_GATEWAY_URL | https://<gateway> |
PHASE_WALLET_KEY | without it only free models work |
PHASE_MAX_USD_PER_CALL | largest quote it will sign, default 0.05 |
PHASE_MAX_USD_PER_SESSION | sum of ceilings signed by one process, default 5 |
PHASE_NETWORKS | CAIP-2 allowlist |
Build: go build -o bin/phase-mcp ./cmd/phase-mcp; streamable HTTP instead of stdio: phase-mcp -http 127.0.0.1:8765 — a non-loopback bind requires PHASE_MCP_TOKEN, sent as Authorization: Bearer, because that endpoint spends the wallet.
{
"mcpServers": {
"phase-ai": {
"command": "/path/to/phase-mcp",
"env": { "PHASE_GATEWAY_URL": "https://<gateway>", "PHASE_WALLET_KEY": "0x…", "PHASE_MAX_USD_PER_CALL": "0.05" }
}
}
}© 2026 Phase Labs Technologies Inc. All rights reserved. Phase is a product of Phase Labs Technologies Inc.ir-mcp.md