# hypermnesia-mcp-viz [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/cdeust/cortex-viz  
**GitHub Stars:** 7  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hypermnesia-mcp-viz

## Description
Read-only visualization for Cortex memory, knowledge, sessions, traces, and codebase graphs.

## Tools
Capabilities this server exposes over MCP:

- **open_visualization** — Open the bundled Cortex visualization in the user's default browser — a force-directed neural graph combining methodology profiles, memory nodes, and the knowledge graph, plus the Wiki, Atlas, Emotion, Board, Pipeline, and Knowledge views. Starts the local HTTP server on 127.0.0.1:3458 if not already running and auto-shuts-down after 10 minutes of idle. Use this for visual exploration, screenshots, or presenting Cortex state. Distinct from `get_methodology_graph` (returns JSON for a CUSTOM client, no browser launched, no auxiliary views) and `list_domains` (text overview, no graph). Side effects: spawns an HTTP server process and opens a browser tab. The CALL itself returns in ~200 ms (server warmup + browser launch); the GRAPH build is lazy — kicked when the page polls /api/graph/progress (i.e. when the user opens the Graph view). First paint of the skeleton lands in ~1 s; the full graph fills in behind it and depends on the DB size (seconds for typical, ~1-3 min on a 100k+ memory store). Works WITHOUT Cortex too: when its PostgreSQL is unreachable (or CORTEX_VIZ_NO_DB=1 / --no-db is set) the server starts in no-DB mode — the Trace view is fully live from ~/.claude session logs + git, and the five DB-backed views (Graph, Brain, Knowledge, Wiki, Board) appear greyed out with an install pointer instead of erroring. Returns {url, message, dev_source, bootstrap, layout}.
- **get_methodology_graph** — Build the methodology map as JSON graph data {nodes, edges, meta} suitable for force-directed visualization. Nodes: domains, concepts, memories, entities. Edges: cross-domain bridges, co-activation strengths, semantic relationships. Output is capped (200 nodes / 500 edges, highest-quality first) so the payload stays embeddable in a single MCP response. Use this to feed a CUSTOM client visualizer. Distinct from `open_visualization` (launches the bundled browser UI on 127.0.0.1:3458, no JSON returned), `list_domains` (text-only domain overview), and `get_causal_chain` (entity-graph BFS, not the unified methodology map). Read-only on profiles.json + memories. Latency <100ms. Returns {nodes, edges, meta, truncated_nodes?, truncated_edges?}.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "hypermnesia-mcp-viz": {
    "command": "uvx",
    "args": ["hypermnesia-mcp-viz"]
  }
}
```

## Documentation

## What hypermnesia-mcp-viz does

hypermnesia-mcp-viz is a read-only visualization layer for Cortex and related local development data. It presents six browser-based views: Graph, Brain, Trace, Knowledge, Wiki, and Board. These views cover Cortex memory and knowledge, Claude Code sessions, execution activity, repository history, and code structure. The default landing view is Trace.

The visualizer does not write memories. It can write derived graph and layout caches to the Cortex database, but its role is to render and inspect information rather than add to the memory store.

## How it works

The `open_visualization` MCP tool starts a local HTTP server on `127.0.0.1:3458` when needed and opens the bundled interface in the user's default browser. The tool returns quickly with connection and bootstrap information; graph construction happens lazily when the Graph view requests progress. The server shuts down after 10 minutes without activity.

The browser interface reads from the Cortex PostgreSQL store, local Claude Code session JSONL files under `~/.claude/projects/*.jsonl`, local git data, and the code graph. With Cortex and PostgreSQL available, the five database-backed views can display the corresponding project data. Without a reachable database, Trace remains available and the other database-backed views are disabled with an installation pointer.

## Setup and configuration

Python 3.11 or newer is required. Claude Code users can install the plugin through the Cortex marketplace:

```bash
claude plugin marketplace add cdeust/Cortex
claude plugin install hypermnesia-mcp-viz@cortex-plugins
```

The standalone package can also be run from a source checkout:

```bash
git clone https://github.com/cdeust/cortex-viz.git
cd cortex-viz
pip install -e .
DATABASE_URL=postgresql://127.0.0.1:5432/cortex python3 -m cortex_viz
```

Set `DATABASE_URL` to the same PostgreSQL address used by Cortex. To bypass the database probe and run only the non-database functionality, set `CORTEX_VIZ_NO_DB=1`, or pass `--no-db` to the standalone process. Claude Code users launch the interface with `/cortex-visualize`. Other MCP hosts can run the package as a plain stdio process.

## Tools and capabilities

- `open_visualization` launches the browser UI and exposes six reading angles over Cortex, session, git, and code data.
- `get_methodology_graph` returns `{nodes, edges, meta}` JSON for a custom force-directed visualizer.
- Methodology graph nodes include domains, concepts, memories, and entities.
- Graph edges represent cross-domain bridges, co-activation strength, and semantic relationships.
- The JSON graph is limited to 200 nodes and 500 edges, with higher-quality items retained first.
- The Trace view links sessions, prompts, actions, files, diffs, and commit history.

## Limitations and notes

`open_visualization` has side effects: it starts a local HTTP process and opens a browser tab. `get_methodology_graph` does neither and is intended for clients that render their own interface. The methodology graph reads profiles and memories and is capped for embedding in one MCP response.

Database-backed views require Cortex's PostgreSQL store. No-DB mode provides Trace from local Claude Code logs and git, while Graph, Brain, Knowledge, Wiki, and Board remain unavailable until Cortex is installed and reachable. Large memory stores can take substantially longer to populate the browser graph; a 100k-plus memory store may take roughly one to three minutes.

_Full upstream README: https://allmcps.com/mcp/hypermnesia-mcp-viz/readme_

