# RepoBrain MCP server

> Lets an AI client ask grounded questions about a repository and get answers with file paths and line numbers.

- Repository: https://github.com/study8677/repobrain
- Page: https://hostedmcp.org/servers/study8677/repobrain
- Transport: —
- Stars: 1362
- License: MIT

## FAQ

### What does RepoBrain do?

It builds a knowledge base of your repository and routes questions to module agents so answers are grounded in real source code with file paths and line numbers.

### Which IDEs and AI clients does RepoBrain support?

It works with Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, VS Code with Copilot, Cline, Aider, and other hosts that can run commands or call MCP tools.

### Does RepoBrain need an API key?

Not necessarily — a logged-in headless CLI can serve as the model backend, or you can use an OpenAI-compatible API.

### How do I refresh the knowledge base?

Run rb-refresh, which builds the first knowledge base, updates affected groups after committed changes, or resumes an interrupted task; use --full to regenerate everything.

### Where is the knowledge stored?

Project knowledge is kept in a .repobrain/ folder inside your repository and shared across supported IDEs and agents.
