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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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-jmeyer1980-neurodivergent-memory": {
"command": "npx",
"args": [
"-y",
"neurodivergent-memory"
],
"env": {
"NEURODIVERGENT_MEMORY_DIR": "<VALUE>",
"NEURODIVERGENT_MEMORY_MAX": "<VALUE>",
"NEURODIVERGENT_MEMORY_FILE": "<VALUE>",
"NEURODIVERGENT_MEMORY_EVICTION": "<VALUE>",
"NEURODIVERGENT_MEMORY_WIP_LIMIT": "<VALUE>",
"NEURODIVERGENT_MEMORY_LOOP_WINDOW": "<VALUE>",
"NEURODIVERGENT_MEMORY_QUEUE_DEPTH": "<VALUE>",
"NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD": "<VALUE>",
"NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS": "<VALUE>",
"NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE": "<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 |
|---|---|---|
| NEURODIVERGENT_MEMORY_DIR | No | Directory that contains the memories.json snapshot file. Defaults to ~/.neurodivergent-memory. |
| NEURODIVERGENT_MEMORY_MAX | No | Maximum number of memories before eviction. Integer. Default: unlimited. |
| NEURODIVERGENT_MEMORY_FILE | No | Explicit path to the snapshot file. Overrides NEURODIVERGENT_MEMORY_DIR. |
| NEURODIVERGENT_MEMORY_EVICTION | No | Eviction policy when max is reached. One of: lru, access_frequency, district_priority. Default: lru. |
| NEURODIVERGENT_MEMORY_WIP_LIMIT | No | Maximum in-progress practical execution tasks per agent_id. Integer. Set 0 to disable. Default: 1. |
| NEURODIVERGENT_MEMORY_LOOP_WINDOW | No | Number of recent operations for loop detection. Integer. Default: 20. |
| NEURODIVERGENT_MEMORY_QUEUE_DEPTH | No | Maximum pending write operations in the queue. Integer. Default: 50. |
| NEURODIVERGENT_MEMORY_REPEAT_THRESHOLD | No | Token-overlap score threshold for detecting repeated content. Float between 0 and 1. Default: 0.85. |
| NEURODIVERGENT_MEMORY_PING_PONG_THRESHOLD | No | Number of read/write ping-pong transitions before activating cooldown. Integer. Default: 3. |
| NEURODIVERGENT_MEMORY_DISTILL_SUGGEST_THRESHOLD | No | Number of repeated logical_analysis reads of emotional_processing memories before suggesting distillation. Integer. Default: 3. |
| NEURODIVERGENT_MEMORY_CROSS_DISTRICT_COOLDOWN_MS | No | Duration in milliseconds for temporary cross-district write cooldown. Integer. Default: 0 (disabled). |
| NEURODIVERGENT_MEMORY_IMPORT_ALLOW_EXTERNAL_FILE | No | If 'true', allows import_memories to read snapshot files outside the persistence directory. Default: false. |