# Account MCP server

Endpoint: `https://zrouter.si/mcp` (streamable HTTP). Tool catalog: [/mcp/tools.json](/mcp/tools.json). Server card: [/.well-known/mcp.json](/.well-known/mcp.json).

This server manages the account. It does not send model requests or change an assistant's inference provider.

## Connect

- **OAuth clients** (Claude, ChatGPT, Grok, most others): add the URL as a custom connector and approve access on the ZRouter page.
- **Token clients:** create an MCP token under **CLI and MCP access** (shown once, expires after 30 days).

```bash
claude mcp add --transport http zrouter https://zrouter.si/mcp --header "Authorization: Bearer $ZROUTER_MCP_TOKEN"
```

```json
{"mcpServers": {"zrouter": {"url": "https://zrouter.si/mcp", "headers": {"Authorization": "Bearer YOUR_MCP_TOKEN"}}}}
```

## Tools

| Area | Tools |
| --- | --- |
| Account | `account_info`, `credit_ledger` |
| Usage | `usage_summary`, `usage_daily`, `usage_by_model`, `usage_log` |
| Logs | `logs_search`, `logs_get`, `logs_stats` |
| Routers | `models_list`, `virtual_models_list`, `virtual_models_upsert`, `virtual_models_delete` |
| API keys | `api_keys_list`, `api_keys_create`, `api_keys_delete` |
| Budgets | `budgets_list`, `budgets_upsert`, `budgets_delete`, `budgets_reset` |
| Rate limits | `rate_limits_list`, `rate_limits_upsert`, `rate_limits_delete`, `rate_limits_reset` |

Deletes and resets are annotated as destructive. Every tool acts only on the authenticated account.
