# Nexus402 > Monetize Model Context Protocol (MCP) tools and call them from AI agents: pay-per-call pricing, one key, a hard 24h spend cap per key and an append-only ledger. Nexus402 meters and bills MCP tool calls made by AI agents. A developer pre-funds a wallet with Credits, calls tools through one API key, and is charged a fixed price per call. Nexus402 sells that call in its own name as merchant of record: the tool's creator is a supplier owed a wholesale price, and Nexus402 keeps a margin on the resale: 10% by default, falling as a creator's lifetime paid sales grow, down to 8% today, and 5% for founding creators for up to a year. ## Start here - [Nexus402 — Pay-per-call MCP tools for AI agents](https://www.nexus402.dev/): Monetize Model Context Protocol (MCP) tools and call them from AI agents: pay-per-call pricing, one key, a hard 24h spend cap per key and an append-only ledger. - [Product — the meter for paid MCP tools](https://www.nexus402.dev/product/): One key and any MCP client for developers; your own server, a fixed price and payouts for creators. How Nexus402 meters, signs and settles calls. - [For developers — every MCP tool, one key](https://www.nexus402.dev/developers/): Call paid MCP tools from Cursor, Claude Code, Codex or any MCP client with one key: usage-based billing from a pre-funded wallet, a hard 24h cap per key. - [Monetize your MCP server — get paid per call](https://www.nexus402.dev/creators/): Monetize your MCP server without moving it: set a fixed price per call, and Nexus402 checks, charges and signs every call. You withdraw through Stripe. - [Pricing — pay per call, no subscription](https://www.nexus402.dev/pricing/): What Nexus402 costs: developers pay each tool's fixed price per call and nothing for a failure; creators are owed the price less our margin. - [Founding program — Nexus402's first creators and developers](https://www.nexus402.dev/founding/): How the first creators and developers who bring real, paid use earn a numbered founding badge, a lower margin or more keys. - [Marketplace — MCP tools your agent can call](https://www.nexus402.dev/marketplace/): Search and filter MCP tools by category, price, rating, creator and free calls. Each has a fixed price per call and runs on its creator's server. - [Documentation — what the Nexus402 gateway does today](https://www.nexus402.dev/docs/): POST /v1/mcp, X-Nexus-Api-Key, the 402 and every error code, Ed25519 egress signatures, settlement and payload privacy — the complete gateway contract. - [How Nexus402 works — the gateway, the meter, the ledger](https://www.nexus402.dev/docs/how-it-works.md): How a creator's own server, a developer's MCP client and the Nexus402 gateway fit together: the call flow, the meter, settlement and who handles what. - [Glossary — Nexus402 terms, from 402 to wholesale price](https://www.nexus402.dev/docs/glossary.md): Every Nexus402 term in one place: wallet, API key, spend cap, micro-USD, free calls, merchant of record, wholesale price, rollup and more. - [Set up your agent — Cursor, Claude Code, Codex](https://www.nexus402.dev/docs/agents.md): Connect Cursor, Claude Code or Codex to Nexus402 in one step, and add skills that teach an agent the gateway's contract and the creator endpoint's. ## Guides, comparisons and the company - [Guides — monetizing and budgeting MCP tools](https://www.nexus402.dev/guides/): Practical guides for MCP creators and developers: how to monetize an MCP server, how to price it, and how to give an AI agent a budget. - [How to monetize an MCP server — a practical guide](https://www.nexus402.dev/guides/monetize-mcp-server/): Turn an MCP server into a paid tool: verify signed calls, set a price per call, add free calls, publish a version and get paid through Stripe. - [Pay-per-call vs subscriptions for MCP tools](https://www.nexus402.dev/guides/pay-per-call-vs-subscriptions/): Should an MCP tool charge per call or per month? How each model fits agent traffic, what each asks of a creator, and where free calls fit. - [Build your own MCP billing, or use Nexus402?](https://www.nexus402.dev/guides/build-vs-buy-mcp-billing/): Everything you would build to charge for an MCP tool yourself: keys, metering, spend caps, refunds, payouts, request signing and a ledger. - [How to give an AI agent a budget for paid tools](https://www.nexus402.dev/guides/ai-agent-budget/): Stop a looping agent from overspending: one key per agent, a rolling 24-hour spend cap, a tool allowlist, a pre-funded wallet and an alert. - [Open source — MCP starter kits and verify-proxy](https://www.nexus402.dev/open-source/): Nine MCP server starter kits and verify-proxy are open source under Apache-2.0: build or wrap a server that verifies every signed Nexus402 call. - [About Nexus402 — the meter for paid MCP tools](https://www.nexus402.dev/about/): Who builds Nexus402 and why: a pay-per-call gateway between AI agents and the MCP tools they use, built like a payment system from the first line. - [Blog — news from the Nexus402 team](https://www.nexus402.dev/blog/): Product news and engineering notes from the team building Nexus402, the pay-per-call gateway between AI agents and MCP tools. - [What is HTTP 402 Payment Required? A guide for AI agents](https://www.nexus402.dev/blog/what-is-http-402-payment-required/): HTTP 402 Payment Required sat reserved for decades. What it means, why AI agents finally need it, and how a paid MCP tool call uses it. - [How much should you charge for an MCP tool call?](https://www.nexus402.dev/blog/how-to-price-an-mcp-tool/): A practical way to price a paid MCP tool per call: start from your cost, leave room for the margin, offer free calls, raise prices safely. - [Why a failed tool call should cost nothing](https://www.nexus402.dev/blog/failed-tool-calls-should-cost-nothing/): When an AI agent's tool call fails, who pays? Where the line between a refund and a charge belongs, and why it sits at the first byte. - [How to stop an AI agent from being charged twice](https://www.nexus402.dev/blog/stop-ai-agent-double-charges/): AI agents retry, and retries can double-charge. How idempotency keys and atomic metering make every paid tool call bill at most once. - [A rolling 24-hour spend cap for AI agents, explained](https://www.nexus402.dev/blog/rolling-24-hour-spend-cap/): Why a rolling 24-hour cap suits an AI agent better than a daily or monthly budget, with a worked example of spend ageing out. - [Our MCP starter kits and verify-proxy are open source](https://www.nexus402.dev/blog/open-source-starter-kits/): On 18 November 2026 we published nine MCP server starter kits and verify-proxy under Apache-2.0. What is in them, and why we opened them. ## For developers calling tools - [Call paid MCP tools — developer documentation](https://www.nexus402.dev/docs/developers.md): Fund a wallet, mint a key and call a paid MCP tool: caps, the 402, idempotency and every error code. - [Developer quickstart — first paid MCP call](https://www.nexus402.dev/docs/developers/quickstart.md): Fund a wallet, mint a key and make your first paid MCP call through Nexus402, with copy-paste requests. - [Connect with MCP — use Nexus402 from your MCP client](https://www.nexus402.dev/docs/developers/mcp-clients.md): Connect the MCP client you already use to the Nexus402 gateway: one URL, one header, no SDK. Guides for Cursor, Claude Code and OpenAI Codex. - [Connect Cursor to Nexus402 over MCP](https://www.nexus402.dev/docs/developers/mcp-clients/cursor.md): Add the Nexus402 gateway to Cursor's mcp.json with your API key in an environment variable, verify it, and fix the common connection errors. - [Connect Claude Code to Nexus402 over MCP](https://www.nexus402.dev/docs/developers/mcp-clients/claude-code.md): Add the Nexus402 gateway to Claude Code with claude mcp add or .mcp.json, keep the key out of the file, verify it, and fix common errors. - [Connect OpenAI Codex to Nexus402 over MCP](https://www.nexus402.dev/docs/developers/mcp-clients/codex.md): Add the Nexus402 gateway to OpenAI Codex in config.toml with env_http_headers, verify it with codex mcp list, and fix common errors. - [Agent frameworks — call Nexus402 tools from code](https://www.nexus402.dev/docs/developers/frameworks.md): Call Nexus402 tools from agent frameworks over MCP: the MCP Python and TypeScript SDKs, LangChain and the OpenAI Agents SDK, each with a tested example. - [Call Nexus402 tools from the MCP Python SDK](https://www.nexus402.dev/docs/developers/frameworks/python-mcp.md): Connect the official MCP Python SDK to Nexus402: one URL, one X-Nexus-Api-Key header, a tested example, and what a 402 refusal looks like. - [Use paid MCP tools in LangChain (Python)](https://www.nexus402.dev/docs/developers/frameworks/langchain.md): Load every Nexus402 tool your key may call as LangChain tools with langchain-mcp-adapters, in a tested example with the key header in place. - [Use paid MCP tools with the OpenAI Agents SDK](https://www.nexus402.dev/docs/developers/frameworks/openai-agents.md): Give an OpenAI Agents SDK agent Nexus402's MCP tools through MCPServerStreamableHttp, with your key in the header and a tested example. - [Call Nexus402 tools from the MCP TypeScript SDK](https://www.nexus402.dev/docs/developers/frameworks/typescript-mcp.md): Connect the official MCP TypeScript SDK to Nexus402 over streamable HTTP, with the key header in requestInit and a tested example. - [Keys, caps and rotation — Nexus402](https://www.nexus402.dev/docs/developers/keys.md): Ten keys per account, an optional rolling 24-hour spend cap, immediate revocation and rotation with an overlap window. - [Funding a wallet and seeing spend](https://www.nexus402.dev/docs/developers/wallet.md): Pre-funding with 3D Secure, no fee on the Credits, why there is no auto-top-up, and where your spend is itemised. - [When you are charged — Nexus402 billing](https://www.nexus402.dev/docs/developers/billing.md): A fixed price per call, the refunds that happen automatically, and the one failure you do pay for. - [Money is a string — integer micro-USD](https://www.nexus402.dev/docs/developers/money-format.md): Every amount is integer micro-USD as a JSON string, never a number, and the 2^53 parsing bug that decision prevents. - [Idempotency and safe retries — Nexus402](https://www.nexus402.dev/docs/developers/idempotency.md): Why a retry with a used Idempotency-Key is refused with 422 rather than charged twice, and when a retry runs and is charged once. - [Rate limits — Nexus402 developer docs](https://www.nexus402.dev/docs/developers/rate-limits.md): What the gateway meters per key and per IP, what a 429 means, and how to back off without losing calls. - [Every error code — Nexus402 reference](https://www.nexus402.dev/docs/developers/errors.md): Every wire error the gateway can return, generated from its own source so the list cannot fall behind the code. - [Headers — what is sent, returned and never forwarded](https://www.nexus402.dev/docs/developers/headers.md): The headers you send, the ones the gateway returns, and the one credential it will never forward to a tool. - [Alerts: webhooks, Slack and Discord](https://www.nexus402.dev/docs/developers/alerts.md): Signed webhook, Slack and Discord alerts: the event list, the body, the HMAC signature, a tested verifier, retries and pausing. ## For creators publishing tools - [Host a tool on Nexus402 — creator documentation](https://www.nexus402.dev/docs/creators.md): Host an MCP tool on Nexus402: the request contract, the Ed25519 signature you must verify, and a complete reference endpoint you can clone and deploy. - [Creator quickstart — publish a paid tool](https://www.nexus402.dev/docs/creators/quickstart.md): Claim a handle, host an endpoint, publish a priced tool version and take your first paid call, in five steps. - [Endpoint requirements for creators](https://www.nexus402.dev/docs/creators/requirements.md): HTTPS, the 5-second first byte, the 120-second ceiling, the 10 MiB cap, streaming, and what the gateway refuses to relay. - [Build a Server — an MCP tool endpoint from zero](https://www.nexus402.dev/docs/creators/build-a-server.md): Build the HTTPS endpoint that serves your MCP tools: the request contract, the hello, the proof, and tested starter kits in nine languages. - [Build a Server — host, connect and publish](https://www.nexus402.dev/docs/creators/build-a-server/publish.md): Host your MCP tool endpoint anywhere with HTTPS, prove the host, publish a priced version, set free calls, and test and troubleshoot it. - [Verifying a Nexus402 request](https://www.nexus402.dev/docs/creators/verifying.md): The creator key, the six-field Ed25519 signature, why both exist, and the registered-host mistake that breaks proxies. - [A published version is immutable](https://www.nexus402.dev/docs/creators/versions.md): Why a published price, endpoint and schema can never change, how to ship v2, and what retiring a version does. - [When calls do not arrive — endpoint health](https://www.nexus402.dev/docs/creators/endpoint-health.md): Read your failure count, the last call you delivered, and whether a version has been de-listed. - [When you earn — Nexus402 settlement](https://www.nexus402.dev/docs/creators/settlement.md): The wholesale price we owe you, our margin and the creator ladder that lowers it, when a call settles, and the failures you are not paid for. - [Payouts — Stripe Connect and the $5 minimum](https://www.nexus402.dev/docs/creators/payouts.md): Connecting Stripe, the emailed confirmation a destination and each withdrawal need, the withdrawal fee, holds and the daily cap. ## For AI agents - MCP server: `https://api.nexus402.dev/v1/mcp` (streamable HTTP). Authenticate with the header `X-Nexus-Api-Key`; keep the key in the `NEXUS402_API_KEY` environment variable, never in a file. `tools/list` returns the tools the key may call, each with its description and input schema; `tools/call` is charged the tool's fixed price, which the public catalogue (`GET https://api.nexus402.dev/v1/tools`) lists and the `X-Nexus-Price` response header confirms. - Meta mode: `https://api.nexus402.dev/v1/mcp/meta`, same key and header, lists four built-in tools instead of every tool's schema: `nexus402_search` and `nexus402_describe` (free), `nexus402_call` (billed exactly like a direct call, never above its optional `max_price_micro`; refusals come back as tool errors with the same code), and `nexus402_budget` (free). A key may also carry a maximum price per call; tools above it are hidden and refused, unbilled. - [Agent skills index](https://www.nexus402.dev/.well-known/skills/index.json): two skills, one for calling tools through Nexus402 and one for building a creator endpoint, installable with `npx skills add https://www.nexus402.dev`. - [Set up your agent — Cursor, Claude Code, Codex](https://www.nexus402.dev/docs/agents.md): one-step setup for Cursor, Claude Code and Codex. ## Pricing and free calls - Creators are owed their published price less the margin. The margin is 10% by default and steps down as a creator's lifetime paid sales grow, down to 8% today, so a creator is owed 90% to 92% of every paid call. A step, once reached, is never taken back, and a margin change applies only from its effective date. [The creator ladder](https://www.nexus402.dev/docs/creators/settlement.md). - Founding creators: while the founding program is open, the first 50 creators who, within 30 days of publishing their first tool, reach 1,000 paid calls and $10.00 of paid sales from at least five developers with ten paid calls each pay half the default margin — 5% today, so they are owed 95% — for 12 months or their first $5,000.00 of sales, whichever comes first. A person reviews every award. [Founding program](https://www.nexus402.dev/founding/). - Publishing costs nothing: no listing fee and no subscription. A withdrawal fee, currently 3% of the amount plus $0.40, is deducted from the amount and quoted before the creator confirms. - Free calls: a creator can give every account 0 to 1,000 free calls of a tool per UTC day, week or month. They debit nothing and do not count against a key's spend cap. An account takes them once it has a settled top-up, or with trial credit, which a new account gets only while a sign-up offer is running. - Discovery is never billed (`initialize`, `tools/list`, `ping`), and a call that fails before any output is refunded and owes the creator nothing. ## Things that are easy to get wrong - Money is an integer of micro-USD (1 USD = 1,000,000) and travels as a JSON **string**, never a JSON number. Parsing an amount as a float loses cents above 2^53 micro; use a big-integer type. - A call with insufficient funds is refused with HTTP 402 and is not charged. If our own infrastructure is unavailable the gateway fails closed with HTTP 503 rather than letting a call through unmetered. - An `Idempotency-Key` that already paid for a tool call is single-use: replaying it, with the same request or a different one, is refused with HTTP 422 and is never charged twice. Results are not replayed, because payloads are never stored. If the first attempt was refunded, the retry runs and is charged once. - Wallets are pre-funded and there is no automatic top-up. A wallet that runs out stops working until somebody adds funds on purpose. - A creator's server checks an Ed25519 signature and the creator key on every call the gateway forwards, so knowing a tool's URL is not enough to call it without paying. Starter kits that already do this exist in nine languages. - There is no SDK to install. Tools are called through the MCP clients a developer already uses, authenticated with one `nx_dev_` API key. - Request and response bodies pass through the gateway as a dumb pipe. They are never logged, stored or inspected — only metadata and hashes are kept. ## Optional - [Every docs page in one file](https://www.nexus402.dev/llms-full.txt): the documentation above as one Markdown document, in this file's order. - [Sitemap](https://www.nexus402.dev/sitemap-index.xml): every indexable page. ## Not in this file - The legal documents (terms, privacy, creator agreement, security disclosure) are published at https://www.nexus402.dev/legal/ and are deliberately excluded here: they are contracts, reviewed by counsel and in force, and a summary of a contract is not the contract: read them there.