Add d402 to an MCP Server
Learn how to add d402 payments to an MCP server using the traia-iatp SDK.
This guide shows how to turn an existing MCP server into a paid MCP server with d402.
Choose the path that fits your goal:
local testing: generate a one-endpoint MCP repo and test the
402flow on your machineproduction: conform an existing MCP server and deploy it with production settings
Production Defaults
Network:
arbitrum_oneTokens:
USDC,USDTDecimals:
6USDC:0xaf88d065e77c8cC2239327C5EDb3A432268e5831USDT:0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9
Start Here
Local Testing Path
prerequisites/overview.mdlocal-testing/quickstart.mdlocal-testing/docker.mdorlocal-testing/direct-run.mdexamples/call-mcp-with-d402-httpx.md
Production Path
prerequisites/overview.mdconform-existing-mcp/overview.mdconform-existing-mcp/code-walkthrough.mddeployment-reference/overview.mddeployment-reference/mongodb-registration.md— register on d402.net after deploymentconform-existing-mcp/production-checklist.md
Last updated