---
title: "Connecting Cursor"
description: "Add Leadform to Cursor as an MCP server by pasting a short snippet into Cursor's settings file."
url: https://help.leadform.io/en/articles/91-connecting-cursor
collection: "AI Assistant (MCP)"
updated: 2026-11-03
language: en
---

# Connecting Cursor

Add Leadform to Cursor as an MCP server by pasting a short snippet into Cursor's settings file.

## Before you start

Create a key (see [Creating an AI assistant key](https://help.leadform.io/en/articles/89-creating-an-ai-assistant-key.md)). Keep Account > AI Access open, with Connect your assistant expanded and Cursor selected: it shows the snippet to paste, with your new key already in it.

## Add the server

1.  In Cursor, open Customize, then MCPs.
    
2.  Click New MCP Server, then Add a Custom MCP Server. Cursor opens its settings file for you (~/.cursor/mcp.json).
    
3.  Paste in the snippet from Leadform and save. It looks like this, with your key in place of lf\_mcp\_your\_key\_here:
    

```json
{
  "mcpServers": {
    "leadform": {
      "url": "https://app.leadform.io/api/mcp",
      "headers": {
        "Authorization": "Bearer lf_mcp_your_key_here"
      }
    }
  }
}
```

Leadform then appears under Connected, with its tools enabled. Ask Cursor to list your Leadform forms to check it works.

## Connecting another computer later

Once you leave the page, the snippet shows lf\_mcp\_your\_key\_here instead of your key, because a key is only shown once. Create a new key for the other computer, and the snippet is filled in again.

## Prefer to watch?

This short video walks through the same steps:
