Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-potatohoney-p-weasley-deepmind": {
"command": "npx",
"args": [
"-y",
"weasley-deepmind"
],
"env": {
"DATABASE_URL": "<YOUR_VALUE>",
"WEASLEY_DEEPMIND_AUTO_MIGRATE": "true",
"EMBEDDING_API_KEY": "<YOUR_VALUE>",
"LLM_PRIMARY": "<VALUE>",
"LLM_FALLBACKS": "<VALUE>",
"MEMORY_CONFIG": "<VALUE>",
"ENABLE_OPENAPI": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MEMENTO_STORAGE": "pgvector",
"PGVECTOR_SCHEMA": "<VALUE>",
"TOOL_PERMISSIONS": "<VALUE>",
"TRUST_PROXY_HOPS": "0",
"MCP_STRICT_ORIGIN": "<VALUE>",
"EMBEDDING_PROVIDER": "<VALUE>",
"MEMENTO_ACCESS_KEY": "<VALUE>",
"ADMIN_ALLOWED_ORIGINS": "<VALUE>",
"OAUTH_TRUSTED_ORIGINS": "<VALUE>",
"ENABLE_RECONSOLIDATION": "<VALUE>",
"MEMENTO_REMEMBER_ATOMIC": "<VALUE>",
"MEMENTO_MORPHEME_TOKENIZER": "local",
"ENABLE_SPREADING_ACTIVATION": "<VALUE>",
"OAUTH_ALLOWED_REDIRECT_URIS": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| DATABASE_URL secret | Yes | PostgreSQL connection string with pgvector extension (e.g., postgresql://user:pass@host:5432/dbname). |
| WEASLEY_DEEPMIND_AUTO_MIGRATE | No | Apply pending database migrations before starting the stdio server. Default: true |
| EMBEDDING_API_KEY secret | No | Optional embedding provider API key for semantic recall. |
| LLM_PRIMARY | No | Primary LLM provider for quality evaluation and auto-reflect. |
| LLM_FALLBACKS | No | Comma-separated list of fallback LLM providers for quality evaluation and auto-reflect. |
| MEMORY_CONFIG | No | JSON configuration string for memory settings. |
| ENABLE_OPENAPI | No | Set to 'true' to enable the OpenAPI endpoint at /openapi.json. |
| ALLOWED_ORIGINS | No | Comma-separated list of allowed origins for browser-based MCP clients. If not set, all origins are allowed. |
| MEMENTO_STORAGE | No | Storage adapter type. Default is 'pgvector'. 'sqlite' is a stub and not implemented. Default: pgvector |
| PGVECTOR_SCHEMA | No | Schema for pgvector. Usually not needed as it is auto-detected. |
| TOOL_PERMISSIONS | No | JSON map of tool permissions for RBAC. Tools not listed are denied by default. |
| TRUST_PROXY_HOPS | No | Number of trusted reverse proxy hops. Default: 0 |
| MCP_STRICT_ORIGIN | No | Set to 'true' to enforce strict origin checking for MCP connections. |
| EMBEDDING_PROVIDER | No | Embedding provider. Set to 'transformers' to use local embeddings without OpenAI API. |
| MEMENTO_ACCESS_KEY | No | API access key for authentication. If not set, authentication is disabled. Must be set when exposing externally. |
| ADMIN_ALLOWED_ORIGINS | No | Comma-separated list of allowed origins for the Admin UI. If not set, all origins are allowed. |
| OAUTH_TRUSTED_ORIGINS | No | Comma-separated list of origins for automatic OAuth consent. |
| ENABLE_RECONSOLIDATION | No | Set to 'true' to enable real-time reconsolidation of fragment links based on tool feedback. |
| MEMENTO_REMEMBER_ATOMIC | No | Set to 'true' to make remember operations atomic (quota check + INSERT in a single transaction). |
| MEMENTO_MORPHEME_TOKENIZER | No | Morpheme tokenizer to use. Default: local |
| ENABLE_SPREADING_ACTIVATION | No | Set to 'true' to enable spreading activation for context-based recall boosting. |
| OAUTH_ALLOWED_REDIRECT_URIS | No | Comma-separated list of allowed redirect URIs for OAuth. |