
GitHub MCP Server
io.github.sumiratiPublished by GitHub account sumirativ2.2.0Updated Oct 31, 2026
Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.
Overview
Local MCP server that gives an assistant GitHub REST API access through 5 exposed tools backed by 83 discoverable actions across 13 domains.
- What you can do
- Discover and run GitHub operations: search actions by domain, then execute any of 83 actions with validated input.
- Read repositories and code: repository metadata, file contents with outlines and line ranges, branches, commits and diffs.
- Work with pull requests and issues: list, inspect diffs and reviews, create, update, comment, merge, manage labels and milestones.
- Manage repository settings: collaborators and permissions, Actions variables and secret metadata, webhooks, topics, gists, releases and tags.
- Inspect CI/CD and security: workflows, runs, job logs, artifacts, commit statuses and Dependabot alerts.
- When to use it
- Useful when an assistant should work with GitHub repositories directly from chat, such as reviewing pull requests, reading code, triaging issues, checking CI failures or making small commits without cloning locally. The hybrid 5-tool surface keeps context usage low for agents that only need occasional GitHub operations.
- Requirements
- Runs locally via npx or a global npm install, so Node.js is needed. Requires a GitHub personal access token in GITHUB_PERSONAL_ACCESS_TOKEN (GITHUB_TOKEN is accepted as an alternative). Optional settings: GITHUB_API_URL for GitHub Enterprise, GITHUB_READ_ONLY, GITHUB_EXPOSE_ALL_TOOLS and MCP_OUTPUT_FORMAT. Network access to the GitHub API.
Installation
In SourceWeft
- Open GitHub MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
GitHub MCP Server (@sumirati/mcp-github)
A modern, 2026 AI-native Model Context Protocol (MCP) server for GitHub REST API, engineered for autonomous AI agents and developer workflows.
[npm version] [License: MIT] [GitHub]
What makes v2 Unique: The 2026 5-Tool Hybrid Standard
In early MCP servers, exposing 50–100+ eager tool definitions flooded every LLM turn with thousands of redundant schema tokens ("System Prompt Tax") and degraded reasoning coherence.
@sumirati/mcp-github solves this with a 5-Tool Hybrid Surface:
- Glama TDQS Coherence Tier A (5/5): By exposing exactly 5 tools to the client, the server sits in the ideal 3–15 tool coherence sweet spot.
- Ultra-Lean System Prompt Tax: Drops schema overhead from 23,112 tokens (92,447 B) down to 1,125 tokens (4,498 B) (95.1% reduction), preserving context windows and maximizing LLM prompt-cache hits.
- Zero-Hop Hourly Drivers: The 3 operations developers and agents use constantly (
get_file_contents,get_repository,get_commit) remain eager tools for instant zero-hop execution. - 100% Platform Access on Demand: The entire platform surface of 83 actions across 13 domains is accessible on-demand via dynamic action discovery (
github_find_actions$\rightarrow$github_execute_action), delivering 91%–99% token savings with default high-density Markdown tables and summaries (format: "markdown" | "json"). - Resilient Fallback: If an agent directly invokes any catalog action name (e.g.
list_pull_requests), the server dynamically executes it with full input validation and projection.
Core Capabilities Across 13 Domains
- Repositories & Branch Governance (
repositories, 12 actions): Full repository lifecycle, branch management, branch protection rules (get_branch_protection), file reading (auto Base64-decoded, symbol outlines, line slicing), single-file commits, and forks. - Commits & Commit Statuses (
commits, 6 actions): Commit history, token-capped commit diffs (get_commit), atomic multi-file commits via Git Trees API (create_commit,push_files), and commit status checks. - Pull Requests & Code Reviews (
pull-requests, 11 actions): PR lifecycle (create,update,merge), review comments, inline diff reviews, and unified diff inspection with lockfile filtering. - Issues & Labels (
issues, 8 actions): Issue tracking, upstream indexed filtering, conversation comments, and label management. - Project Milestones (
milestones, 4 actions): Milestone creation, progress tracking, and deadline management. - Collaborators & Permissions (
collaborators, 4 actions): Audit and manage repository collaborators and permission levels. - Actions Variables & Secrets (
variables, 6 actions): Manage repository Actions configuration variables and inspect secret metadata. - Gists & Code Snippets (
gists, 5 actions): Full gist lifecycle for sharing multi-file code snippets and configurations. - GitHub Actions & CI/CD (
actions, 10 actions): Workflow inspection, workflow runs, job step breakdown, build artifacts (list_workflow_run_artifacts,get_workflow_run_artifact), smart failure log extraction (get_job_logs), run cancel/rerun, and manual workflow dispatch. - Releases & Git Tags (
releases, 5 actions): Release publishing, lightweight/annotated tag creation, and release asset inspection. - User, Organizations, Teams & Diagnostics (
user, 7 actions): Authenticated user identity, organization inspection, team creation (create_team), accessible repositories, and API health/rate-limit diagnostics (system_health_check). - Webhooks & Repository Topics (
webhooks, 4 actions): Audit repository event webhooks and manage repository topic tags. - Security & Dependabot (
security, 1 action): Audit Dependabot vulnerability alerts by state and severity.
Quickstart & Installation
Option 1: Run with npx (No installation needed)
Option 2: Install Globally
Option 3: Local Clone
Environment Configuration
Client Configuration
Google Antigravity / Claude Desktop / Cursor
Add to your MCP configuration file (mcp_config.json or claude_desktop_config.json):
Using npm / npx (Recommended):
Using local clone:
Complete Action Catalog Reference (83 Actions)
All 83 actions feature strict Zod input validation and 2-tier output projection:
1. The 5 Client-Exposed Tools (Hybrid Mode)
2. Repositories & Branches (repositories — 12 actions)
3. Git Commits & Statuses (commits — 6 actions)
4. Pull Requests & Code Reviews (pull-requests — 11 actions)
5. Issues & Labels (issues — 8 actions)
6. Project Milestones (milestones — 4 actions)
7. Collaborators & Roles (collaborators — 4 actions)
8. Actions Variables & Secrets (variables — 6 actions)
9. Gists & Code Snippets (gists — 5 actions)
10. GitHub Actions & CI/CD Observability (actions — 10 actions)
11. Releases & Git Tags (releases — 5 actions)
12. User, Organizations & Teams (user — 7 actions)
13. Webhooks & Topics (webhooks — 4 actions)
14. Security & Dependabot (security — 1 action)
Benchmarks: Reproducible Token Economy Proof (test/benchmark-test.js)
Grounded strictly in official GitHub REST API (2022-11-28) response schemas (test/fixtures/github-api-v3-fixtures.js) and verified on every npm test run via node test/benchmark-test.js:
How Token Compression Works
- System Prompt Tax Reduction (95.1% savings): Shrinks MCP
ListToolsschema footprint from 83 full tool schemas (23,112 tokens / 92,447 B) down to the 5-tool hybrid surface (1,125 tokens / 4,498 B). - Recursive Output Projection Filter (
projectOutput): Automatically strips GitHub REST API v3 hypermedia template URLs (*_urlRFC 6570 templates),avatar_url,gravatar_id,node_id,site_admin,_links, internalapi.github.comself-links, andnull/""fields. - Smart Diff & Lockfile Truncation: Commit and PR diffs automatically collapse dependency lockfiles (
package-lock.json,pnpm-lock.yaml,yarn.lock,go.sum,Cargo.lock,*.min.js) viaignore_lockfiles: trueby default. Passignore_lockfiles: falseto inspect full lockfile diffs. - Conservative Default Pagination: All list actions default to
per_page: 10(max: 100). - Default High-Density Markdown Format: Discovery (
github_find_actions), execution (github_execute_action), and all 3 eager tools default toformat: "markdown". - Unified Diff Truncation: PR (
max_lines) and commit (max_diff_lines) diffs default to 400 lines. - Safe Log Tailing: CI workflow job logs extract the failure block and teardown tail (
tail_lines, default: 100) with ANSI escape sequence stripping.
Roadmap
Completed in v2.1
- Upstream indexed filtering & strict pagination caps (
state,labels,assignee,creator,mentioned,milestone,since) - Client error resilience (Secondary rate limit / abuse detection, 403/404 scope diagnostics, empty-body 201/202 handling)
- Hardened output projection with recursion depth guard (
maxDepth = 32), RFC 6570 hypermedia URL stripping, and empty collection preservation - Nested child team & organization management (
create_team,get_organization) - Smart CI/CD failure log extraction & ANSI sequence stripping in
get_job_logs(strip_ansi,smart_failure) - Outline-first code symbol extraction & line range slicing in
get_file_contents(outline_only,start_line,end_line) - Atomic multi-file commits (
create_commit,push_files) supporting file creation, updates, and deletions via GitHub Git Trees API - Pre-flight mergeability & conflict verification (
get_mergeability) - Token scope self-auditing & permission pre-flight
Future Horizons (v2.x)
- Standardized collection
_summaryheaders to facilitate multi-turn history pruning in LiteLLM / Eigent agent orchestration - Remote Transports: Streamable SSE and HTTP remote server modes
- Scoped GraphQL query engine for relational deep inspections
- DevSecOps code scanning & secret scanning alert queries
- Scoped & rate-guarded code search within project repositories
Acknowledgements & Lineage
This project incorporates architectural concepts, schemas, and patterns from:
@modelcontextprotocol/sdk(MIT License) — Copyright (c) Anthropic, PBC.zod(MIT License) — Colin McDonnell.- GitHub REST API Specifications — GitHub, Inc.
jmrplens/gitlab-mcp-server— Dynamic action discovery and meta-dispatcher pattern concepts.@sumirati/mcp-gitlab— Sibling project architecture, 3-tier read-only mode, and token projection standards.
See NOTICE for complete third-party attribution details.
License
This project is licensed under the MIT License — Copyright (c) 2026 [email protected].
Source: README.md at commit ce7318f
Tools
0Version history
4- v2.2.0LatestOct 17, 2026
- v2.1.0Oct 16, 2026
- v1.3.1Oct 15, 2026
- v1.0.0Oct 15, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts