mcp-github
Provides tools for interacting with the GitHub REST API, including listing repos, PRs, issues, branches, commits, code search, and optionally creating PRs, reviews, issues, comments, and merging PRs.
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., "@mcp-githubfind issues with the label 'bug'"
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.
mcp-github
MCP server for the GitHub REST API — repos, PRs, issues, branches, commits, reviews, and code search.
Usage
bun run src/mcp/cli.ts --stdio # stdio mode (for MCP integration)
bun run src/mcp/cli.ts --port 3845 # HTTP modeRelated MCP server: GitHub MCP Server Plus
Add to your MCP host
Wire the server into an MCP host (Claude Code, Cursor, …) by adding it to your .mcp.json (or run claude mcp add), launching it from your local clone:
{ "mcpServers": { "github": { "command": "bun", "args": ["run", "/abs/path/to/mcp-github/src/mcp/cli.ts", "--stdio"], "env": { "GITHUB_TOKEN": "ghp_..." } } } }npm package coming soon — run from source for now.
Env Vars
Variable | Required | Description |
| Yes | PAT with |
| No | Set |
| No | Set |
| No | Cache directory (default: |
Tools
Read-only (always available):
GET /github/repos— List repos for user or orgGET /github/repos/:owner/:repo— Get repo detailsGET /github/repos/:owner/:repo/pulls— List PRsGET /github/repos/:owner/:repo/pulls/:number— Get PR detailsGET /github/repos/:owner/:repo/issues— List issuesGET /github/repos/:owner/:repo/branches— List branchesGET /github/repos/:owner/:repo/commits— List commitsGET /github/search/code— Search codeGET /github/search/issues— Search issues/PRs
Write (requires GITHUB_ALLOW_WRITES=true):
POST /github/repos/:owner/:repo/pulls— Create PRPOST /github/repos/:owner/:repo/pulls/:number/reviews— Submit reviewPOST /github/repos/:owner/:repo/issues— Create issuePOST /github/repos/:owner/:repo/issues/:number/comments— Add comment
Destructive (requires GITHUB_ALLOW_DESTRUCTIVE=true):
PUT /github/repos/:owner/:repo/pulls/:number/merge— Merge PR
Architecture
Built on edge.libx.js RouterWrapper + describeMCP. Read-only by default with explicit opt-in for writes. Results spooled to disk via spool().
This server cannot be deployed
Maintenance
Related MCP Connectors
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.89,959 npm90,399MIT
- AlicenseBqualityDmaintenanceMCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.184 npm8MIT
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.152 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server providing maximum practical control over GitHub via REST and GraphQL APIs, exposing 22 tools for repository management, file operations, issues, PRs, Actions, and more.MIT