PlugWiki
codesight logo

codesight MCP Server: Setup for Claude, Cursor and Other Apps

CommunityLocal
Getnpmcodesighthouseofmvps/codesight

Lets Claude, Cursor or another assistant ask for a map of your codebase, with routes, database models, env vars and what a change would break.

codesight is a community command line tool by Houseofmvps. Its MCP mode starts with npx and a flag, runs on your computer and reads the project folder you point it at. It does not need an account or key.

Some tools need files made by other codesight commands first. The wiki tools need npx codesight --wiki, and the knowledge tool needs npx codesight --mode knowledge. The README documents Claude Code, Cursor and Codex CLI.

Good for

  • Developers who want the assistant to understand a repo without reading every file
  • Teams on large codebases who want to save tokens per conversation
  • Anyone planning a refactor who needs the list of affected files

Works in

3 supported · 9 should work

Tap an app to see how to set it up and any known problems.

Install codesight MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the codesight MCP server to Claude Code. Run this command:
    
    claude mcp add codesight -- npx codesight --mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

The --mcp flag is required, otherwise codesight runs as a normal command. The README JSON is for Claude Code and Cursor. For Codex, add startup_timeout_sec = 60 to the config.toml entry, as the README advises.

Built from the package data we hold. Not yet tested by us.

Tools

  • Maps the whole project

    Scans a project folder and returns one context map with routes, database models, components, libraries, config, middleware and the dependency graph. It is the largest answer of the set, so use it once at the start. The first call of a session also writes the context map as .codesight/*.md files in the project.

    Try: “Scan this project and tell me how it is laid out.”

    Write · codesight_scan

  • Gives a short project overview

    Returns a compact overview of the project in about 500 tokens, a cheaper first look than a full scan.

    Try: “Give me a short summary of this codebase.”

    Write · codesight_get_summary

  • Lists API routes

    Returns the routes found in the project. You can filter by path prefix, tag such as auth or payment, or HTTP method.

    Try: “List all POST routes under /api/users.”

    Write · codesight_get_routes

  • Lists database models

    Returns models with fields, types, constraints and relations. You can filter by model name.

    Try: “Show the User and Order models with their relations.”

    Write · codesight_get_schema

  • Shows what a change would affect

    Takes one or more files and returns all files, routes, models and middleware that depend on them, down to a depth you set. Use it before an edit.

    Try: “What breaks if I change src/lib/auth.ts?”

    Write · codesight_get_blast_radius

  • Lists environment variables used in code

    Returns env vars found across the code with whether each is required, its default and the file that reads it.

    Try: “Which env vars are required to run this app?”

    Write · codesight_get_env

  • Finds the most imported files

    Returns the files imported most often, which have the biggest blast radius. You can set how many to return.

    Try: “Which 10 files are imported the most?”

    Write · codesight_get_hot_files

  • Forces a fresh scan

    Re-scans the project so later answers reflect your latest changes. Call it after big edits.

    Try: “Refresh the project map, I just refactored the API.”

    Write · codesight_refresh

  • Lists the generated wiki articles

    Returns the wiki catalog with a one-line summary per article. It needs the wiki generated first with npx codesight --wiki.

    Try: “What wiki articles exist for this project?”

    Write · codesight_get_wiki_index

  • Reads one wiki article

    Returns one subsystem article such as auth, database or payments, written in plain narrative form.

    Try: “Read the auth wiki article and explain login.”

    Write · codesight_get_wiki_article

  • Checks the wiki for gaps

    Finds orphan articles, missing cross-links and articles that may be stale.

    Try: “Lint the wiki and list what needs fixing.”

    Write · codesight_lint_wiki

  • Lists background events and queues

    Returns queues, Kafka topics, Redis channels and event emitters found in the code. You can filter by system such as bullmq or celery.

    Try: “What background jobs does this app run?”

    Write · codesight_get_events

Read from the source code

Permissions

medium risk · 3 things to watch

Medium risk

It reads the files in your project folder and returns summaries to the assistant. The MCP code in the repo has no tool that writes or deletes files.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It writes a .codesight folder into the project it scans

    Almost every tool scans the project first, and each scan writes routes.md, schema.md and other map files into .codesight/ inside that folder (or the folder you pass as directory). The server does not delete anything. Add .codesight/ to .gitignore, or commit it on purpose. github.com

  • It reads your whole project folder

    Scans include routes, schemas and env variable names, so the output can show how your system is built. Point it only at projects you are happy to share with your assistant. github.com

  • Some tools need setup commands run first

    The wiki and knowledge tools return nothing useful until you run npx codesight --wiki or npx codesight --mode knowledge. Those commands generate the wiki and knowledge files; the MCP server only reads them. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Sign-in and keysNo credentials are used.
Scopes
  • None. No account or API key.

Questions

Is codesight official?

No. It is made by Houseofmvps, an independent developer, and is not tied to any one assistant or code host.

How do I start the codesight MCP server?

Run it with the --mcp flag, as the install box shows. Without that flag, codesight runs as a normal command line tool.

Does it need an API key?

No. It runs locally and reads your project files. The README says it has zero dependencies.

Which tools need extra setup?

The wiki tools need npx codesight --wiki first, and the knowledge tool needs npx codesight --mode knowledge. The scan and route tools work straight away.

Why does Codex time out on first start?

npx has to download the package on first run, which can take longer than 30 seconds. The README says to set startup_timeout_sec to 60 or install it globally and call codesight directly.

Does it change my files?

It does not edit your source code, but it does write files. Each scan saves context files such as routes.md and schema.md into a .codesight folder inside the project. Only codesight_get_knowledge skips the scan. Add .codesight/ to .gitignore if you do not want them tracked.

Information

updated Nov 2, 2026

Publisher
Community
Package
codesight
Registry
npm
Transport
stdio
Auth
None
License
MIT
Last commit
Jul 27, 2026
Open issues
2

GitHubIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. README.md · github.com
  2. mcp-server.ts · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.