Skip to main content
Coding agents such as Claude Code, Cursor, Codex and VS Code write better x402 code when they read current PayAI documentation instead of relying on training data. This page lists the machine-readable sources PayAI publishes and how to connect each one.

Docs MCP server

The docs site runs a Model Context Protocol (MCP) server at https://docs.payai.network/mcp. It uses streamable HTTP and needs no authentication. Your agent gets two tools: search_pay_ai_documentation to search the docs and query_docs_filesystem_pay_ai_documentation to read pages.
The menu at the top of every docs page can also copy the MCP server URL or connect it to Cursor or VS Code.

llms.txt and Markdown pages

  • https://docs.payai.network/llms.txt lists every docs page with a one-line description. The quickstarts and facilitator reference come first.
  • https://docs.payai.network/llms-full.txt contains the full text of the docs in one file, for tools that load a whole corpus.
  • https://payai.network/llms.txt is a short brief for agents: what PayAI is, when to use it, and where to start.
  • Append .md to any docs URL to get the page as Markdown, for example https://docs.payai.network/x402/quickstart.md.

Facilitator MCP server

The PayAI facilitator exposes its API as MCP tools at https://facilitator.payai.network/mcp (streamable HTTP). It is listed in the official MCP registry as network.payai/facilitator.
settle_payment broadcasts a real on-chain transaction and moves funds. It is idempotent per signed payload: resubmitting the same payload returns the recorded outcome.
Connecting needs no authentication. If you set an Authorization header on the connection, the server forwards it to /verify and /settle, so pricing and authentication work the same way as over HTTP. Add it the same way as the docs server. For example, in Claude Code:

Context7

Context7 serves library documentation to coding agents through its own MCP server. PayAI’s docs are indexed under the library ID /websites/payai_network. With the Context7 MCP server installed, name the library in your prompt:

Agent skill

The PayAI x402 skill is a SKILL.md guide for agents that support skills, such as Claude Code, Cursor and Codex. It covers the server quickstarts (Express, Hono, Next.js, FastAPI, Flask, Gin), the clients (Fetch, Axios, httpx, Go), the facilitator endpoints and supported networks. Run this in your project:
Add -g to install it for your user across all projects. The source is at github.com/PayAINetwork/payai-x402-skill.

Need help?

Join our Community

Have questions or want to connect with other developers? Join our Discord server.