Get persistent memory working with Continue in VS Code or JetBrains IDEs.
- Continue extension installed (VS Code or JetBrains)
- Python 3.10+
- pipx installed (
pip install --user pipx && pipx ensurepath)
pipx install memorygraphMCPVerify installation:
memorygraph --versionContinue supports MCP configuration in multiple formats.
Option A: YAML Configuration (Recommended)
Create .continue/config.yaml in your home directory or project:
mcpServers:
- name: memorygraph
command: memorygraph
args: []Option B: JSON Configuration
Create .continue/config.json:
{
"mcpServers": [
{
"name": "memorygraph",
"command": "memorygraph",
"args": []
}
]
}Option C: Copy from Other Clients
Continue can use JSON configs from Claude Code, Cursor, or Cline. Copy your existing mcp.json to .continue/mcpServers/memorygraph.json:
{
"command": "memorygraph",
"args": []
}MCP servers only work in Continue's Agent mode:
- Open Continue sidebar
- Look for the mode selector
- Switch to Agent mode (not Chat or Edit)
Reload your IDE or restart the Continue extension to load MCP servers.
In Continue (Agent mode), type:
@MCP What memory tools are available?
Or simply ask:
What tools do you have for storing memories?
Store a memory:
Store this for later: Always run tests before committing in this repo
Retrieve it:
What should I do before committing code?
mcpServers:
- name: memorygraph
command: memorygraph
args:
- "--profile"
- "extended"mcpServers:
- name: memorygraph
command: memorygraph
env:
MEMORY_SQLITE_PATH: "/path/to/memory.db"mcpServers:
- name: memorygraph
command: /Users/yourname/.local/bin/memorygraph
args: []Find your path: which memorygraph
Create .continue/config.yaml in your project root:
mcpServers:
- name: memorygraph
command: memorygraph
env:
MEMORY_SQLITE_PATH: "./.continue/memory.db"Continue looks for configuration in this order:
- Project:
.continue/config.yamlin workspace - User:
~/.continue/config.yaml - MCP Servers Directory:
~/.continue/mcpServers/*.json
- Verify Agent mode - MCP only works in Agent mode, not Chat or Edit
- Check configuration syntax - YAML is indent-sensitive
- Reload Continue - Use the reload button or restart IDE
-
Test memorygraph directly:
memorygraph --version
-
Check PATH:
which memorygraph
-
Use full path in configuration if needed
- VS Code: View > Output > Select "Continue" from dropdown
- JetBrains: View > Tool Windows > Continue > Logs tab
"Command not found"
# Use full path instead
mcpServers:
- name: memorygraph
command: /Users/yourname/.local/bin/memorygraph"Connection refused"
- Ensure no other process is using the server
- Check if memorygraph is installed correctly
"MCP protocol error"
- Update Continue to latest version
- Verify memorygraph version:
memorygraph --version
- Use
@MCPmention to explicitly invoke MCP tools - Agent mode is key - Regular chat doesn't have MCP access
- Combine with Continue's context - Use
@fileand@folderwith memory - Share configs - Continue configs work across VS Code and JetBrains
Add this to .continuerules or your Continue config for automatic memory usage:
## Memory Protocol
### REQUIRED: Before Starting Work
You MUST use `recall_memories` before any task. Query by project, tech, or task type.
### REQUIRED: Automatic Storage Triggers
Store memories on ANY of:
- **Git commit** → what was fixed/added
- **Bug fix** → problem + solution
- **Version release** → summarize changes
- **Architecture decision** → choice + rationale
- **Pattern discovered** → reusable approach
### Timing Mode (default: on-commit)
`memory_mode: immediate | on-commit | session-end`
### Memory Fields
- **Type**: solution | problem | code_pattern | fix | error | workflow
- **Title**: Specific, searchable (not generic)
- **Content**: Accomplishment, decisions, patterns
- **Tags**: project, tech, category (REQUIRED)
- **Importance**: 0.8+ critical, 0.5-0.7 standard, 0.3-0.4 minor
- **Relationships**: Link related memories when they exist
Do NOT wait to be asked. Memory storage is automatic.File locations:
- Project-specific:
.continuerulesin project root - User-level:
~/.continue/config.yamlundersystemMessage
Continue's MCP integration works well for:
- Storing code patterns you discover during reviews
- Remembering debugging solutions across projects
- Tracking API behaviors and quirks
- Building project knowledge over time
For JetBrains IDEs (IntelliJ, PyCharm, WebStorm, etc.):
- Install Continue plugin from JetBrains Marketplace
- Configuration is the same as VS Code
- Config location:
~/.continue/config.yaml - Access via Tools > Continue or the sidebar
Works with: Continue.dev (VS Code and JetBrains) Transport: stdio Profiles: core (9 tools), extended (11 tools) Config formats: YAML, JSON