Memory Layer for Windsurf IDE
Native MCP integration for Windsurf. Drop into your Windsurf config and get persistent memory across all your coding sessions.
Installation
Windsurf supports the Model Context Protocol (MCP) natively. Install the 0Latency MCP server:
npm install -g @0latency/mcp-server
Configuration
Add the MCP server to your Windsurf config file at ~/.windsurf/mcp_config.json:
{
"mcpServers": {
"0latency": {
"command": "npx",
"args": ["-y", "@0latency/mcp-server@latest"],
"env": {
"ZERO_LATENCY_API_KEY": "zl_your_api_key_here"
}
}
}
}
Sign up at 0latency.ai/login to get your API key. Free tier includes 10,000 memories.
Available Tools
Once configured, Windsurf will have access to these memory tools:
memory_add— Store memories from conversationsmemory_recall— Retrieve relevant context instantlymemory_search— Semantic search across all memoriesmemory_list— Browse and paginate stored memoriesmemory_delete— Remove specific memoriesmemory_graph— Explore entity relationshipslist_agents— Manage multiple agent namespaces
Usage Example
Once configured, your Windsurf agent can automatically use memory tools:
You: Remember I'm working on a Next.js 14 project with App Router
Windsurf: [Uses memory_add to store this context]
You: What framework am I using again?
Windsurf: [Uses memory_recall]
You're working on a Next.js 14 project with App Router.
Project-Specific Memory
Memories are automatically scoped to your API key. You can organize them by project using agent IDs or tags within the memory operations.
Troubleshooting
MCP server not loading
Restart Windsurf after modifying mcp_config.json. Verify Node.js and npm are installed and accessible in your PATH.
Authentication errors
Check your API key is valid. Get a new key from your dashboard.
Ready to add memory to Windsurf?
Get your API key and start using persistent memory in 60 seconds.
Get Started Free