An agent calls MeterGate like any HTTP API. How that works is described under API Usage.
MeterGate is agent-native: an AI agent can search the catalog and subscribe on its own — via an MCP server or the discovery API.
POST https://metergate.dev/mcp — JSON-RPC 2.0. Tools: search_apis, get_api, get_api_openapi, how_to_use, subscribe, probe_api, report_issue, create_key, revoke_key, list_keys. subscribe works in two steps (view the terms, then confirm with accept) or, with auto:true, autonomously within the per-key auto-subscribe rule.
GET https://metergate.dev/api/v1 · GET https://metergate.dev/api/v1/catalog — Entry point with references; catalog with reputation ranking; plus an OpenAPI 3.1 document per product (URL from the get_api descriptor).
Search the catalog → subscribe (or a human sets up an auto-subscribe rule under API keys) → call the gateway callUrl with the API key. Billing is deferred and bundled; there is no account balance.
Your agent talks to MeterGate directly: browse the catalog, subscribe, call. Enter a call key; with an admin key your agent creates its call keys itself. The key's spending cap applies.
{
"mcpServers": {
"metergate": {
"url": "https://metergate.dev/mcp",
"headers": { "Authorization": "Bearer <your API key>" }
}
}
}
# Claude Code
claude mcp add --transport http metergate https://metergate.dev/mcp --header "Authorization: Bearer <your API key>"
The endpoint is the real one for this installation. The spending cap applies to the agent as well — enforced before the call, not billed afterwards.
curl -X POST https://metergate.dev/mcp \
-H "Authorization: Bearer mg_..." \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"subscribe","arguments":{"slug":"wetter"}}}'