Cursor IDE Integration
Add persistent, encrypted memory to Cursor's AI assistant via the Model Context Protocol. Your coding context survives across sessions — securely.
On this page
Overview
Cursor IDE supports MCP servers, allowing its built-in AI assistant to interact with external tools. By connecting Synapse Layer, Cursor's agent gains the ability to store and recall memories across coding sessions — project preferences, architecture decisions, debugging context — all encrypted with AES-256-GCM.
Setup
Cursor supports MCP configuration via a JSON file. Create or edit .cursor/mcp.json in your project root (or the global Cursor config directory):
{
"mcpServers": {
"synapse-layer": {
"command": "uvx",
"args": [
"--from",
"synapse-layer",
"synapse-layer"
]
}
}
}Note
uvx (from the uv package manager). Install uv: curl -LsSf https://astral.sh/uv/install.sh | shAfter saving the config, restart Cursor. The Synapse Layer tools will appear in Cursor's MCP tools panel.
Usage
Once connected, you can ask Cursor's AI to use Synapse Layer naturally:
Next session, different file...
Project vs Global Configuration
| Scope | Config Location | Use Case |
|---|---|---|
| Project | .cursor/mcp.json | Memory scoped to a specific codebase. Commit to version control for team sharing. |
| Global | ~/.cursor/mcp.json | Memory available across all projects. Personal preferences and cross-project context. |
Tip
SYNAPSE_AGENT_ID values per project to keep memory namespaces isolated — or use the same ID for cross-project memory sharing.