three.ws Agent Payments
local MCP serverthree.ws Agent Payments is a local MCP server: Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key. Install it from npm as @three-ws/agentcore-payments-mcp.
Installation
Terminal
claude mcp add agentcore-payments-mcp -e THREE_WS_SESSION=... -e PAYMENT_SESSION_TOKEN=... -e THREE_WS_BASE=... -e THREE_WS_TIMEOUT_MS=... -- npx -y @three-ws/agentcore-payments-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"agentcore-payments-mcp": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "...",
"PAYMENT_SESSION_TOKEN": "...",
"THREE_WS_BASE": "...",
"THREE_WS_TIMEOUT_MS": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
THREE_WS_SESSION,PAYMENT_SESSION_TOKEN,THREE_WS_BASE,THREE_WS_TIMEOUT_MS
Summary
Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.
three.ws Agent Payments vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| three.ws Agent Payments | 218 | Local | Yes | npm |
| mcpspend | 113 | Local | Yes | npm |
| treg.to | 3,615 | Hosted | Yes | None |
| GoModel | 1,189 | Local | Yes | oci |
| token-savior | 1,157 | Local | Yes | pypi |
Questions
It reads 4 environment variables: THREE_WS_SESSION, PAYMENT_SESSION_TOKEN, THREE_WS_BASE, THREE_WS_TIMEOUT_MS. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
three.ws Agent Payments is a local MCP server distributed as the npm package @three-ws/agentcore-payments-mcp.
Run: claude mcp add agentcore-payments-mcp -e THREE_WS_SESSION=... -e PAYMENT_SESSION_TOKEN=... -e THREE_WS_BASE=... -e THREE_WS_TIMEOUT_MS=... -- npx -y @three-ws/agentcore-payments-mcp
Run: codex mcp add agentcore-payments-mcp --env THREE_WS_SESSION=... --env PAYMENT_SESSION_TOKEN=... --env THREE_WS_BASE=... --env THREE_WS_TIMEOUT_MS=... -- npx -y @three-ws/agentcore-payments-mcp
Similar MCP servers
NameStars
- mcpspendio.github.andreisirbu91-lab/mcpspend113
- treg.toio.github.superdesigndev/treg3,615
- GoModelio.github.ENTERPILOT/gomodel1,189
- token-saviorio.github.Mibayy/token-savior1,157
- SandBase Harnessio.github.sandbaseai/sandbase-harness675
- Hex SSHio.github.levnikolaevich/hex-ssh-mcp565
- mcp-ssh-managerio.github.bvisible/mcp-ssh-manager493
- mumu.micro/mu437