Connect your agent

1. Add the MCP server

Pick your client, copy, paste. No key, no signup: the server only searches and describes — paying stays with your own wallet.

Claude CodeClaude DesktopCursorVS CodeCodexOther client
Terminal
claude mcp add --transport http 17711 https://api.17711.xyz/mcp
claude_desktop_config.json
{
  "mcpServers": {
    "17711": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.17711.xyz/mcp"]
    }
  }
}
.cursor/mcp.json
{
  "mcpServers": {
    "17711": { "url": "https://api.17711.xyz/mcp" }
  }
}
.vscode/mcp.json
{
  "servers": {
    "17711": { "type": "http", "url": "https://api.17711.xyz/mcp" }
  }
}
~/.codex/config.toml
[mcp_servers.17711]
url = "https://api.17711.xyz/mcp"
Any client that supports remote MCP over Streamable HTTP: just give it this URL.
https://api.17711.xyz/mcp

Then just ask your agent

“Find a service that can check whether a wallet address is sanctioned, then show me its price and how to call it.”

The agent uses the MCP tools to search, read the schema and the price, then your x402 client pays.

2. Pay with an x402 client

Use the official x402 SDK: it reads the 402 challenge, signs the USDC authorisation with your wallet and retries.

TypeScript
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const pay = wrapFetchWithPayment(fetch, client);

const res = await pay("https://api.17711.xyz/registry/ping-service/v1/ping", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ echo: "hello" }),
});
console.log(await res.json());

Network: Base · asset: USDC · Wallet

3. Or call the REST API directly