MCP Code Indexer logo

MCP Code Indexer

by Nishant-Chaudhary5338

Indexes TypeScript and React repositories into a queryable code graph for dependency analysis and agent-assisted navigation.

Install MCP Code Indexer

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nishant-chaudhary5338-mcp-code-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "code-graph-indexer"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y code-graph-indexer

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Nishant-Chaudhary5338/mcp-code-indexer MCP server indexes TypeScript, React, and Next.js repositories into a compiler-resolved code graph. It exposes graph inspection, reverse-reference queries, blast-radius analysis, cycle detection, orphan detection, context packs, and semantic search over stdio. The indexer discovers standalone repositories and pnpm, Turbo, or Lerna monorepos, storing incremental snapshots locally. Reach for it when an agent needs structural codebase context instead of repeatedly reading source files.

Use cases

  • Trace which components render a React component
  • Find callers and references before changing a function
  • Assess the blast radius of a code change
  • Detect dependency cycles and orphaned code
  • Search a repository by symbols or local embeddings

Key features

  • Compiler-resolved TypeScript code graph
  • Monorepo and single-package workspace discovery
  • Reverse caller, renderer, and reference queries
  • Blast-radius, cycle, and orphan analysis
  • Local semantic search with lexical fallback
  • stdio MCP interface with 14 tools

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · code-graph-indexer (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads43Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Code Indexer works

What Nishant-Chaudhary5338/mcp-code-indexer MCP server does

Nishant-Chaudhary5338/mcp-code-indexer MCP server turns a TypeScript, React, or Next.js repository into a graph of code entities and relationships. The graph can represent repositories, applications, packages, folders, files, components, functions, and external entities. Relationships include containment, imports, calls, renders, references, and package dependencies.

The server is intended for code navigation and impact analysis. It can answer reverse queries such as which components render a target or which functions call it, locate references, calculate a change blast radius, identify dependency cycles, and find orphaned code. Node records also include metrics such as lines of code and export counts, status information, and Git metadata.

How it works

Analysis uses ts-morph and the TypeScript compiler rather than text-only matching. An edge is retained only when it resolves to an indexed node, which makes the graph conservative about unresolved relationships. Workspace discovery handles both single-package repositories and monorepos using pnpm, Turbo, or Lerna conventions.

The MCP surface runs over stdio and provides 14 tools: index_repo, get_graph, get_node, who_renders, who_calls, find_references, blast_radius, find_cycles, find_orphans, search_nodes, get_context_pack, build_embeddings, semantic_search, and open_explorer. The same engine also supports a CLI, an HTTP and WebSocket service, and a bundled 3D explorer with a chatbot, but those are separate ways to consume the index.

Semantic search uses the local Xenova/all-MiniLM-L6-v2 model through transformers.js.

Setup and configuration

For source development, Nishant-Chaudhary5338/mcp-code-indexer MCP server requires Node 20.19 or newer and pnpm 10. The documented source workflow is:

  • Run pnpm install.
  • Run pnpm build; the build must finish before running the source CLI or server.
  • Add the built MCP entry point to an MCP client using the repository’s documented Node command: node "$(pwd)/tools/code-indexer/build/code-indexer/src/index.js".

The published npm package is named code-graph-indexer. Its documented package-level quickstart uses npx code-graph-indexer ui --root . for the explorer.

Limitations and notes

The analyzer is described for TypeScript, React, and Next.js repositories; the material does not establish support for other languages. Source execution depends on a completed build. Semantic embeddings are local, but they require the model to be installed or available locally; otherwise semantic search falls back to lexical search.

The HTTP service binds to 127.0.0.1 and has unauthenticated, mutating endpoints. It should not be exposed beyond the local host. The MCP interface itself is presented as a stdio server, and no credentials are listed as required.

The graph can become stale when files change unless the repository is reindexed. The separate HTTP/WebSocket runtime includes file watching and live graph patches, while the MCP tool list includes index_repo for indexing through the agent interface.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Code Indexer

For source setup, use Node 20.19 or newer, pnpm 10, `pnpm install`, and `pnpm build`. Then configure the built entry point with `node "$(pwd)/tools/code-indexer/build/code-indexer/src/index.js"`.

Yes.

No API key is required for local semantic search. The embedding model runs locally, with lexical search available when it is not installed.

Its tools query graph data, callers, renderers, references, blast radius, dependency cycles, orphaned code, node names, context packs, and semantic matches.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Code Indexer AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nishant-chaudhary5338-mcp-code-indexer?style=directory)](https://allmcps.com/mcp/nishant-chaudhary5338-mcp-code-indexer)
HTML Embed
<a href="https://allmcps.com/mcp/nishant-chaudhary5338-mcp-code-indexer"><img src="https://allmcps.com/api/badge/nishant-chaudhary5338-mcp-code-indexer?style=directory" alt="MCP Code Indexer on AllMCPs" /></a>