Skip to main content
Follow these steps in order. You finish with a customer paying for a tool on your MCP server in sandbox. You don’t change your server’s code.

Prerequisites

  • A SolvaPay account. Create one if you don’t have one.
  • Your MCP server reachable over HTTPS, for example https://origin.example.com/mcp. SolvaPay sits in front of it as a proxy.
  • An MCP client that supports OAuth, such as Claude.ai, Claude Desktop, or Cursor.

1. Get a sandbox secret key

In SolvaPay Console, click Developers. Under API Keys > Sandbox keys, click Generate sandbox key and copy it.

2. Check the key and base URL

A 200 with a JSON body means the key works. If you get a 401, see Authentication errors.

3. Create the product, plans, and tool mapping

One call creates an MCP product, a free plan, a paid plan, and the tool-to-plan mapping. Replace originUrl and the tool names with your server’s.
amountMinor is in cents, so 2000 is $20 per month. If you leave out tools, SolvaPay discovers your server’s tools and maps them for you (toolsAutoMapped: true in the response). From the response, copy mcpServer.mcpProxyUrl, for example https://docs-assistant.mcp.solvapay.com/mcp. This is the URL your customers connect to.
Prefer the Console? Create a Managed MCP product covers the same setup in the UI. Plan options are explained in Plans.

4. Connect as a customer

Add the proxy URL to an MCP client, the way a customer would. In Claude.ai or Claude Desktop, open Settings > Connectors, click Add custom connector, and paste the proxy URL. In Cursor, add it to mcp.json with only a url:
~/.cursor/mcp.json
The client opens a SolvaPay sign-in page. Sign in with a Google or GitHub account to act as a test customer.

5. Call a free tool and a paid tool

  1. Ask the assistant to use list_docs. It’s on the free plan, so it runs.
  2. Ask it to use deep_research. It’s on the paid plan, so SolvaPay returns a paywall response with a checkout link instead of running the tool.

6. Pay in sandbox

Open the checkout link and pay with the Stripe test card 4242 4242 4242 4242, any future expiry date, and any CVC. Sandbox never charges a real card. More test cards are in Test in sandbox.

7. Make the first paid call

Ask the assistant to use deep_research again. It now runs: this is your first paid tool call. In the Console, the customer, their Pro purchase, and the tool usage show up in sandbox.

Next steps