Project Brain MCP
Allows scanning and querying code from GitHub repositories, providing tools like scan_repo_structure, identify_key_files, explain_auth_flow, and ask_codebase to analyze and understand codebases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Project Brain MCP Scan repo structure of https://github.com/org/project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ Project Brain MCP
An MCP server that reads any codebase and explains it using AI. Point it at any github repo url / local project folder and ask questions in plain language.
π§ Tools
Tool | What it does |
| Scans the folder tree + explains the project architecture |
| Finds the most important files for a new developer to read |
| Reads auth-related files and explains login, tokens, and permissions |
| Answer any question grounded in the actual code |
Related MCP server: reference-mcp
π οΈ Setup
1. Install dependencies
npm install2. Set your API key
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEY3. Build
npm run build4. Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"project-brain": {
"command": "node",
"args": ["/absolute/path/to/project-brain-mcp/build/index.js"],
"env": {
"GEMINI_API_KEY": "sk-ant-your-key-here"
}
}
}
}Restart Claude Desktop. The 4 tools will appear automatically.
π Example prompts
Scan the structure of https://github.com/username/repo-name
What are the key files I should read in this repo?
Explain the auth flow in /Users/me/projects/my-api
How does payment processing work in /Users/me/projects/my-shop?π₯οΈ Development
npm run dev # watch mode (recompiles on save)
npm run build # production buildAvailable Tools
4 toolsask_codebaseAsk About CodebaseA
Ask any question about a codebase and get an answer grounded in the actual code. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) β no cloning needed.
Inputs: question (required), repo_path (required), max_files.
explain_auth_flowExplain Authentication FlowA
Finds all auth-related files and explains login flow, tokens, sessions, and permissions. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) β no cloning needed.
Inputs: repo_path (required).
identify_key_filesIdentify Key FilesA
Identifies the most important files a developer must read first. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) β no cloning needed.
Inputs: repo_path (required), focus.
scan_repo_structureScan Repository StructureB
Scans a project and explains the tech stack and architecture. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) β no cloning needed.
Inputs: repo_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool targets a distinct aspect of codebase understanding: structure/stack, key files, auth flow, and free-form Q&A. The main overlap is that explain_auth_flow is effectively a specialized subset of ask_codebase, and ask_codebase could be used for architecture questions that scan_repo_structure handles, but the descriptions give enough guidance to choose correctly.
All four tools follow a consistent verb_noun snake_case pattern (scan_repo_structure, identify_key_files, explain_auth_flow, ask_codebase). No mixed conventions or vague standalone verbs.
Four tools is slightly on the lean side but each has a clear role in a focused codebase-comprehension server. No redundant or filler tools, though the surface is small enough that some users may want additional operations.
The set covers the core workflow of orienting in an unfamiliar codebase: overall structure, entry-point files, a common deep-dive (auth), and arbitrary Q&A that fills most remaining gaps. Minor gaps like dependency graphs, file search, or change-impact analysis exist but ask_codebase can largely work around them.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseCqualityDmaintenanceAn MCP server that analyzes local or remote GitHub repositories, providing intelligent code context and structure to AI coding assistants.1013MIT
- AlicenseAqualityDmaintenanceAn MCP server that helps AI agents comprehend a codebase by providing tools for navigating, searching, and understanding code structure and history.10MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that indexes your codebase and provides AI assistants with deep context including file tree, full-text search, git history, dependencies, and stack detection, all without sending your code to third parties.10 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives LLMs structured, read-only insight into local code repositories β directory tree, languages, dependencies, scripts, and config files.MIT