MCP server

The same five tools, locally (your key) or remotely (a server wallet).

ToolWhat it doesCosts
search_catalog({ query, category?, maxPriceUsd? })Finds endpoints; each result shows its pricefree
get_endpoint({ id })Price, method, URL, schemas, examplefree
call_paid_endpoint({ url, method?, body?, maxPriceUsd })Calls and pays; returns body and receiptspends USDC
get_budget()Limits and today's spendfree
get_balance()The wallet's USDC balancefree

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" } } } }
EnvMeaning
AGENT_SECRET_KEY or AGENT_KEYPAIR_PATHbase58 secret key, or a solana-keygen JSON file (~/ works)
MAX_PER_CALL_USD, DAILY_CAP_USDbudgets (defaults 0.05 and 1.00)
PER_ORIGIN_DAILY_CAP_USD, ALLOW_ORIGINSoptional caps
SOLANA_CLUSTER, SOLANA_RPC_URLmainnet (default) or devnet, and an RPC URL
LEDGER_PATHwhere today's spend is kept (default ~/.config/tolls/spend.json)
MCP_CONFIGa JSON file with the same settings

Remote (server wallet)

{ "mcpServers": { "tolls": { "type": "http", "url": "https://mcp.tolls.fun/mcp",
  "headers": { "Authorization": "Bearer <API_KEY>" } } } }