# rushikeshmore/CodeCortex [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/rushikeshmore/CodeCortex  
**GitHub Stars:** 10  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rushikeshmore-codecortex

## Description
Persistent codebase knowledge layer for AI coding agents. Pre-digests codebases into structured knowledge (symbols, dependency graphs, co-change patterns, architectural decisions) via tree-sitter native parsing (28 languages) and serves via MCP. 14 tools, 85% token reduction. Works with Claude Code, Cursor, Codex, and any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **get_project_overview** — Architecture, modules, risk map. Call this first.
- **get_dependency_graph** — Import/export graph filtered by module or file.
- **lookup_symbol** — Precise symbol lookup with kind and file path filters.
- **get_change_coupling** — Files that must change together. Hidden dependencies flagged.
- **get_edit_briefing** — Pre-edit risk: co-change warnings, hidden deps, bug history. **Always call before editing.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/rushikeshmore/CodeCortex), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g codecortex-ai --legacy-peer-deps
```

2. Configure:

```sh
codecortex init
```

3. Add to Claude Code:

```sh
claude mcp add codecortex -- codecortex serve
```

## Documentation

## What rushikeshmore/CodeCortex MCP server does

rushikeshmore/CodeCortex builds a persistent knowledge layer for a local codebase before an AI coding session begins. Its generated data covers project structure, modules, entry points, symbols, imports, calls, Git-based co-change patterns, hotspots, bug history, architectural decisions, coding patterns, and session changes.

The project stores this information in `.codecortex/` as files such as `graph.json`, `symbols.json`, `temporal.json`, module documentation, and risk summaries. It can also write an inline knowledge section to files such as `CLAUDE.md`, `.cursorrules`, and `.windsurfrules`, when those files are present.

## How it works

Structural extraction uses native tree-sitter parsing, while semantic analysis uses the host LLM. Git history supplies temporal information such as files that repeatedly change together despite having no direct imports.

Run `codecortex init` to discover the project, extract symbols, and analyze history. `codecortex update` refreshes changed files and affected modules. Git hooks can run updates automatically after commits. The server adapts response detail to project size and caps each MCP tool response at 10,000 characters.

## Tools and capabilities

The MCP interface provides five tools:

- `get_project_overview` returns architecture, modules, and a risk map.
- `get_dependency_graph` returns import and export relationships, with module or file filters.
- `lookup_symbol` searches the symbol index with kind and file path filters.
- `get_change_coupling` identifies files that commonly change together and flags hidden dependencies.
- `get_edit_briefing` summarizes co-change warnings, hidden dependencies, and bug history before an edit.

Three MCP resources expose project overview, hotspots, and module documentation. Two prompts, `start_session` and `before_editing`, provide session context and file-specific editing risk information.

## Setup and configuration

rushikeshmore/CodeCortex requires Node 20 or Node 22; Node 24 is not supported because of tree-sitter native binding compatibility. Install the package globally with `npm install -g codecortex-ai --legacy-peer-deps`, move into the target project, and run `codecortex init`.

Start the stdio MCP server with `codecortex serve`. Claude Code can register it with `claude mcp add codecortex -- codecortex serve`. Cursor uses a `.cursor/mcp.json` entry with `command` set to `codecortex`, `args` set to `["serve"]`, and `cwd` set to the project directory. Run `codecortex inject` to regenerate inline context.

## Limitations and notes

The server depends on a local prebuilt knowledge store, so projects must be initialized before the MCP tools can provide project-specific results. Node 24 is explicitly unsupported. The README identifies the transport as stdio and does not describe environment variables or remote deployment configuration. The current README documents five MCP tools, despite broader listing text referring to a larger tool count.

_Full upstream README: https://allmcps.com/mcp/rushikeshmore-codecortex/readme_

