GitHub Brain MCP Server
Summarizes GitHub discussions, issues, and pull requests. Stores GitHub data locally for fast responses and token-efficient Markdown output.
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., "@GitHub Brain MCP Serversummarize this month's discussions"
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.
GitHub Brain is an experimental MCP server for summarizing GitHub discussions, issues, and pull requests. Answer questions like:
What are the contributions of user X in the last month?
Summarize this month's discussions.
https://github.com/user-attachments/assets/80910025-9d58-4367-af00-bf4c51e6ce86
GitHub Brain complements (but does not replace) the official GitHub MCP server. It stores GitHub data in a local database for:
Fast responses
More than the standard 100-item API limit
Token-efficient Markdown output

GitHub Brain is programmed in Markdown.
Installation
npm i -g github-brainRerun to update. sudo may be required on some systems.
Alternatively use npx to run without installing globally and needing sudo.
npx github-brain@latestRelated MCP server: Qdrant RAG MCP Server
Usage
github-brainOr with npx:
npx github-brain@latestLaunches the interactive TUI where you can:
Setup - Configure authentication and settings
Login with GitHub (OAuth) - Recommended for most users
Login with Personal Access Token - For fine-grained tokens or when OAuth is unavailable
Open configuration file - Edit
.envdirectly
Pull - Populate the local database with GitHub data
Re-run pull anytime to update the database with new GitHub data.
The app loads environment variables from a .env file in the GitHub Brain's home directory - ~/.github-brain by default.
GITHUB_TOKEN=your_github_token
ORGANIZATION=my-orgArgument | Description |
| Home directory. Default: |
Use [fine-grained personal access tokens](https://github.com/settings/personal-access-tokens).
**Private organizations:** Token needs read access to discussions, issues, metadata, and pull requests. [Generate token](https://github.com/settings/personal-access-tokens/new?name=github-brain&description=http%3A%2F%2Fgithub.com%2Fwham%2Fgithub-brain&issues=read&pull_requests=read&discussions=read).
**Public organizations:** Any token works (data is publicly accessible).MCP Server
Start the MCP server using the local database:
github-brain mcpOr with npx:
npx github-brain@latest mcpArgument | Variable | Description |
|
| GitHub organization. Required. |
| Home directory. Default: |
MCP Configuration
Claude
Add to the Claude MCP configuration file:
{
"mcpServers": {
"github-brain": {
"type": "stdio",
"command": "github-brain",
"args": ["mcp"]
}
}Or with npx:
{
"mcpServers": {
"github-brain": {
"type": "stdio",
"command": "npx",
"args": ["github-brain@latest", "mcp"]
}
}Merge with existing mcpServers if present.
VS Code
Add to the VS Code MCP configuration file:
{
"servers": {
"github-brain": {
"type": "stdio",
"command": "github-brain",
"args": ["mcp"],
"version": "0.0.1"
}
}
}Or with npx:
{
"servers": {
"github-brain": {
"type": "stdio",
"command": "npx",
"args": ["github-brain@latest", "mcp"],
"version": "0.0.1"
}
}
}Merge with existing servers if present.
Development
scripts/run builds and runs github-brain with the checkout directory as home -m (database in db/, config in .env).
This server cannot be deployed
Maintenance
Related MCP Connectors
Ask any GitHub repository a question. Get source-backed answers.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
A cited wiki of your GitHub repo: search, read pages, find symbols and ask, with line citations.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with GitHub repositories, issues, pull requests, and code search through natural language. Supports self-hosted deployment with built-in analytics and flexible authentication options.34MIT
- FlicenseNot gradedqualityDmaintenanceEnables context-aware semantic search across codebases using Qdrant vector database with intelligent GitHub issue resolution, Projects V2 management, and progressive context retrieval for 95%+ token reduction in AI-assisted development.9-
- FlicenseBqualityDmaintenanceEnables analysis and querying of Git repository content (both public and private) through a unified tool that provides repository summaries, file structures, and full content optimized for LLM consumption.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency analysis.MIT