> For the complete documentation index, see [llms.txt](https://docs.allmcp.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allmcp.co/documentation/connect/cursor.md).

# Cursor

Connect AllMCP to Cursor for use in AI agent mode.

<a href="/pages/416edc1381c20849bc41111b02e482a722a49b94" class="button primary" data-icon="key">Get your API key</a> <a href="/pages/QJVxDLqxIz5KMCH5afbE" class="button secondary" data-icon="table-cells">Browse providers</a>

***

## Setup

{% stepper %}
{% step %}

#### Locate the config file

Cursor supports both global and project-level MCP config:

| Scope                 | Path                                    |
| --------------------- | --------------------------------------- |
| Global (all projects) | `~/.cursor/mcp.json`                    |
| Project-local         | `.cursor/mcp.json` in your project root |

{% hint style="info" %}
**Project-local config takes precedence over global.**
{% endhint %}
{% endstep %}

{% step %}

#### Add the `allmcp` block

{% code title="mcp.json" %}

```json
{
  "mcpServers": {
    "allmcp": {
      "url": "https://go.allmcp.co/mcp/",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```

{% endcode %}
{% endstep %}

{% step %}

#### Apply the config

Reload the Cursor window:

```
Ctrl+Shift+P → Developer: Reload Window
```

Or close and reopen Cursor.
{% endstep %}

{% step %}

#### Verify it's working

Open the Cursor agent panel (`Ctrl+L` → switch to Agent mode) and type:

```
List available AllMCP integrations
```

{% hint style="success" %}
The agent will return the list of integrations you can connect.
{% endhint %}
{% endstep %}
{% endstepper %}

***

## Per-project scoping

If different projects connect to different users' accounts, use a project-level `.cursor/mcp.json` with a `user_id`:

{% code title=".cursor/mcp.json" %}

```json
{
  "mcpServers": {
    "allmcp": {
      "url": "https://go.allmcp.co/mcp/?user_id=project-owner-uuid",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```

{% endcode %}

{% hint style="warning" icon="lock" %}
**Add `.cursor/mcp.json` to your `.gitignore`** if it contains a personal API key.
{% endhint %}

***

## Next steps

{% content-ref url="/pages/416edc1381c20849bc41111b02e482a722a49b94" %}
[Quickstart](/documentation/quickstart.md)
{% endcontent-ref %}

{% content-ref url="/pages/QJVxDLqxIz5KMCH5afbE" %}
[All Providers](/documentation/providers/providers.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.allmcp.co/documentation/connect/cursor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
