# Cortex MCP server

> Provides a bi-temporal knowledge graph and token-budgeted context compiler to give AI coding agents persistent, conflict-aware memory.

- Repository: https://github.com/codesphere-u/cortex-mcp
- Page: https://hostedmcp.org/servers/codesphere-u/cortex-mcp
- Transport: —
- Stars: 1
- License: MIT

## Tools (7)

- `memory_record_episode`
- `memory_upsert_fact`
- `memory_compile_context`
- `memory_query_entity`
- `memory_time_travel`
- `memory_verify_integrity`
- `cortex_audit_contradictions`

## FAQ

### Does Cortex-MCP require external API keys or cloud dependencies?

No, it operates with zero external API keys and zero cloud dependencies, using local-first atomic JSON snapshot persistence.

### How does the context compiler manage token usage?

It uses a hybrid BM25 and 2-hop graph spreading activation to rank facts and packs the highest-utility items into a strict max_tokens budget.

### How is data stored?

Data is stored locally using atomic JSON snapshot persistence in the ~/.cortex-mcp/memory.json file.
