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

# Cursor

> Give Cursor persistent, cross-session memory with Memanto — via the CLI connector or as an MCP server.

# Cursor + Memanto

<img src="https://mintcdn.com/memanto/7cqii5_wGejS32un/logo/integrations/cursor.svg?fit=max&auto=format&n=7cqii5_wGejS32un&q=85&s=60cc73f322350713c6841408a08de02b" alt="Cursor" width="64" style={{marginBottom: "1.5rem"}} data-path="logo/integrations/cursor.svg" />

Connect [Cursor](https://cursor.com) to Memanto so it can store facts, decisions, and preferences and recall them across sessions.

## Connect via CLI (recommended)

```bash theme={null}
memanto connect cursor
```

This installs a Cursor-specific rules file (`.cursor/rules/memanto.mdc`) and the `memanto-memory` skill into your project. Add `--global` to install to `~/.cursor/` for every project:

```bash theme={null}
memanto connect cursor --global
```

## Connect via MCP

Cursor is an MCP client, so you can alternatively register Memanto as an MCP server. Edit `~/.cursor/mcp.json` (per-user) or `.cursor/mcp.json` (per-project):

```json theme={null}
{
  "mcpServers": {
    "memanto": {
      "command": "memanto-mcp",
      "env": {
        "MOORCHEH_API_KEY": "mch_xxxxxxxxxxxxxxxxxx",
        "MEMANTO_DEFAULT_AGENT_ID": "cursor-workspace"
      }
    }
  }
}
```

Reload Cursor and confirm `memanto` shows up with **7 tools**. See the [MCP integration guide](/integrations/mcp) for the full server reference.

## Next Steps

* [CLI: connect command](/cli/connect/connect)
* [MCP Integration](/integrations/mcp)
* [Memory Types Reference](/reference/memory-types)
