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 mcp add --transport http 17711 https://api.17711.xyz/mcp{
"mcpServers": {
"17711": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.17711.xyz/mcp"]
}
}
}{
"mcpServers": {
"17711": { "url": "https://api.17711.xyz/mcp" }
}
}{
"servers": {
"17711": { "type": "http", "url": "https://api.17711.xyz/mcp" }
}
}[mcp_servers.17711]
url = "https://api.17711.xyz/mcp"https://api.17711.xyz/mcpThen 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.
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