Skip to main content

Prerequisites

  • Cursor IDE installed (Download)
  • An Affonso API key from your dashboard
  • Cursor version with MCP support

Configuration

Step 1: Open Cursor Settings

  1. Open Cursor
  2. Go to Settings (Cmd/Ctrl + ,)
  3. Navigate to Features > MCP

Step 2: Add MCP Server

Add the following configuration:
Replace sk_live_your_api_key_here with your actual Affonso API key.

Step 3: Restart Cursor

After saving the configuration, restart Cursor to activate the MCP connection.

Verify Setup

In the Cursor chat, try:
Or ask about available tools:

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

  1. Check that the URL is correct: https://api.affonso.io/mcp
  2. Verify your API key is valid
  3. Restart Cursor completely
  1. Check your API key has the required scopes
  2. Verify the key is active in your dashboard
  3. Ensure you’re using the correct environment (live vs dev)
  1. Check your internet connection
  2. Large data requests may take longer
  3. Use filters to reduce response size

Next Steps

All Tools

Explore available MCP tools

Examples

See sample queries and use cases