Cursor Integration

Connect distribute to Cursor IDE and launch campaigns from your code editor.

Setup

Add the following configuration to your .cursor/mcp.json file. You can add it to your project folder for project-specific config, or to ~/.cursor/mcp.json for global access.

{
  "mcpServers": {
    "mcpfactory": {
      "url": "https://mcp.distribute.you/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Replace YOUR_API_KEY with your distribute API key from your dashboard.

Restart Cursor after saving the configuration.

Test Your Connection

In Cursor's AI chat, ask:

"Check my MCPFactory connection status"

Cursor will call the mcpfactory_status tool and confirm your setup.

Available Tools

ToolDescription
mcpfactory_statusCheck connection and configuration
mcpfactory_create_campaignLaunch a cold email campaign
mcpfactory_list_campaignsList all your campaigns
mcpfactory_stop_campaignStop a running campaign
mcpfactory_resume_campaignResume a stopped campaign
mcpfactory_campaign_statsGet campaign performance metrics
mcpfactory_list_brandsList all your brands
mcpfactory_suggest_icpSuggest ideal customer profile for a brand URL

Example Prompts

Launch a Campaign

"Launch a cold email campaign for mybrand.com
targeting CTOs at SaaS companies with 50-200 employees.
Budget: $10/day max. Run for 5 days as a trial."

Check Campaign Status

"What's the status of my sales campaign? 
How many emails sent, opened, and replied?"

Pause/Resume Campaign

"Pause my sales outreach campaign"

"Resume the campaign"

Advanced: Cursor Skills

For more advanced usage, you can also install distribute as a Cursor Skill which provides additional context and guidance to the AI.

Troubleshooting

MCP not found

  • Ensure the mcp.json file is in the correct location
  • Restart Cursor after making changes
  • Check JSON syntax is valid

Authorization errors

Next Steps