Skip to main content
Connect the LeadMagic MCP server to your AI assistant in minutes. You’ll need your API key from app.leadmagic.io/settings/api.
The LeadMagic MCP server uses Streamable HTTP transport (MCP 2025 spec) at https://mcp.leadmagic.io/mcp. Your API key is passed via the x-leadmagic-key header on every request and is never stored server-side.

Prerequisites

1

Get your API key

Sign up or log in at app.leadmagic.io and copy your API key from Settings > API.
2

Choose your client

Follow the instructions for your AI assistant below.

Client Setup

Cursor

Add the LeadMagic server to your Cursor MCP configuration.File: .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "leadmagic": {
      "url": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      }
    }
  }
}
1

Create or edit the config file

Open .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for all projects).
2

Paste the config above

Replace YOUR_API_KEY with your LeadMagic API key.
3

Restart Cursor

Restart Cursor for the MCP server to be detected.
Use project-level config (.cursor/mcp.json) to keep the key scoped. Use global config (~/.cursor/mcp.json) if you want LeadMagic available in every project.

More Clients

The LeadMagic MCP server works with any client that supports Streamable HTTP transport. Here are setup instructions for 8 additional clients.
Zed uses mcp-remote to connect to remote HTTP servers with custom headers.File: ~/.config/zed/settings.json
{
  "context_servers": {
    "leadmagic": {
      "source": "custom",
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.leadmagic.io/mcp",
        "--header",
        "x-leadmagic-key:YOUR_API_KEY"
      ]
    }
  }
}
Or use Agent Panel > Settings > Add Custom Server and paste the command.
Requires Node.js 18+ for npx. Check the green indicator dot in the Agent Panel to confirm the server is active.
File: cline_mcp_settings.json (in VS Code extension storage)Open the MCP Servers icon in Cline, then click Configure.
{
  "mcpServers": {
    "leadmagic": {
      "url": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      },
      "disabled": false
    }
  }
}
File: .roo/mcp.json (project) or ~/.roo/mcp_settings.json (global)
{
  "mcpServers": {
    "leadmagic": {
      "url": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      },
      "disabled": false
    }
  }
}
Project-level config (.roo/mcp.json) takes precedence over global.
File: opencode.json (project) or ~/.config/opencode/config.json (global)
{
  "mcp": {
    "leadmagic": {
      "type": "remote",
      "url": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      },
      "enabled": true
    }
  }
}
Option 1 — CLI command:
gemini mcp add --transport http leadmagic https://mcp.leadmagic.io/mcp
Then edit ~/.gemini/settings.json to add the header:Option 2 — Edit settings directly:File: ~/.gemini/settings.json
{
  "mcpServers": {
    "leadmagic": {
      "httpUrl": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      }
    }
  }
}
Gemini CLI uses httpUrl (not url) for Streamable HTTP servers.
IntelliJ IDEA, WebStorm, PyCharm, and other JetBrains IDEs (2025.1+) support MCP via the AI Assistant.
  1. Go to Settings > AI Assistant > MCP
  2. Click + to add a new server
  3. Select HTTP transport
  4. Enter the URL: https://mcp.leadmagic.io/mcp
  5. Add header: x-leadmagic-key = YOUR_API_KEY
  6. Restart the IDE
File: .amazonq/default.json (project) or ~/.aws/amazonq/default.json (global)
  1. Open the Q Developer Chat panel
  2. Click the tools icon to open MCP configuration
  3. Click + and select the scope (global or local)
  4. Select http as the transport protocol
  5. Enter the URL: https://mcp.leadmagic.io/mcp
  6. Add header: x-leadmagic-key = YOUR_API_KEY
  7. Save and configure tool permissions
Configure MCP for the GitHub Copilot coding agent at the repository level.
  1. Go to your GitHub repo Settings > Copilot > Coding agent
  2. Add the MCP configuration:
{
  "mcpServers": {
    "leadmagic": {
      "type": "http",
      "url": "https://mcp.leadmagic.io/mcp",
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      },
      "tools": ["*"]
    }
  }
}
Copilot coding agent does not support OAuth authentication or MCP resources/prompts — only tools. All 16 LeadMagic tools will work.
Any MCP-compatible client that supports Streamable HTTP transport will work with LeadMagic. If your client isn’t listed here, use the server URL https://mcp.leadmagic.io/mcp with the x-leadmagic-key header.

Verify the Connection

After setup, test the connection by asking your AI assistant:
“Check my LeadMagic credit balance”
If the server is connected, the AI will call the check_credits tool and return your balance. This tool is free and confirms that authentication is working.

Next Steps