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

# Cursor

> Connect the Cursor editor to your Cognee Cloud tenant via MCP.

[Cursor](https://cursor.com) is an AI-powered code editor with native support for the [Model Context Protocol](https://modelcontextprotocol.io). Register Cognee as an MCP tool provider and Cursor's Agent can `remember`, `recall`, and `forget` against your Cognee Cloud tenant.

## 1. Add Cognee to your MCP config

Cursor reads MCP servers from `~/.cursor/mcp.json`. Add a `cognee` entry that points at your tenant, using your API Base URL and a key from the [API Keys](/cognee-cloud/ui/api-keys) page:

```json theme={null}
{
  "mcpServers": {
    "cognee": {
      "command": "uvx",
      "args": ["cognee-mcp"],
      "env": {
        "COGNEE_BASE_URL": "https://your-tenant.aws.cognee.ai",
        "COGNEE_API_KEY": "your-api-key"
      }
    }
  }
}
```

<Info>
  This is the stdio form the in-product [Integrations](/cognee-cloud/ui/integrations) page generates. Cognee runs via `uvx` (requires [uv](https://docs.astral.sh/uv/)) — no separate install. You can also open the config from **Settings → Tools & MCP → + Add MCP Server**.
</Info>

<Note>
  If you already use other MCP servers in Cursor, merge the `cognee` entry into your existing `mcpServers` block instead of replacing the file.
</Note>

## 2. Verify

In **Settings → Tools & MCP**, restart Cursor (or use the toggle to refresh the connection). You should see Cognee's tools (`remember`, `recall`, `forget`) listed, confirming the server is connected.

## 3. Use it

1. Open the **Chat** panel and make sure **Agent** mode is selected.
2. Issue prompts that use Cognee tools:
   * "Remember this file in Cognee"
   * "Recall authentication logic from Cognee"
   * "What do you know from cognee?"

<Note>
  Prefer a dedicated in-editor memory UI with citations? Cursor is built on VS Code, so the [Cognee VS Code extension](/cognee-cloud/agent-integrations/vscode) also runs in Cursor.
</Note>

***

<CardGroup cols={3}>
  <Card title="Full MCP guide" icon="book" href="/cognee-mcp/integrations/cursor">
    Local and Docker transports, and troubleshooting
  </Card>

  <Card title="Cloud MCP" icon="plug" href="/cognee-cloud/connections/cloud-mcp">
    How MCP clients connect to Cognee Cloud
  </Card>

  <Card title="Sessions" icon="timeline" href="/cognee-cloud/ui/sessions">
    Inspect what Cursor stored in your live Sessions
  </Card>
</CardGroup>
