Guides
Connect your coding agent
Connect Claude Code, Codex, Cursor, or the Claude API with your API key from the environment, or sign the Claude app, ChatGPT, Codex or Cursor in with your email.
The MCP endpoint lives at /mcp on the same host as the REST API. The hosted service is https://api.monetize.pay, so its MCP address is https://api.monetize.pay/mcp; where this guide writes YOUR_HOST, use api.monetize.pay unless Monetize.Pay gave you another address. It uses the Streamable HTTP transport and the same API key as REST, sent as a bearer token. Set the key in your environment as MONETIZEPAY_TEST_API_KEY rather than pasting it into a command or config file; each client below reads it from there.
Fastest: Copy prompt
On the front door, press Copy prompt and paste it into Claude Code, Codex or Cursor. Your agent reads agent-setup.md on the Monetize.Pay site, asks for your email and a yes to the Terms, confirms the 6-digit code we email you, and takes a $1.00 sandbox payment. It saves the test key in your project's git-ignored .env and in your coding tool's user-level MCP settings, and tells you how to remove it. Nothing is installed. The sections below set a client up by hand.
Claude Code
export MONETIZEPAY_TEST_API_KEY=zp_test_...
claude mcp add --transport http zeropoint https://YOUR_HOST/mcp --header 'Authorization: Bearer ${MONETIZEPAY_TEST_API_KEY}'The single quotes keep the shell from expanding ${MONETIZEPAY_TEST_API_KEY} before it reaches claude mcp add; Claude Code stores the reference in .mcp.json and resolves it from the environment at connect time.
The server's getting_started prompt appears in Claude Code as the slash command /mcp__zeropoint__getting_started; in non-interactive runs the server instructions carry the same steps, so an agent that never sees the prompt still knows the order. The integrate_card_present and integrate_keyed prompts appear the same way (/mcp__zeropoint__integrate_card_present, /mcp__zeropoint__integrate_keyed) and walk the agent through a full sandbox integration with the tools. With real hardware and a live key, the discover_terminals and register_terminal tools add a physical terminal to the merchant. Test mode has no physical terminals.
Then, in a session, ask: "Use the zeropoint MCP to read the getting-started guide, run the integration checklist, and complete every available step."
Or install the plugin
The repository is a Claude Code plugin marketplace. Two commands add the server and two skills, with the same environment variable holding the key:
claude plugin marketplace add monetizepay/claude-plugin
claude plugin install monetize-pay@monetizepay/monetize-pay:connect runs the read-only connection check, and /monetize-pay:build-payments terminal (or keyed, or explore) starts the guided integration that the sandbox console hands out. The plugin's server defaults to the hosted sandbox; set MONETIZEPAY_MCP_URL to another /mcp address to point it elsewhere.
Claude app (claude.ai and Claude Desktop), ChatGPT, Grok, and other apps that sign in
Apps that cannot send a header sign in instead, and no key ever changes hands.
- In the Claude app, open Settings, then Connectors, and add a custom connector with the server URL
https://YOUR_HOST/mcp. In ChatGPT on the web, open chatgpt.com/plugins, press the plus button, choose Add custom MCP server, enter a name and the Server URLhttps://YOUR_HOST/mcp, choose OAuth for authentication, accept the risk notice, press Create as a plugin, then install the plugin (OpenAI's steps: https://developers.openai.com/api/docs/guides/developer-mode, checked 11/17/2026). ChatGPT registers itself and returns tohttps://chatgpt.com/connector/oauth/..., which the sign-in pages recognise as ChatGPT. In Grok on the web, open grok.com/connectors, press New Connector, choose Custom and enter the server URLhttps://YOUR_HOST/mcp(xAI's steps: https://docs.x.ai/grok/connectors, checked 11/23/2026). In Grok Build, rungrok mcp add --transport http zeropoint https://YOUR_HOST/mcp; it opens the same sign-in the first time it uses Monetize.Pay (https://docs.x.ai/build/features/mcp-servers). Other MCP apps have a similar step. - The app opens Monetize.Pay's sign-in page in your browser. Enter your email. When email verification is enabled, Monetize.Pay emails you a link: open it before the time the email states (at most ten minutes after the app opened the sign-in page, because the link finishes that sign-in request), check the client and destination shown, then press Allow; your browser goes back to the app. Otherwise signup connects immediately. If Monetize.Pay sent you an agent sign-in link instead (one use, 15 minutes), paste it there.
- Back in the app, say "Add Monetize.Pay payments to my app", or ask it to run the
integration_checklisttool.
The app never sees the API key: it receives a token that stands for your sign-in, refreshes it on its own, and loses access the moment your operator revokes the sign-in, the key, or the platform. The connection carries exactly the scopes the sign-in was issued with. An app may ask for fewer (any subset of the authorization server's scopes_supported), never more. If the app offers a request-header option instead, Authorization: Bearer zp_test_... still works as with Claude Code.
Codex (CLI and desktop app)
The Codex CLI and the Codex desktop app share one configuration, so one command in a terminal connects both:
codex mcp add zeropoint --url https://YOUR_HOST/mcpCodex finds the sign-in on its own and opens Monetize.Pay's sign-in page in your browser. Enter your email as in step 2 above; the page shows the name Codex registered followed by "(an app on this computer)", because it returns to a loopback address. When the terminal prints Successfully logged in, start a new thread (or restart the desktop app) so it loads the tools. codex mcp list shows zeropoint with OAuth under Auth; codex mcp login zeropoint starts the sign-in again.
To use a key instead of the sign-in, set MONETIZEPAY_TEST_API_KEY in your environment and run codex mcp add zeropoint --url https://YOUR_HOST/mcp --bearer-token-env-var MONETIZEPAY_TEST_API_KEY. Set the variable before Codex or the desktop app starts, and restart them after setting it.
Add the server yourself, once. The assistant inside a chat usually cannot register an MCP server for itself: asked to connect itself in the Codex desktop app or in ChatGPT, it answered that it has no tool for that (11/23/2026). Use the command above (Codex) or the plugins screen (ChatGPT), then ask it to build.
Checked with codex-cli 0.166.0 on 11/23/2026.
Cursor and other MCP clients
Keep the key out of URLs and out of any file you commit. Put it in your environment (add export MONETIZEPAY_TEST_API_KEY=zp_test_... to ~/.zshrc or ~/.bashrc, or run setx MONETIZEPAY_TEST_API_KEY zp_test_... once in PowerShell on Windows), quit Cursor fully and reopen it so it reads the variable, then add the server to ~/.cursor/mcp.json (or .cursor/mcp.json in your project):
{
"mcpServers": {
"zeropoint": {
"url": "https://YOUR_HOST/mcp",
"headers": { "Authorization": "Bearer ${env:MONETIZEPAY_TEST_API_KEY}" }
}
}
}Cursor connects over Streamable HTTP and resolves ${env:NAME} in headers when it connects, so the file holds only the variable's name and is safe to commit. The front door's Add Monetize.Pay to Cursor button installs exactly this entry; the key is never in the link. Other MCP clients: a server of type http with the same URL and header, read from the environment the same way.
Or sign in without a key: add only "url": "https://YOUR_HOST/mcp" with no headers. Cursor then registers itself over OAuth (as a public client with PKCE, returning to http://localhost:8787/callback from the desktop app) and opens Monetize.Pay's sign-in page, which takes your email as for the apps above. The page labels Cursor "an app on this computer", because a loopback callback cannot prove which app it is; if Cursor uses its web callback (https://www.cursor.com/agents/mcp/oauth/callback) instead, the page names Cursor.
Source for Cursor's behaviour: https://cursor.com/docs/context/mcp and https://cursor.com/docs/context/mcp/install-links (checked 11/17/2026).
Claude API (Messages) MCP connector
Pass the server in mcp_servers as {"type": "url", "url": "https://YOUR_HOST/mcp", "name": "zeropoint", "authorization_token": "zp_test_..."}, add {"type": "mcp_toolset", "mcp_server_name": "zeropoint"} to tools, and send the beta header mcp-client-2025-11-20. Read authorization_token from process.env.MONETIZEPAY_TEST_API_KEY (or your language's equivalent) in the code that builds the request, rather than writing the key into source.
What the server tells your agent
On connect the server sends instructions that explain the tools and the recommended order: read the docs, confirm the key with integration_checklist, walk the sandbox with the tools (they run the same code as REST), then build against the REST API. Every tool description says what it does, when to use it, its arguments, what it returns, which errors it can raise, and the next step.
If you get a 401
Lost a self-serve sandbox key? When email is enabled, open /recover on the service and request a link for your signup address. Confirm the link to receive one new scoped test key and revoke old test keys. Links and the key-management page expire after 15 minutes. Live keys are issued after you accept the Builder Agreement in the console; see going-live. If email is unavailable, ask the operator for help or create another sandbox.
The Authorization header is missing or the key is wrong. On the MCP endpoint the 401 carries WWW-Authenticate: Bearer error="invalid_token"; fix the header and reconnect. Inside a session, a tool that cannot authenticate returns an error result whose text contains the standard error envelope with code api_key_missing.
Tool budget
Each platform may make 60 tool calls per minute across all of its keys. Past that, a tool returns an error result with code rate_limited and a message saying how many seconds to wait; nothing was done. Live keys support stored reads and connected-merchant payment, refund, physical terminal and webhook writes. create_sandbox_merchant, set_terminal_behavior and simulate_terminal remain test-only and answer live_mode_unavailable. Follow going-live before accepting live payments.