How to connect the Memory Write MCP Tool to VS Code
Enables long-term fact retention by committing key-value data to a persistent SQLite database. This guide provides the exact configuration required to load the memory_write tool inside VS Code.
Step 1: Open the configuration file
Locate and open your VS Code configuration file at the following path:
macOS / Linux
.vscode/mcp.json (workspace) or settings.jsonWindows
.vscode\mcp.json (workspace) or settings.jsonStep 2: Add the server config
Copy and paste the following JSON snippet into the file. Save the file and restart VS Code.
mcp.json
{
"mcpServers": {
"agenticstore": {
"command": "uvx",
"args": ["agentic-store-mcp", "--tools", "memory_write"]
}
}
}Step 3: Try it out
Once restarted, ask VS Code something like this to trigger the tool:
"Remember that my project root is at /Users/projects/mcp."