Using MCP to Read API Docs

Read the P2P.ORG API documentation using our MCP server

The P2P.ORG Model Context Protocol (MCP) server enables AI-powered code editors or tools like Cursor or Claude Code, or AI tools like ChatGPT/Claude/Gemini to interact directly with your P2P.ORG API and documentation.

What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI applications to securely access external data sources and tools. The P2P.ORG MCP server provides AI agents with:

  • Direct API access to P2P.ORG functionality
  • Documentation search capabilities
  • Code generation assistance for P2P.ORG integrations

P2P.ORG MCP Server Setup

P2P.ORG hosts a remote MCP server at https://docs.p2p.org/mcp. Configure your AI development tools to connect to this server. If your APIs require authentication, you can pass in headers via query parameters or however headers are configured in your MCP client.

Add to~/.cursor/mcp.json:

{
  "mcpServers": {
    "p2p-staking": {
      "url": "https://docs.p2p.org/mcp"
    }
  }
}

Testing Your MCP Setup

Once configured, you can test your MCP server connection:

  1. Open your AI editor (Cursor, Windsurf, etc.)
  2. Start a new chat with the AI assistant
  3. Ask about P2P.ORG - try questions like:
    • "How do I [common use case]?"
    • "Show me an example of [API functionality]"
    • "Create a [integration type] using P2P.ORG"

The AI should now have access to your P2P.ORG account data and documentation through the MCP server.