# NeuroDock Cognitive Graph

Local typed-edge graph that holds persistent memory about projects, team members, and decisions. Runs inside SQLite with zero external network traffic.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 17
- Author: tlennon-ie
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/tlennon-ie/neurodock/tree/HEAD/packages/mcp-cognitive-graph
- Updated: 2026-09-21
- HTML: https://affpapa.org/en/nevibecode/mcp/neurodock-cognitive-graph

## What it does

The server provides persistent memory for coding assistants, preventing lost context during task switches. It tracks entities and relationships locally in `~/.neurodock/cognitive-graph.sqlite`. You can point it elsewhere by exporting the `NEURODOCK_GRAPH_DB_PATH` environment variable.

Release v0.0.3 exposes four tools: `recall_entity`, `record_fact`, `recall_decisions`, and `weekly_rollup`. Relationship edges must strictly follow a closed set of eight predicates, such as `depends_on`, `blocked_by`, and `decided_in`. Passing an unrecognised predicate immediately fails with `PREDICATE_NOT_IN_VOCABULARY`.

Embeddings and vector recall are deferred to subsequent releases. The process operates entirely offline, avoids telemetry, and never makes HTTP requests to fetch referenced sources.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add neurodock-mcp-cognitive-graph -- uvx neurodock-mcp-cognitive-graph
```
uvx runs the command named after the package; if the README names another one, use uvx --from neurodock-mcp-cognitive-graph <command>

### Codex

**Platform CLI**
```bash
codex mcp add mcp-cognitive-graph -- uvx neurodock-mcp-cognitive-graph
```
uvx runs the command named after the package; if the README names another one, use uvx --from neurodock-mcp-cognitive-graph <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-cognitive-graph": {
            "command": "uvx",
            "args": [
                "neurodock-mcp-cognitive-graph"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from neurodock-mcp-cognitive-graph <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-cognitive-graph": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "neurodock-mcp-cognitive-graph"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from neurodock-mcp-cognitive-graph <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-cognitive-graph uvx neurodock-mcp-cognitive-graph
```
uvx runs the command named after the package; if the README names another one, use uvx --from neurodock-mcp-cognitive-graph <command>

## When to use it
- persist project context and entity relations across work sessions
- log architectural decisions tied to a specific initiative
- inspect immediate dependencies and blockers for an active component
- assemble a seven-day activity rollup without making extra model calls

## Example prompts
- Remember that Auth depends on Redis and belongs to Core
- Recall all recorded decisions for the Gateway project
- Generate a weekly rollup report for the trailing seven days

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

From the same set: [tlennon-ie/neurodock](https://affpapa.org/en/nevibecode/by/tlennon-ie/neurodock.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
