GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Descripción del creador (original en inglés)
Cited, searchable memory of a codebase: hybrid search, git history, impact analysis, doc drift.
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
GITHUB_TOKEN, CODEBASE_BRAIN_HOMELos valores marcados como secretos son llaves de tu cuenta. Nunca los compartas ni los pegues en un chat.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json
{
"mcpServers": {
"codebase-brain": {
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}Ejecuta esto en tu terminal
claude mcp add codebase-brain --env GITHUB_TOKEN=your-value --env CODEBASE_BRAIN_HOME=your-value -- uvx codebase-brain-mcpCompleta los valores vacíos antes de ejecutarlo.
Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"codebase-brain": {
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"codebase-brain": {
"type": "stdio",
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
CODEBASE_BRAIN_HOME envEsta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub Nomannazir, dueña del repo
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Este se ejecuta en tu computadora; no hay endpoint en internet
Se ejecuta en tu computadora y usa ajustes locales en su lugar
Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
Debes completar: GITHUB_TOKEN
Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).
El repo de GitHub cambió por última vez –, y la última versión (0.2.0) llegó al registro hoy.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Python (uv) en tu computadora.
En la misma categoría: GitHub, Desktop Commander, Cloudflare MCP
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
An MCP server that gives AI assistants a cited, searchable memory of a codebase, including its history. Point it at a local folder or a public git URL. Claude, Cursor or any MCP client can then answer questions about the code with exact path:start-end citations.
*Claude Code asks why TimestampSigner.unsign looks the way it does, what breaks if it changes, and whether its docs are current. Codebase Brain answers with commits, callers, tests and doc findings, all cited. (Waiting time sped up.)*
AI coding assistants are good at writing new code but struggle to understand code that already exists:
A plug-in for any AI assistant that turns a codebase into something it can actually look things up in:
calculate_invoice_total) or describe it in plain words ("how are invoices totalled?").TimestampSigner.unsign) and exact lines, so citations point at real code.camelCase / snake_case identifier splitting) plus local embeddings, merged with reciprocal-rank fusion. Exact names and fuzzy questions both work.fastembed, ONNX). No API keys, and no code leaves your computer.explain_history follows a function's lines back through git (git log -L), shows who wrote the current lines, and links the pull requests behind each change. So agents can answer *"why is it built this way?"*, not just *"what does it do?"*.impact_of_change lists everything that uses a function, directly and transitively, plus the tests that exercise it, before an agent changes anything.find_doc_drift checks Markdown and reStructuredText docs against the code. It finds files, functions, settings and flags that don't exist; examples passing parameters a function doesn't take; imports that would fail; and sections last edited long before the code they describe changed. Each finding cites the doc section and suggests a fix ("Was it renamed to checkout_total?").| Tool | What it does | |
|---|---|---|
index_repo(source, name?) | Index a local path or an https:// git URL (shallow clone). Reports progress. | |
ask_codebase(question, repo?, k?) | The most relevant code and docs as cited sources, plus related commits, with instructions to answer only from them. | |
search(query, repo?, k?, path_prefix?, kinds?) | Raw hybrid search, filterable by path and chunk kind. | |
| `explain_history(symbol? \ | path, start_line?, end_line?, repo?)` | Every commit that changed a function or line range, newest first, with the relevant diff, current authorship, and PR titles and descriptions (GitHub). |
search_history(query, repo?, k?) | Find commits by what their messages say. | |
impact_of_change(symbol, path?, depth?, repo?) | Direct and indirect users of a function or class, and the tests involved. | |
find_doc_drift(path_prefix?, check_history?, repo?) | Documentation that no longer matches the code, by severity (high, medium, low). | |
read_lines(path, start, end, repo?) | Open the exact lines behind a citation. Refuses paths outside the repo. | |
list_repos() | What's indexed, at which commit, and in which languages. |
Also included: the resource brain://repos, and the prompt answer_with_citations.
Codebase Brain runs on your own machine, so there's no server or account, and it's free. With uv:
# Claude Code
claude mcp add codebase-brain -- uvx codebase-brain-mcp
{ "command": "uvx", "args": ["codebase-brain-mcp"] }
uv sync
uv run codebase-brain index https://github.com/pallets/itsdangerous uv run codebase-brain search "how is the signature timestamp checked for expiry"
0.0313 src/itsdangerous/timed.py:72-158 method TimestampSigner.unsign 0.0311 docs/timed.rst:1-28 code 0.0301 src/itsdangerous/timed.py:170-228 class TimedSerializer
Ask why it looks like that. explain_history(symbol="TimestampSigner.unsign") returns its line-by-line history:
src/itsdangerous/timed.py:72-158
3edfbbbc 2022-03-24 handle OverflowError in timed unsign on 32-bit systems 177196d3 2022-03-09 catch OSError on Windows 37f09970 2022-03-08 catching year overflow ValueError c30678d1 2019-05-31 don't allow timestamps from the future 910a7a94 2020-04-17 datetimes are timezone-aware utc ...
claude mcp add codebase-brain -- uv run --directory /path/to/codebase-brain-mcp codebase-brain
export CODEBASE_BRAIN_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
uv run codebase-brain serve --transport streamable-http --host 0.0.0.0 --port 8765
Clients connect to http:// :8765/mcp with Authorization: Bearer . GET /healthz is open for load balancers. Remote mode is locked down by default:
https:// git URLs can be indexed, not local paths, unless you set CODEBASE_BRAIN_ALLOW_LOCAL_PATHS=1.CODEBASE_BRAIN_MAX_FILES (default 20,000), and every git command has a timeout.CODEBASE_BRAIN_ALLOWED_HOSTS.docker build -t codebase-brain-mcp .
docker run -p 8765:8765 -e CODEBASE_BRAIN_TOKEN="$CODEBASE_BRAIN_TOKEN" -v brain-data:/data codebase-brain-mcp
The image runs as a non-root user and includes the embedding model, so it starts fast and needs no download at runtime. It has a health check, and keeps indexes in the /data volume. Indexing uses about 1.2 GB of memory, so give the container 2 GB.
| Variable | Default | |
|---|---|---|
CODEBASE_BRAIN_HOME | ~/.codebase-brain | Indexes and clones |
CODEBASE_BRAIN_EMBEDDER | fastembed | hash gives an offline, deterministic embedder (used in tests) |
CODEBASE_BRAIN_EMBED_MODEL | BAAI/bge-small-en-v1.5 | Any fastembed text model |
CODEBASE_BRAIN_MAX_FILE_BYTES | 512000 | Larger files are skipped |
GITHUB_TOKEN | unset | Optional. Raises GitHub's API rate limit for PR lookups |
CODEBASE_BRAIN_FETCH_PRS | 1 | Set to 0 to never call the GitHub API |
CODEBASE_BRAIN_TOKEN | unset | Bearer token for HTTP mode (required unless bound to localhost) |
CODEBASE_BRAIN_ALLOWED_HOSTS | unset | Comma-separated Host values to accept (DNS-rebinding protection) |
CODEBASE_BRAIN_ALLOW_LOCAL_PATHS | 1 (stdio) / 0 (HTTP) | Whether index_repo may read local directories |
CODEBASE_BRAIN_MAX_FILES | 20000 | Refuse repos with more indexable files |
PORT | 8765 | HTTP port (platforms such as Cloud Run set this) |
On a well-maintained project (itsdangerous), find_doc_drift reports no false alarms. It only reports three "worth a look" sections whose docs date from 2020 while the code they describe changed in 2024–2025. On docs with planted mistakes, it catches every one: a moved file, a renamed function (with the right suggestion), an unknown setting and flag, a keyword argument the function doesn't take, and an import that would fail. Changelogs are skipped, because they're supposed to mention removed things.
Does search actually put the right code in front of the model? codebase-brain eval answers that with a benchmark. The benchmark has 32 questions about pallets/itsdangerous, pinned to commit 672971d, each with the code or docs a good answer must come from. The questions are in evals/datasets/itsdangerous.toml. They were written by reading the code before any results were measured, and haven't been changed since.
| Mode | Hit@1 | Hit@3 | Hit@5 | Hit@10 | MRR@10 (95% CI) | nDCG@10 | p50 latency |
|---|---|---|---|---|---|---|---|
| hybrid (default) | 56% | 88% | 88% | 91% | 0.697 (0.56–0.82) | 0.735 | 5 ms |
| keyword only (BM25) | 56% | 75% | 78% | 84% | 0.667 (0.52–0.80) | 0.699 | <1 ms |
| vector only (bge-small) | 56% | 72% | 75% | 94% | 0.658 (0.51–0.80) | 0.701 | 4 ms |
| Hit@5 by question type | describes behaviour (14) | about the docs (7) | names the code (11) |
|---|---|---|---|
| hybrid | 71% | 100% | 100% |
| keyword only | 64% | 71% | 100% |
| vector only | 57% | 71% | 100% |
What this shows:
Solo se muestra el principio; lee el resto en el repo