Agent Tollbooth 402 vs XERJ
Agent Tollbooth 402 is a freemium MCP server for developer tools. XERJ is an open-source MCP server for knowledge and memory.
- XERJ is open source, while Agent Tollbooth 402 is freemium.
- Agent Tollbooth 402 is best for charging ai agents a small fee per api call.
- XERJ is best for search local code and docs from an agent.
- What it is
- Agent Tollbooth 402 is a freemium MCP server for developer tools.XERJ is an open-source MCP server for knowledge and memory.
- Best for
- Charging AI agents a small fee per API callSearch local code and docs from an agent
- Kind
- MCP serverMCP server
- Pricing
- FreemiumOpen source
- Platforms
- API, CLI, self-hosted, vscodeCLI, Linux, macOS, self-hosted, API
- Runs
- RemotelyLocally
- GitHub stars
- 19.2K
- Last commit
- Nov 2026
- License
- Apache-2.0
- Open source
- Good for
- Charging AI agents a small fee per API call; Monetizing a Cloudflare Worker or Hono endpoint without building a billing system; Adding pay-per-request access to an MCP serverSearch local code and docs from an agent; Give an agent persistent memory notes; Look up real API definitions
What Agent Tollbooth 402 does
Per-call HTTP 402 gating
Wraps a route so unpaid requests receive a 402 challenge with price and accepted payment rails.
Dual payment rails
Accepts x402 V2 USDC payments on Base or prepaid Fiat Agent Wallet receipts.
Edge receipt verification
Checks HMAC-SHA256 or Ed25519 receipts locally with Web Crypto, with D1 nonce replay protection.
Local sandbox testing
Runs the 402, signing and retry loop offline using sandbox mode, without keys or wallets.
Remote MCP tools
Exposes pricing quote, wallet balance, receipt issuance, x402 verification and top-up checkout tools.
Route scanning skill
Plugin skill that scans Workers, Hono, Next.js, Express and MCP endpoints for billable routes.
What XERJ does
Single binary
Search, vectors, facts and memory in one Rust program.
Evidence-backed answers
Answers come with the program and evidence used.
Runs locally
Works offline on a CPU, on a laptop or server.
Elasticsearch-compatible API
Exposes an API compatible with Elasticsearch.
Reference coding
Index open-source repos so agents consult real definitions.
MCP integration
Stdio MCP server connects to a running node.
Agent Tollbooth 402 vs XERJ: questions
Is Agent Tollbooth 402 or XERJ cheaper?
XERJ is the cheaper option: it is open source.
What is the difference between Agent Tollbooth 402 and XERJ?
Agent Tollbooth 402 is a freemium MCP server for developer tools. XERJ is an open-source MCP server for knowledge and memory. XERJ is open source, while Agent Tollbooth 402 is freemium.

