Help us improve
Share bugs, ideas, or general feedback.
Official plugin marketplace for Cortex
npx claudepluginhub danielblomma/cortexCortex MCP server for repo-scoped semantic context in Claude Code
Share bugs, ideas, or general feedback.
@danielblomma/cortex-mcp is a local, repo-scoped context platform for coding assistants.
It indexes your codebase into structured entities (files, rules, ADRs) and exposes that context over MCP (JSON-RPC over stdio).

claude and/or codex CLI in PATHnpm i -g @danielblomma/cortex-mcp
From the repository you want to index:
cortex init --bootstrap
This will:
.context/, scripts/, mcp/, .githooks/, and docs filesDisable watcher setup:
cortex init --bootstrap --no-watch
Check context status:
cortex status
Claude:
claude mcp list
Codex:
codex mcp list
Install via Claude Code plugin marketplace:
/plugin marketplace add DanielBlomma/cortex
/plugin install cortex@cortex-marketplace
/plugin enable cortex
Then initialize Cortex in your target repository:
cortex init --bootstrap
If auto-registration is unavailable, configure MCP manually.
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"cortex": {
"command": "cortex",
"args": ["mcp"],
"env": {
"CORTEX_PROJECT_ROOT": "/absolute/path/to/your-project"
}
}
}
}
Codex (~/.config/codex/mcp-config.json):
{
"mcpServers": {
"cortex-myproject": {
"command": "cortex",
"args": ["mcp"],
"cwd": "/absolute/path/to/your-project"
}
}
}
context.searchRanked context search across indexed entities.
Input:
query (string, required)top_k (int, 1-20, default 5)include_deprecated (bool, default false)include_content (bool, default false)context.get_relatedFetch entity relationships from the graph.
Input:
entity_id (string, required)depth (int, 1-3, default 1)include_edges (bool, default true)context.get_rulesList indexed rules and optionally include inactive rules.
Input:
scope (string, optional)include_inactive (bool, default false)context.reloadReload the RyuGraph connection after updates/maintenance.
Input:
force (bool, default true)A live TUI that shows what Cortex adds to your repository at a glance.
cortex dashboard

The dashboard displays: