Tollbooth Authority β Certified Purchase Order Service for DPYC operators
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The institution that built the infrastructure.
The metaphors in this project are drawn with admiration from The Phantom Tollbooth by Norton Juster, illustrated by Jules Feiffer (1961). Milo, Tock, the Tollbooth, Dictionopolis, and Digitopolis are creations of Mr. Juster's extraordinary imagination. We just built the payment infrastructure.
Every turnpike has an authority. Not the operators who run the booths, and not the drivers who pay the fares β but the institution that poured the concrete, erected the signs, and stamped the purchase orders.
The Tollbooth Authority is the Massachusetts Turnpike Authority of the Lightning economy. It doesn't operate any toll booths. It doesn't touch operator BTCPay stores. It never sees user payment data. What it does is simpler and more essential:
The Authority's signature is the proof that the turnpike is legitimate. Without the stamp, the toll booth doesn't open.
As of v0.9.0, this Authority is an ~80-line thin consumer of the tollbooth-dpyc wheel. Every piece of generic Authority code β onboarding state machine, Schnorr certificate signer, replay tracker, Neon tenant provisioner, and the full 10-tool MCP surface β lives in the wheel's tollbooth.authority package. This repo's server.py supplies only actor-specific configuration: identity name, human-readable instructions, OperatorRuntime construction, and two register_*_tools(mcp, runtime) calls.
Refactor history:
OperatorRuntime and delegated standard tools to the wheel β ~1,900 lines β ~970._verify_operator_proof helper was promoted to wheel-side tollbooth.identity_proof.require_proof.tollbooth.authority.*.@tool definitions into register_authority_tools(mcp, runtime).0.4.0 releases.The Tollbooth ecosystem is a three-party protocol spanning three repositories:
| Repo | Role |
|---|---|
| tollbooth-authority (this repo) | The institution β fee collection, Schnorr signing, purchase order certification |
| tollbooth-dpyc | The booth β operator-side credit ledger, BTCPay client, tool gating |
| thebrain-mcp | The first city β reference MCP server powered by Tollbooth |
The three-party protocol above is the core, but the Authority certifies a wider federation of independent MCP services, all built on the same tollbooth-dpyc SDK:
| Repo | Role |
|---|---|
| tollbooth-dpyc | Shared SDK β crypto, vault, auth, pricing, audit |
| dpyc-community | Governance registry β members.json, GOVERNANCE.md, CI validation |
| dpyc-oracle | Free community concierge β membership, governance, onboarding answers |
| tollbooth-authority | This repo β certification backbone, Schnorr certs, fee ledger |
| tollbooth-sample | Reference template for new operators |
| tollbooth-pricing-studio | Pricing editor β native iOS, Nostr DMs |
| cypher-mcp | Monetized graph answers β named Cypher over Neo4j/AuraDB |
| schwab-mcp | Charles Schwab brokerage data |
| thebrain-mcp | TheBrain knowledge-graph access |
| excalibur-mcp | X/Twitter posting |
| taxsort-mcp | Tax sorting + classification |
| optionality-mcp | Options analytics |
| tollbooth-oauth2-collector | Shared OAuth2 callback collector (community Advocate) |
| tollbooth-shortlinks | URL shortener utility |
Register. An operator connects to the Authority via Horizon MCP and calls register_operator(npub=...). The Authority creates a ledger entry and provisions an isolated Neon schema for the operator.
Fund. The operator calls purchase_credits with the number of sats they want to pre-fund. The Authority returns a Lightning invoice from its own BTCPay Server. The operator pays. After settlement, check_payment credits the balance.
Certify. When a user wants to buy credits from an operator, the operator's server calls certify_credits. The Authority deducts the 2% ad valorem fee (via the @runtime.paid_tool decorator), signs a Schnorr-based Nostr event certificate, and returns it.
Verify. The operator's tollbooth-dpyc library verifies the certificate using the Authority's Nostr npub. Only if the stamp is valid does the operator create a Lightning invoice for the user. No stamp, no fare.
Certificates are Schnorr-signed Nostr events (NIP-33 parameterized replaceable events) rather than Ed25519 JWTs. Each certificate contains the operator npub in a p tag, the certified amount and protocol in t/L tags, an expiration tag, and the content field holds the structured claim data. Verification uses BIP-340 Schnorr signatures against the Authority's Nostr npub.
The Authority checks the dpyc-community members.json registry at certification time. Operators must have "status": "active" in the registry. The registry is HTTP-cached with a configurable TTL. Design is fail-closed: if the registry is unreachable, certification is denied.
Parent Authority relationships live in the dpyc-community registry β each Authority's upstream_authority_npub points at its sponsor. Operator MCPs resolve their certifying Authority via resolve_authority_service(operator_npub) walking that registry chain; no per-Authority env var configures the upstream. The Authority's own certify_credits simply collects the ad valorem fee from its operator's pre-funded balance and signs the certificate β no per-transaction upstream call.
certify_credits is registered as a @runtime.paid_tool with 2% ad valorem pricing on the amount_sats parameter (minimum 10 sats). The fee is debited by the decorator, and the cost is read from runtime._last_debit_cost β no double computation.
OpenTimestamps notarization is enabled (ots_enabled=True on the runtime). Ledger state can be notarized and verified through the standard notarize_ledger and get_notarization_proof tools provided by the wheel.
Every certificate includes a unique JTI (JWT ID). The Authority tracks seen JTIs in an in-memory ordered dict with TTL-based pruning. This prevents certificate replay attacks even if a certificate is intercepted before expiration.
All tools are now wheel-defined and registered by the two register_*_tools calls in server.py. For the full canonical tables (Authority tools mounted by register_authority_tools, standard tools mounted by register_standard_tools) see the tollbooth-dpyc README. The short version:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tollbooth-authority)<a href="https://allmcps.com/mcp/tollbooth-authority"><img src="https://allmcps.com/api/badge/tollbooth-authority?style=directory" alt="Tollbooth Authority on AllMCPs" /></a>