MCP Usage Metering
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
MCP Usage Metering + agent coordination (Dirtsmith)
Free first call, one step, no key, no signup: curl -s https://gap-functions.bfurrow26.workers.dev/try returns a tiny packet, the solve rule, and a one-liner. POST the answers back to /try and you get the real tool result. ?tool=agent_lease_lock (or any tool below) for the others.
Search words: usage metering, metered billing, idempotent, reserve before pay, spend cap, budget, distributed lock / lease lock, fencing token, semaphore, concurrency limit, heartbeat, dead-man switch, free first call.
Hosted tool that records one billable usage event per MCP tool call, idempotently, and returns an invoice preview. Built for MCP server authors who want to charge per call without building metering.
Endpoint (MCP):
https://gap-functions.bfurrow26.workers.dev/mcp(all URLs inconfig.json)Tool list:
GET /mcp/tools· Health:GET /healthContract:
schema/mcp_usage_metering.v1.0.0.json(strict input, requiredidempotency_key, versioned 1.0.0)
Pricing and buying (no signup, no key)
Call the tool directly. Each IP gets 100 free keyless calls per day.
After that,
tools/callreturnsisError: truewitherror_code: PAYMENT_REQUIRED.structuredContent.paymentholds a one-clickapprove_and_pay_urlfor your human and agrant_token. Your agent asks you once, you click buy, then the agent retries the same call with headerX-Grant-Token(or uses the/u/<grant_token>/mcpURL form). Same token forever.Usage after purchase: $0.15 per 1,000 events ($0.00015/event), 10,000 free events per month per account.
Replays with the same
idempotency_keyare never billed twice.
Related MCP server: agentbill-mcp
Inputs
Required: tool_name, tool_version (semver), end_customer_ref, idempotency_key (8–128 chars). Optional: units, unit_label, unit_price_cents, metadata.
Legal
Terms of Service and Privacy Policy are DRAFT, pending counsel review, not yet in effect — see legal/.
License
MIT (this repository: docs and schema). Operated by Dirtsmith LLC.
More tools on the same endpoint (added 2026-11-03)
The same MCP URL (https://gap-functions.bfurrow26.workers.dev/mcp) also serves:
agent_spend_ledger: hosted shared budget ledger. Actions:
set_budget,reserve,settle,release,status. Reserve is atomic: concurrent agents on one budget can never exceed the ceiling. Reservations expire afterttl_s(default 900 s). Amounts are integer micro-USD. $9.00 per 1,000 calls after 1,000 free calls a month.agent_lease_lock: hosted lease lock. Actions:
acquire,renew,release,status, withttl_sand a monotonicfencing_token. $0.90 per 1,000 calls after 1,000 free calls a month.agent_semaphore: hosted counting semaphore. Actions:
acquire(withmax_slots,holder_id,ttl_s),release(bypermit_id),status. At most N permits at once; each permit carries a monotonicfencing_token; full returnsNO_SLOT_FREEwithretry_after_s. $0.90 per 1,000 calls after 1,000 free calls a month.agent_heartbeat_registry: hosted dead-man switch. Actions:
beat(withagent_id,interval_s,grace_s, optionalnote),status,list_stale(agents past interval + grace, up to 100). $0.90 per 1,000 calls after 1,000 free calls a month. State is shared bynamespace(16-128 chars). Any agent that knows the namespace can read and change that state, so treat it like a password. We store only its hash. Buying works the same way as metering: no signup or key, one approve-and-pay link when the free calls run out.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Metered MCP tools: free discovery over MCP; per-call execution settled in USDC via x402 v2.
HTTP 402 and x402 billing for APIs and MCP servers. Agents pay your own wallet in USDC, 0% fee.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Pay-per-call APIs and MCP services for agents, no accounts or keys, with verifiable receipts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenancePer-call billing and metering proxy for MCP tool servers. Providers set pricing via the open MCP Billing Spec (MIT), consumers pay through Stripe Connect with signed receipts and SLA monitoring.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for AI agent billing. Preflight spend checks before agent runs. Post-execution usage billing via two MCP tools: preflight() and record_event().7MIT
- FlicenseNot gradedqualityDmaintenanceEnables micropayments for MCP tool invocations using the X402 payment protocol, allowing servers to charge per tool usage in USDC and clients to automatically handle payments.4-
- AlicenseNot gradedqualityDmaintenanceEnables MCP tools to be gated behind per-call USDC micropayments with direct on-chain verification and settlement, removing the need for third-party payment facilitators.MIT