Back to Documentation
⌨️
Cursor
Add persistent AI memory to Cursor IDE via MCP. Your coding context survives across sessions.
1
Get your API Key
Sign in to your Synapse Forge account and generate a Connect Token from the dashboard.
2
Install the SDK
pip install synapse-layer3
Configure Cursor
Add this to your .cursor/mcp.json:
{
"mcpServers": {
"synapse-secure-memory": {
"command": "python",
"args": ["path/to/server.py"],
"env": {
"SYNAPSE_AGENT_ID": "cursor-ide",
"SYNAPSE_API_KEY": "sk_connect_YOUR_KEY_HERE",
"SYNAPSE_BASE_URL": "https://forge.synapselayer.org",
"SYNAPSE_PRIVACY_EPSILON": "0.5"
}
}
}
}Replace sk_connect_YOUR_KEY_HERE with your actual API key from Step 1.
4
Verify Connection
Once configured, your agent can use store_memory and recall_memory tools. Try storing a test memory:
"Remember that the test connection from Cursor was successful."