LIVE DEMO → Home Product
Features Use Cases Compare Enterprise
Docs
Documentation Quickstart MCP Server Integrations Benchmark
Pricing Blog DASHBOARD → LOG IN →
Tutorial MCP Cursor May 4, 2026 · 7 min read

Persistent Memory for
Cursor IDE — MCP Setup Guide

Cursor is the AI-first code editor used by hundreds of thousands of developers — but every session starts with a blank context window. Add the Kronvex MCP server and Cursor will remember your architectural decisions, recurring bugs, and project conventions across every session, forever.

In this article
  1. Why Cursor forgets between sessions
  2. Prerequisites — get your Kronvex API key
  3. Add the MCP server to Cursor
  4. Verify the connection
  5. What persistent memory unlocks in Cursor
  6. Daily workflow — how to use memory effectively
  7. Tips and troubleshooting

Why Cursor forgets between sessions

Cursor is built on top of Claude, GPT-4o, and other frontier models. It reads your open files, your cursor position, and any context you paste into the chat. But the moment you close the IDE and reopen it the next day — or even start a new Composer session — the slate is wiped clean.

This matters more than it might seem. Consider a typical week of coding:

None of that survives into the next session. You either re-explain it (expensive) or accept that the AI will suggest contradictory patterns (dangerous). Cursor's .cursorrules file helps for static conventions, but it cannot capture dynamic context — the kind that evolves as your project grows and bugs surface.

The Kronvex MCP server solves this by giving Cursor a persistent, semantically searchable memory store. Every decision, every bug fix rationale, every architectural choice can be stored and automatically surfaced when the AI needs it — across sessions, across days, across your entire project history.

What is MCP? The Model Context Protocol (MCP) is an open standard developed by Anthropic that lets AI tools like Cursor connect to external servers for capabilities beyond the base model. MCP servers expose tools and resources the AI can call at inference time — Kronvex's MCP server exposes memory tools (remember, recall, inject-context) that Cursor's AI can invoke automatically during your sessions.

Prerequisites — get your Kronvex API key

Before configuring Cursor, you need two things from Kronvex: an API key and an Agent ID. Both are free and take under 2 minutes to obtain.

1
Go to kronvex.io/dashboard and create a free account (no credit card required).
2
Click New Agent and name it something like cursor-project-name. Copy the Agent ID — it looks like a UUID.
3
From the dashboard sidebar, copy your API key — it starts with kv-.
4
Make sure you have Node.js 18+ installed on your machine. The MCP server is distributed via npm and launched automatically by Cursor via npx.
One agent per project. Create a separate Kronvex agent for each codebase. This scopes the memory so that your React project's conventions don't bleed into your Python API project. You can switch agents by editing the Cursor config — the rest of the setup is identical.

Add the MCP server to Cursor

Cursor's MCP server configuration lives in its settings JSON. There are two ways to reach it: via Cursor Settings → MCP in the GUI, or by directly editing ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project root (project-scoped).

The project-scoped file is recommended — it lets you commit the config to version control (with secrets in environment variables) and share the setup with your team.

~/.cursor/mcp.json — or — .cursor/mcp.json (project root)
{
  "mcpServers": {
    "kronvex-memory": {
      "command": "npx",
      "args": ["-y", "@kronvex/mcp-server"],
      "env": {
        "KRONVEX_API_KEY": "kv-your-api-key",
        "KRONVEX_AGENT_ID": "your-agent-id"
      }
    }
  }
}

Replace kv-your-api-key and your-agent-id with your actual values from the dashboard. The -y flag in the args array tells npx to auto-install the package without prompting — Cursor handles the process lifecycle automatically.

Storing secrets safely. For project-scoped configs you commit to Git, move your credentials to environment variables. Reference them as "KRONVEX_API_KEY": "${KRONVEX_API_KEY}" in the JSON and add your actual key to a .env file that is in your .gitignore. Cursor reads the environment when spawning the MCP process.

After saving the file, restart Cursor. The MCP server will appear as kronvex-memory in Cursor Settings → MCP → Active Servers with a green indicator if the connection is healthy.

Verify the connection

Open Cursor Composer (Cmd/Ctrl + I) and type a quick test prompt:

Test prompt in Cursor Composer
Store a memory: this project uses PostgreSQL with Drizzle ORM.
All queries must use the db instance from lib/db.ts, not direct SQL.

