Configure Claude Desktop, Cursor, or a custom MCP client to use the PDF As You Go server, including stdio-only clients via a connector.
Connecting has two parts: point your client at the server
(https://mcp.pdfasyougo.com) and give it a wallet so it can answer the
x402 payment challenge. There is no API key.
Clients that support remote servers natively
Section titled “Clients that support remote servers natively”If your client can connect to a remote MCP server by URL, add an entry pointing at the endpoint and supply a wallet for payment:
{ "mcpServers": { "pdf-as-you-go": { "url": "https://mcp.pdfasyougo.com", "x402": { "network": "base", "wallet": "${X402_WALLET_PRIVATE_KEY}" } } }}Provide the wallet key through an environment variable rather than inline — see Securing your wallet.
Clients that only support stdio (use a connector)
Section titled “Clients that only support stdio (use a connector)”Many desktop clients today launch MCP servers as a local command over stdio. For those, run a small connector that bridges stdio to the remote server and handles the x402 payment loop, configured with your wallet:
Edit claude_desktop_config.json (Settings → Developer → Edit Config):
{ "mcpServers": { "pdf-as-you-go": { "command": "npx", "args": ["-y", "x402-mcp-connect", "https://mcp.pdfasyougo.com"], "env": { "X402_WALLET_PRIVATE_KEY": "0xYOUR_DEDICATED_WALLET_KEY", "X402_NETWORK": "base" } } }}Restart Claude Desktop. The PDF tools appear in the tools menu.
Add the server in ~/.cursor/mcp.json (or the project’s .cursor/mcp.json):
{ "mcpServers": { "pdf-as-you-go": { "command": "npx", "args": ["-y", "x402-mcp-connect", "https://mcp.pdfasyougo.com"], "env": { "X402_WALLET_PRIVATE_KEY": "0xYOUR_DEDICATED_WALLET_KEY", "X402_NETWORK": "base" } } }}Reload the window; the tools register for the workspace.
Any MCP client library can connect to the remote URL. Pair it with an x402 payment handler
(see Paying with x402) so 402 responses are signed and retried. The
connector approach above also works for headless/server agents.
Verifying the connection
Section titled “Verifying the connection”- Restart/reload your client after editing its config.
- Confirm the PDF tools appear (e.g.
merge_pdfs,add_text_watermark). The full set is in the Tools reference. - Ask the agent to run a simple operation against a public test PDF and confirm it returns a download URL.
If the tools don’t appear, check the client’s MCP logs for connection errors; if a call fails on payment, see Paying with x402.
Securing your wallet
Section titled “Securing your wallet”The wallet key lets the client spend funds — protect it accordingly:
- Pass it via an environment variable or secret manager, never commit it to source control.
- Use a dedicated, low-balance wallet for agent spending, topped up as needed.
- See Wallets & networks for funding details.
- Paying with x402 — how the client settles each tool call.
- Tools — parameters for every tool.