Skip to content

MCP

The Rebuy Model Context Protocol (MCP) server enables AI-powered code editors like Cursor and Windsurf, plus general-purpose tools like Claude Desktop, to interact directly with your Rebuy 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 Rebuy MCP server provides AI agents with:

  • Direct API access to Rebuy functionality
  • Documentation search capabilities
  • Real-time data from your Rebuy account
  • Code generation assistance for Rebuy integrations

Rebuy MCP Server Setup

Rebuy hosts a remote MCP server at `/reference/mcp.md 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:

```json
{
  "mcpServers": {
    "rebuy": {
      "url": "/reference/mcp.md"
    }
  }
}
```

</Tab>

Add to ~/.codeium/windsurf/mcp_config.json:

```json
{
  "mcpServers": {
    "rebuy": {
      "url": "/reference/mcp.md"
    }
  }
}
```

Add to claude_desktop_config.json:

```json
{
  "mcpServers": {
    "rebuy": {
      "url": "/reference/mcp.md"
    }
  }
}
```

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 Rebuy - try questions like:
  4. "How do I [common use case]?"
  5. "Show me an example of [API functionality]"
  6. "Create a [integration type] using Rebuy"

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