Cursor's AI will call the Kronvex remember tool automatically. You should see a tool call confirmation in the Composer panel. Then try recalling it:

Recall test
What database setup conventions does this project use?

Kronvex will surface the memory you just stored, confirming the full loop works. You can also verify in the Kronvex dashboard — the memory will appear in your agent's memory list with a confidence score and timestamp.

What persistent memory unlocks in Cursor

Once the MCP server is running, Cursor's AI has access to four memory tools at inference time. Here is what each one enables in practice.

Remembering architectural decisions

Any time you make a significant technical choice — a library selection, a schema design, a trade-off between approaches — tell Cursor to store it:

Example — store an architectural decision
Remember: we chose React Query over SWR because we need
optimistic updates on mutations. All data-fetching hooks
should use useQuery / useMutation from @tanstack/react-query.

In future sessions, when you ask Cursor to build a new data-fetching hook, it will recall this decision and use React Query automatically — without you needing to repeat the instruction.

Cross-session bug context

When debugging a complex issue, store the context before you close the IDE:

Example — store bug context
Remember: the websocket reconnection bug (GitHub issue #142)
is caused by the event listener not being cleaned up in the
useEffect return. The fix must call ws.removeEventListener
before ws.close(). Bug is in src/hooks/useWebSocket.ts.

The next day, you can ask "what was that WebSocket bug we were working on?" and Kronvex will recall the full context — file path, root cause, and fix approach — so you can pick up exactly where you left off.

Project conventions enforcement

Store your team's coding conventions as semantic memories:

These conventions are stored once and recalled automatically when Cursor is generating code in the relevant context — no need to re-paste them into every session.

Cross-project knowledge transfer

If you work on multiple projects with shared patterns (authentication flows, CI/CD pipelines, logging setups), you can query memories across agents via the Kronvex API or create a shared "infrastructure agent" whose memories all your projects can access via a single KRONVEX_AGENT_ID.

Daily workflow — how to use memory effectively

The highest-value habit is to treat session end as a memory checkpoint. Before closing Cursor, spend 30 seconds narrating what you worked on and any important decisions made.

End-of-session memory prompt
Store these memories from today's session:
1. Added rate limiting middleware using express-rate-limit.
   Config is in src/middleware/rateLimit.ts. 100 req/15min per IP.
2. Discovered that the email service (Resend) has a 10-second
   timeout. Added retry logic with 3 attempts in src/services/email.ts.
3. Decided NOT to use Redis for session storage — too complex
   for current scale. Using signed JWTs with 7-day expiry.

At the start of the next session, inject context before starting a task:

Start-of-session context injection
What do I need to know about this project's authentication
and rate limiting setup before I add a new API endpoint?

Kronvex will surface the relevant memories and Cursor's AI will have full context before writing a single line of code.

The remember / recall loop

You do not need to explicitly invoke memory tools for every interaction. Once the MCP server is connected, Cursor's AI will automatically:

You can also invoke tools explicitly in plain English — "search my memories for anything about the payment integration" will trigger a semantic search against your stored memories.

Tips and troubleshooting

MCP server not appearing in Cursor

If the kronvex-memory server shows as inactive in Cursor Settings → MCP, check the following:

Memory quality — be specific when storing

Vague memories are hard to recall precisely. "We use TypeScript" will match almost anything. "We use TypeScript strict mode with noUncheckedIndexedAccess: true — all array accesses must be guarded" is a high-quality memory with precise retrieval signal.

Use memory types for better retrieval

The Kronvex API supports three memory types. Cursor's AI will use the default type, but you can specify them explicitly when storing:

GDPR and data residency

All memories are stored in Kronvex's EU infrastructure (Frankfurt, Germany). No data leaves the EU. If you need to delete all memories for a project — for compliance or to start fresh — use the Delete Agent option in the Kronvex dashboard. This permanently removes the agent and all associated memories.

Give Cursor a memory that lasts

Free plan — 500 memories, 3 agents. No credit card required. Your first session with persistent context takes under 5 minutes to set up.

Get your free API key →

Or read the full MCP server documentation

Integration guide
Cursor MCP Memory — Setup Guide
Step-by-step setup · code snippets · 2 min
Read the guide →
Related articles
Free API Key
Get started free
500 memories · 3 agents · No credit card