Prerequisites
- Cursor IDE installed (Download)
- An Affonso API key from your dashboard
- Cursor version with MCP support
Configuration
Step 1: Open Cursor Settings
- Open Cursor
- Go to Settings (Cmd/Ctrl + ,)
- Navigate to Features > MCP
Step 2: Add MCP Server
Add the following configuration:Step 3: Restart Cursor
After saving the configuration, restart Cursor to activate the MCP connection.Verify Setup
In the Cursor chat, try:Configuration File Location
Alternatively, you can edit the Cursor configuration file directly:Using MCP in Cursor
In Chat
Use the@affonso mention to interact with your affiliate data:
In Composer
When writing code, Cursor can use Affonso data to help you:Local Development
For development with a local Affonso API:Troubleshooting
MCP not connecting
MCP not connecting
- Check that the URL is correct:
https://api.affonso.io/mcp - Verify your API key is valid
- Restart Cursor completely
Permission denied errors
Permission denied errors
- Check your API key has the required scopes
- Verify the key is active in your dashboard
- Ensure you’re using the correct environment (live vs dev)
Slow responses
Slow responses
- Check your internet connection
- Large data requests may take longer
- Use filters to reduce response size
