three.ws Agent Payments MCP Server
by nirholasio.github.nirholas/agentcore-payments-mcpv0.1.4
Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install three.ws Agent Payments MCP server
Install in Claude Code
claude mcp add agentcore-payments -e THREE_WS_SESSION='<three-ws-session>' -e PAYMENT_SESSION_TOKEN='<payment-session-token>' -- npx -y @three-ws/agentcore-payments-mcpInstall in Cursor
{
"mcpServers": {
"agentcore-payments": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>",
"PAYMENT_SESSION_TOKEN": "<payment-session-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"agentcore-payments": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>",
"PAYMENT_SESSION_TOKEN": "<payment-session-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"agentcore-payments": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>",
"PAYMENT_SESSION_TOKEN": "<payment-session-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"agentcore-payments": {
"command": "npx",
"args": [
"-y",
"@three-ws/agentcore-payments-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>",
"PAYMENT_SESSION_TOKEN": "<payment-session-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| THREE_WS_SESSION | — | yes | Your three.ws session token (value of the `__Host-sid` cookie from a signed-in browser). Required for account management operations: create_payment_session, list_payment_sessions, check_payment_session, cancel_payment_session. |
| PAYMENT_SESSION_TOKEN | — | yes | A payment session bearer token (starts with 'pss_') from create_payment_session. Used by the agent for pay_with_session calls when no inline token is passed. Treat like a spending card — it authorizes payments up to the session's budget. |
| THREE_WS_BASE | — | — | Base URL of the three.ws API. Override only when self-hosting or targeting a preview deployment. |
| THREE_WS_TIMEOUT_MS | — | — | Per-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000). |
Freshness
Active — last maintenance signal 2d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 2d ago · GitHub
Latest release
2026-09-30 · 10d ago · GitHub · v1.5.2
Package published
no data · npm/PyPI
Registry entry updated
2026-08-19 · 51d ago · official registry · v0.1.4
FAQ
›How do I install the three.ws Agent Payments MCP server in Claude Code?
Run: claude mcp add agentcore-payments -e THREE_WS_SESSION='<three-ws-session>' -e PAYMENT_SESSION_TOKEN='<payment-session-token>' -- npx -y @three-ws/agentcore-payments-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does three.ws Agent Payments require an API key?
Yes. It expects THREE_WS_SESSION, PAYMENT_SESSION_TOKEN, of which 2 are secrets.
›Can I use three.ws Agent Payments as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is three.ws Agent Payments in the official MCP registry?
Yes, as io.github.nirholas/agentcore-payments-mcp.
Alternatives to three.ws Agent Payments
Other finance & fintech MCP servers.