# Project Brain Mcp

> This is a MCP server which scan your given repo url of github / local project folder and explains you how the codebase works, understand you the architecture of the project, what actually the project does, identify the key files.

- **Type:** MCP server
- **Install:** `agentstack add mcp-avilashsaha035-project-brain-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [avilashsaha035](https://agentstack.voostack.com/s/avilashsaha035)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [avilashsaha035](https://github.com/avilashsaha035)
- **Source:** https://github.com/avilashsaha035/project-brain-mcp

## Install

```sh
agentstack add mcp-avilashsaha035-project-brain-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 🧠 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 |
|---|---|
| `scan_repo_structure` | Scans the folder tree + explains the project architecture |
| `identify_key_files` | Finds the most important files for a new developer to read |
| `explain_auth_flow` | Reads auth-related files and explains login, tokens, and permissions |
| `ask_codebase` | Answer any question grounded in the actual code |

## 🛠️ Setup

### 1. Install dependencies

```bash
npm install
```

### 2. Set your API key

```bash
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEY
```

### 3. Build

```bash
npm run build
```

### 4. Add to Claude Desktop

Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "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

```bash
npm run dev   # watch mode (recompiles on save)
npm run build # production build
```

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [avilashsaha035](https://github.com/avilashsaha035)
- **Source:** [avilashsaha035/project-brain-mcp](https://github.com/avilashsaha035/project-brain-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-avilashsaha035-project-brain-mcp
- Seller: https://agentstack.voostack.com/s/avilashsaha035
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
