This MCP server extends context window and memory for agents, allowing them to store and recall important information during coding sessions. It's particularly useful when working on large features or during extended coding sessions where maintaining context is crucial.
Install dependencies and start the server with:
npm install
npm start
You can configure the server through environment variables in a .env file:
# Path to SQLite database file
DB_PATH=./data/context.db
PORT=3000
# Use HTTP SSE or Stdio
USE_HTTP_SSE=true
# Logging Configuration: debug, info, warn, error
LOG_LEVEL=info
To connect the server with your agent, add the following configuration to your MCP setup:
"mcpServers": {
"simple-memory": {
"url": "http://localhost:3000/sse",
"trust": false
}
}
The server provides several tools organized into categories:
The semantic search functionality allows finding information based on meaning rather than exact matches:
The semantic search feature utilizes Python dependencies that should be automatically installed when starting the server. It uses the multilingual E5 large instruct model from Hugging Face for embeddings.
This server is especially valuable during extended coding sessions where maintaining context between interactions is important for productivity and consistency.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "simple-memory-extension" '{"command":"npm","args":["start"],"cwd":"${workspaceFolder}"}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"simple-memory-extension": {
"command": "npm",
"args": [
"start"
],
"cwd": "${workspaceFolder}"
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"simple-memory-extension": {
"command": "npm",
"args": [
"start"
],
"cwd": "${workspaceFolder}"
}
}
}
3. Restart Claude Desktop for the changes to take effect