Documentation Index
Fetch the complete documentation index at: https://docs.affonso.io/llms.txt
Use this file to discover all available pages before exploring further.
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants like Claude, Cursor, and others to interact directly with external services. With Affonso’s MCP integration, you can manage your affiliate program using natural language commands.MCP allows AI assistants to read and modify your affiliate data in real-time, making it perfect for quick queries, bulk operations, and automation workflows.
Why Use MCP?
Natural Language
Ask questions like “Show me my top 5 affiliates by revenue” or “Create a new affiliate for john@example.com”
Real-Time Data
Get instant access to your affiliate data without switching between tools
Bulk Operations
Perform complex operations across multiple affiliates, referrals, or commissions
AI-Powered Analysis
Let AI analyze your affiliate performance and provide insights
Available Tools
Affonso MCP provides 18 tools across 4 domains:| Domain | Tools | Description |
|---|---|---|
| Affiliates | 5 | List, get, create, update, delete affiliates |
| Referrals | 5 | Track clicks, leads, and conversions |
| Commissions | 5 | Manage commission transactions |
| Payouts | 3 | Process and track affiliate payouts |
How It Works
- You ask your AI assistant a question about your affiliates
- The AI calls the appropriate Affonso MCP tool
- Affonso authenticates and executes the request
- Results are returned in a readable format
MCP Endpoint
Authentication
Affonso MCP supports two authentication methods:OAuth 2.1 (Recommended for AI Apps)
When you addhttps://api.affonso.io/mcp in Claude, ChatGPT, or another AI app, the OAuth flow starts automatically:
- You’re redirected to log in with your Affonso account
- Select your team (if you have multiple)
- Approve the requested permissions
- Done — the AI app is connected
API Key (For IDEs & Custom Clients)
For clients like Cursor, Claude Desktop (local config), or custom integrations, you can authenticate with an API key:- Production:
sk_live_+ 32 characters - Development:
sk_dev_+ 32 characters
Response Formats
All MCP tools support two response formats:| Format | Best For |
|---|---|
| Markdown (default) | Human-readable output with formatting |
| JSON | Programmatic processing and detailed data |
responseFormat parameter on any tool.
Next Steps
Claude Setup
Connect via Claude.ai or Claude Desktop
ChatGPT Setup
Connect via ChatGPT
Cursor Setup
Set up MCP in Cursor IDE
Other Clients
Any MCP-compatible client
View All Tools
Explore available MCP tools
Example Queries
See sample prompts and use cases
