> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadlex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Cursor

> Add LeadLex to Cursor through its MCP configuration.

Add LeadLex to `~/.cursor/mcp.json` for all projects, or to `.cursor/mcp.json` inside a single project.

## OAuth

```json theme={null}
{
  "mcpServers": {
    "leadlex": {
      "url": "https://mcp.leadlex.com/mcp"
    }
  }
}
```

Cursor starts the sign-in the first time it needs the server. Approve the LeadLex consent screen in your browser.

## API key

```json theme={null}
{
  "mcpServers": {
    "leadlex": {
      "url": "https://mcp.leadlex.com/mcp",
      "headers": {
        "X-API-Key": "wbk_your_api_key"
      }
    }
  }
}
```

> [!WARNING]
>
> Do not commit a project `.cursor/mcp.json` that contains a real API key. Keep keys in your user-level config or in an environment variable.

Create a key under **Settings** then **API & Integrations** in the LeadLex dashboard. See [Authentication](https://docs.leadlex.com/mcp-server/authentication.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.