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
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. ReplaceoriginUrl 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 tomcp.json with only a url:
~/.cursor/mcp.json
5. Call a free tool and a paid tool
- Ask the assistant to use
list_docs. It’s on the free plan, so it runs. - 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 card4242 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 usedeep_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
- Test MCP server auth and paywall covers the checks in more detail.
- Hosted pages covers the sign-in, checkout, and account pages your customers see.
- Go live when you’re ready to take real payments with an
sk_live_key.