Agent anbinden

1. MCP-Server hinzufügen

Client wählen, kopieren, einfügen. Kein Schlüssel, keine Anmeldung: Der Server sucht und beschreibt nur – bezahlt wird mit Ihrer eigenen Wallet.

Claude CodeClaude DesktopCursorVS CodeCodexAnderer 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"
Jeder Client mit Remote-MCP über Streamable HTTP: einfach diese URL angeben.
https://api.17711.xyz/mcp

Dann fragen Sie einfach Ihren Agenten

“Finde einen Dienst, der prüft, ob eine Wallet-Adresse sanktioniert ist, und zeige mir Preis und Aufruf.”

Der Agent nutzt die MCP-Tools zum Suchen, Lesen von Schema und Preis; Ihr x402-Client zahlt.

2. Mit einem x402-Client bezahlen

Nutzen Sie das offizielle x402-SDK: Es liest die 402-Challenge, signiert die USDC-Autorisierung mit Ihrer Wallet und wiederholt.

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());

Netzwerk: Base · Asset: USDC · Wallet

3. Oder die REST-API direkt aufrufen