MCP server
The same five tools, locally (your key) or remotely (a server wallet).
| Tool | What it does | Costs |
|---|---|---|
search_catalog({ query, category?, maxPriceUsd? }) | Finds endpoints; each result shows its price | free |
get_endpoint({ id }) | Price, method, URL, schemas, example | free |
call_paid_endpoint({ url, method?, body?, maxPriceUsd }) | Calls and pays; returns body and receipt | spends USDC |
get_budget() | Limits and today's spend | free |
get_balance() | The wallet's USDC balance | free |
call_paid_endpoint refuses, and signs nothing, if the price is above maxPriceUsd or any budget.
Local (non-custodial)
{ "mcpServers": { "tolls": {
"command": "npx", "args": ["-y", "@tollsfun/mcp"],
"env": { "AGENT_KEYPAIR_PATH": "/path/to/keypair.json",
"MAX_PER_CALL_USD": "0.05", "DAILY_CAP_USD": "1.00" } } } }
| Env | Meaning |
|---|---|
AGENT_SECRET_KEY or AGENT_KEYPAIR_PATH | base58 secret key, or a solana-keygen JSON file (~/ works) |
MAX_PER_CALL_USD, DAILY_CAP_USD | budgets (defaults 0.05 and 1.00) |
PER_ORIGIN_DAILY_CAP_USD, ALLOW_ORIGINS | optional caps |
SOLANA_CLUSTER, SOLANA_RPC_URL | mainnet (default) or devnet, and an RPC URL |
LEDGER_PATH | where today's spend is kept (default ~/.config/tolls/spend.json) |
MCP_CONFIG | a JSON file with the same settings |
Remote (server wallet)
{ "mcpServers": { "tolls": { "type": "http", "url": "https://mcp.tolls.fun/mcp",
"headers": { "Authorization": "Bearer <API_KEY>" } } } }