Skip to content
MCP server
Registry

Local Codebase Indexer MCP Server

Trace SQL Server tables to C# callers and Razor pages locally; MCP server and CLI.

Local Codebase Indexer scores 63 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sfy257000MITPython0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sfy257000-local-codebase-indexer": {      "command": "uvx",      "args": [        "local-codebase-indexer"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Local Codebase Indexer

English | 繁體中文 | 简体中文

Which C# code and pages reach this SQL Server table?

Trace tables and stored procedures to repositories, controller actions, and Razor pages in a local source tree. Use the CLI yourself or give your AI assistant the same evidence through MCP. Especially useful when maintaining C# / SQL Server applications with Dapper, ADO.NET, or Entity Framework.

A 32-second walkthrough tracing SQL Server access to C# and a Razor page

Case study and raw results · CLI reference · PyPI · MIT license

How it compares with Claude's Grep and similar tools

Measured on our MES fixtures: +9.5–13.1 percentage points in relevant-file recall versus rg + BM25. For the bundled SQL → C# → page investigation, the relation report covers 5/5 required evidence files, versus 3/5 from one literal table-name search (+40 points).

Fixed retrieval suiterg + BM25 file Recall@5This projectDifference
MES-style synthetic: 42 questions, 24 files81.0%94.0%+13.1 pp
Same 42 questions with distractors: 109 files81.0%90.5%+9.5 pp
Python stdlib: 12 questions, 85 real source files100.0%79.2%−20.8 pp

Recall is averaged over 54 project-authored questions (96 executions including the noisy rerun). The indexer returns 5 chunks; rg + BM25 returns 5 files, and both are scored by file. This is a fixed-fixture comparison, not a complete Claude agent benchmark.

The richer relation report is slower than a single literal search: 228.5 ms versus 18.8 ms on the bundled scenario (three-run medians). Controller reachability is probable, not runtime proof. Protocol · Raw results · Per-query records.

The extra value is an indexed SQL → C# → page relation report. For supported patterns, one data-access query returns direct/procedure-mediated access, controller actions, page links, and confidence labels. Claude can also follow these links through multiple Grep searches and file reads; this tool packages that investigation into a repeatable CLI/MCP result.

Tool / workflowStrong fitTrade-off and where this project helps
Claude + Grep / ripgrepExact identifiers, strings, and regex; no index setupKeep it for direct text checks. This project's SQL/call/page relations go beyond the literal table-name matches.
Serena with LSP / JetBrainsBackend-driven symbols, references, and editing/refactoringPrefer compiler/IDE semantics for accurate renames and overloads. This project provides a focused SQL maintenance report without a language-server backend.
Claude ContextNatural-language hybrid BM25 + dense-vector retrievalIts documented setup uses an embedding provider and Milvus/Zilliz configuration; local providers are supported. This project's default needs no embedding API or vector server, but identifier-oriented hashing can miss paraphrases.
Local Codebase IndexerSQL Server table/procedure → C# accessors → actions/pages; schema and Git impactApproximate static analysis with visible confidence; no Roslyn overload resolution or semantic rename.

The controller and Razor page in the demo contain no literal table name; the relation report reaches them through the stored procedure and C# calls. All 4 built-in relationship checks pass. See source evidence and upstream feature references.

Try it in three steps

Python 3.10+. Run these in a virtual environment; no SQL Server, .NET runtime, model download, or API key is needed for the demo.

1. Install

python -m pip install --upgrade local-codebase-indexer

If Python reports an externally managed environment, create and activate a virtual environment first. See the reference for isolated installation alternatives.

2. Run the bundled example

local-codebase-indexer demo

This creates a temporary synthetic source tree, indexes it, and checks four expected relationships. It does not index your current directory. The animation uses this command's actual output, with reading pauses added. An excerpt:

table Sales_OrderHeader
  WRITTEN BY (2)
    [confirmed] procedure dbo.usp_ApproveOrder
    [confirmed] method Shop.Data.OrderRepository.Approve ... via usp_ApproveOrder
  READ BY (1)
    [confirmed] method Shop.Data.OrderRepository.Get
  USED BY PROGRAMS (1)
    [probable] Orders ... (Approve, Details)
        pages: Views/Orders/Details.cshtml
Verified 4/4 expected relationships: PASS

Use local-codebase-indexer demo --output demo-orders to keep a copy in a new or empty folder, or demo --json for the complete report.

3. Point it at your source tree

local-codebase-indexer --root "/path/to/project" data-access YourTable

Replace the path and table name. The first query builds the index; subsequent queries refresh it incrementally. SQL definitions must be present in source files for procedure bodies to be analyzed. There is no connection to a live database.

Give the same evidence to your assistant

After installation, choose your client to create project-local MCP configuration:

local-codebase-indexer --root "/absolute/path/to/project" init --client claude
local-codebase-indexer --root "/absolute/path/to/project" init --client codex

Ask: “Which code writes YourTable, and which controller actions and pages reach it? Show paths and confidence levels.” Restart/reconnect the MCP client if needed. For other stdio MCP clients, use command local-codebase-indexer and arguments --root, your absolute project path, serve.

Codex / Copilot can use the CLI. AGENTS.md contains assistant instructions. The reference also covers the Claude Code plugin, seven MCP tools, ONNX models, aliases, and configuration.

More maintenance questions

local-codebase-indexer --root "/path/to/project" relations OrderRepository.Approve --direction upstream
local-codebase-indexer --root "/path/to/project" impact main...HEAD
local-codebase-indexer --root "/path/to/project" search "order approval" --explain --limit 5
local-codebase-indexer --root "/path/to/project" doctor
local-codebase-indexer --root "/path/to/project" report dbo.YourTable --output table-impact.html

Relations show callers; impact compares Git snapshots; search combines identifiers, text, and local embeddings. C#, Python, JavaScript, and TypeScript have symbol parsing; T-SQL and C# have additional data-access analysis. Add --json for structured output.

What to verify

  • This is static analysis, with confidence labels. Interface dispatch can be probable; name-only candidates and dynamic SQL require source verification. There is no Roslyn overload resolution or runtime execution proof.
  • The default hashing embedder is best at identifiers and related terms. Natural-language paraphrases can miss results. Benchmarks and the case study explain what was measured; four demo checks do not establish general accuracy or time savings.
  • The index is local at <project>/.ai_context/indexer.db. Indexing needs no remote service after dependencies are installed. Your MCP client's model provider controls where returned context is sent.
  • Start with a table or procedure that you know. If files are missing, run doctor --path path/to/file.cs; check .gitignore and .ai_context/ignore. See known limitations and planned work.

Found a wrong edge or missing result? Open a reproducible issue. Contributions are welcome. Licensed under MIT.

SQL / Unicode / VB6 support and upgrade notes

Frequently asked questions

What is Local Codebase Indexer MCP Server?

Trace SQL Server tables to C# callers and Razor pages locally; MCP server and CLI.

How do I install Local Codebase Indexer MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Local Codebase Indexer MCP Server runs locally from the PyPI package local-codebase-indexer with the command uvx local-codebase-indexer.

Is Local Codebase Indexer MCP Server free and open source?

Yes. Local Codebase Indexer MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Local Codebase Indexer MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Local Codebase Indexer MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Local Codebase Indexer MCP Server's trust score calculated?

Local Codebase Indexer MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server