three.ws Billing MCP Server
by nirholasio.github.nirholas/billing-mcpv0.1.2
An agent's account economics — plan quotas, metered usage, invoices, receipts, and earnings.
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install three.ws Billing MCP server
Install in Claude Code
claude mcp add billing-nirholas -e THREE_WS_SESSION='<three-ws-session>' -- npx -y @three-ws/billing-mcpInstall in Cursor
{
"mcpServers": {
"billing-nirholas": {
"command": "npx",
"args": [
"-y",
"@three-ws/billing-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"billing-nirholas": {
"command": "npx",
"args": [
"-y",
"@three-ws/billing-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"billing-nirholas": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/billing-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"billing-nirholas": {
"command": "npx",
"args": [
"-y",
"@three-ws/billing-mcp"
],
"env": {
"THREE_WS_SESSION": "<three-ws-session>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| THREE_WS_BASE | — | — | Base URL of the three.ws API that serves the billing endpoints. Override only when self-hosting or targeting a preview deployment. |
| THREE_WS_TIMEOUT_MS | — | — | Per-request timeout in milliseconds for the live three.ws API reads. |
| THREE_WS_SESSION | yes | yes | Your three.ws session token (the value of the `__Host-sid` cookie from a signed-in browser). REQUIRED — it exposes private billing data, so every account-scoped read (get_billing_summary, query_usage, export_billing_history, get_receipt, get_revenue) resolves the calling user from it and returns only your data. Only the public get_fee_info works without it. Treat like a password. |
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.2
FAQ
›How do I install the three.ws Billing MCP server in Claude Code?
Run: claude mcp add billing-nirholas -e THREE_WS_SESSION='<three-ws-session>' -- npx -y @three-ws/billing-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does three.ws Billing require an API key?
Yes. It expects THREE_WS_SESSION, of which 1 is a secret.
›Can I use three.ws Billing as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is three.ws Billing in the official MCP registry?
Yes, as io.github.nirholas/billing-mcp.