Integration

Cursor + agimem

Give your Cursor AI agent persistent memory across coding sessions.

Cursor is a powerful AI-first code editor built on VS Code. With agimem, your Cursor agent can remember your project's coding conventions, architecture decisions, tech debt notes, and preferred patterns — so it stops re-asking the same questions every session. Connect agimem as an MCP server and your agent picks up exactly where it left off.

Cursor Agent
Any Cursor MCP-enabled mode

Setup in 4 steps

1

Create a Capsule on agimem

Sign up at agimem.dev and create a Capsule from the dashboard. Each Capsule is an isolated memory space — create one per project or one for all your work.

2

Generate an API key

Click your Capsule and generate an API key. It starts with agm_ — copy it now, you won't see it again.

3

Add the MCP server to Cursor

Open Customize in the Cursor sidebar to manage MCP servers, or create a .cursor/mcp.json file in your project root. Paste the configuration below with your API key.

4

Start using memory

Your Cursor agent now has access to memory_set, memory_get, memory_search, and other tools. Ask it to remember something and verify it persists across sessions.

Fastest way: paste a prompt

Give this prompt to your Cursor agent and it will configure everything automatically:

Agent prompt

Set up agimem as my memory server: https://agimem.dev/setup

Manual configuration

Add this to your Cursor MCP configuration file. You can configure it at the project level (.cursor/mcp.json) or globally (~/.cursor/mcp.json):

.cursor/mcp.json

{
  "mcpServers": {
    "agimem": {
      "url": "https://agimem.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer agm_your_api_key"
      }
    }
  }
}

What your agent can do with agimem

  • Store and recall coding conventions
  • Remember project architecture across sessions
  • Share context between multiple agents
  • Keep research notes and findings persistent
  • Track preferences and writing style
  • Maintain state for long-running automations
  • Organize memories with tags
  • Set time-to-live for temporary data

Frequently asked questions

Project-level or global config?

Use project-level (.cursor/mcp.json) if you want different Capsules per project. Use global (~/.cursor/mcp.json) if you want one shared memory across all your work. If you commit a project-level file, reference an environment variable such as Bearer ${env:AGIMEM_API_KEY} instead of the key itself.

Can multiple team members share the same Capsule in Cursor?

Yes. Create a separate API key for each teammate on the same Capsule, up to the per-Capsule key limit, and all their Cursor agents will read and write to the same memory space. Any one key can be revoked without affecting the others.

How is this different from Cursor rules?

Rules are instructions you write and maintain by hand. agimem gives your agent read-write memory that it can update as your project evolves — and it works across machines, sessions, and other MCP clients.

Ready to get started?

Create a free Capsule and connect Cursor.