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
Cursor Composer
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 mcp_ — copy it now, you won't see it again.

3

Add the MCP server to Cursor

Open Cursor Settings → 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

Read the instructions at https://agimem.dev/setup and follow them to configure the memory MCP server for this project.

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 mcp_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.

Can multiple team members share the same Capsule in Cursor?

Yes. Share the same API key with your team and all Cursor agents will read and write to the same memory space. Great for shared conventions and architecture docs.

How is this different from Cursor's built-in memory?

Cursor's rules and .cursorrules files are static text. agimem gives your agent dynamic, read-write memory that it can update as your project evolves — and it works across machines and sessions.

Ready to get started?

Create a free Capsule and connect Cursor in under a minute.