GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
제작자가 쓴 설명(영어 원문)
Cited, searchable memory of a codebase: hybrid search, git history, impact analysis, doc drift.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
GITHUB_TOKEN, CODEBASE_BRAIN_HOME비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"codebase-brain": {
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add codebase-brain --env GITHUB_TOKEN=your-value --env CODEBASE_BRAIN_HOME=your-value -- uvx codebase-brain-mcp실행하기 전에 빈 값을 채워 주세요.
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"codebase-brain": {
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"codebase-brain": {
"type": "stdio",
"command": "uvx",
"args": [
"codebase-brain-mcp"
],
"env": {
"GITHUB_TOKEN": "your-value",
"CODEBASE_BRAIN_HOME": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
CODEBASE_BRAIN_HOME env이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 Nomannazir 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
입력해야 할 값: GITHUB_TOKEN
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.1.0)은 오늘 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
같은 카테고리에는: GitHub, Desktop Commander, Cloudflare MCP
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
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
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
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:
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요