Skip to content

Connecting a client

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:

MCP client config (representative)
{
"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.

  1. Restart/reload your client after editing its config.
  2. Confirm the PDF tools appear (e.g. merge_pdfs, add_text_watermark). The full set is in the Tools reference.
  3. 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.

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.