github-mcp
Provides tools for interacting with GitHub repositories, including reading files, listing branches and commits, pushing files, creating branches, opening and merging pull requests, managing issues, and more.
Allows checking GitHub Actions workflow run statuses, enabling CI monitoring after pushes or PR events.
Click on "Install 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-mcpCreate a new branch, commit my current changes, and open a PR"
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.
@iiinigence/github-mcp
Push commits, manage branches, open PRs, and read repos — by just asking your AI.
An open-source MCP server for GitHub, developed by IIInigence. Works with Claude Desktop, Claude Code, and any MCP-compatible client.
Because it runs on your machine with your token, your AI assistant can ship code to GitHub even from cloud sandboxes that can't push directly — the API calls originate from your device, not the sandbox.
Easiest install — one file, no terminal (Claude Desktop)
Download
iiinie-github.mcpbfrom the latest releaseIn Claude Desktop: Settings → Extensions → Advanced settings → Install Extension → pick the downloaded file. Claude shows what you're getting; click Install.
Paste your GitHub token (see below) and optionally a default owner/org. Done.
Nervous about giving an AI push powers? Flip on Read-only mode in the same form: Claude can read repos and PRs but can't change a thing until you turn it off.
Related MCP server: gitea-mcp
Get a token (2 minutes)
Create a fine-grained personal access token at GitHub → Settings → Developer settings → Fine-grained tokens:
Repository access: Only select repositories — pick just the repos you want your AI to work with
Permissions → Repository permissions:
Contents: Read and write
Pull requests: Read and write
Issues: Read and write
Actions: Read-only
Metadata: Read-only (added automatically)
Never use a classic token with broad scopes — fine-grained scoping is the whole safety story.
Quick start (manual / npx route)
Add to Claude Desktop — Settings → Developer → Edit Config:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@iiinigence/github-mcp"],
"env": {
"GITHUB_TOKEN": "github_pat_your_token_here",
"GITHUB_DEFAULT_OWNER": "your-username-or-org",
"READ_ONLY": "false"
}
}
}
}Restart Claude Desktop, then try: "Use whoami to check my GitHub connection, then list my repos."
Tools
15 tools. Tools marked 🔒 are destructive: the assistant is instructed to always get your explicit confirmation before calling them, and READ_ONLY blocks them entirely.
Tool | What it does |
| Verify the token — who is authenticated |
| Repositories the token can access, recently pushed first |
| Branches with latest commit SHAs |
| Read a file (UTF-8) or list a directory at any ref |
| Recent commits on a branch |
| The core write tool — commit multiple files to a branch in one commit and push. Creates the branch if needed. Never force-pushes. |
| Create a branch from another branch |
| Delete a branch (refuses the default branch) |
| Open a pull request (normal or draft) |
| Browse PRs; details include changed files & mergeability |
| Merge a PR (merge / squash / rebase) |
| Open a new issue |
| Comment on an issue or PR |
| Check GitHub Actions CI status after a push |
Configuration
Env var | Required | Description |
| ✅ | Fine-grained personal access token |
| — | Default owner/org when tools don't specify one |
| — |
|
| — | Override for GitHub Enterprise (e.g. |
Safety notes
Use a fine-grained token scoped to only the repos your AI should touch. Rotate it if it may have leaked.
push_filesnever force-pushes, anddelete_branchrefuses the repository's default branch.Keep yourself as the approval step: have your assistant push to feature branches and open PRs you review, rather than committing to main.
Start with
READ_ONLY: "true"if you want to connect before granting write powers.
Privacy
This connector runs locally, collects no data, has no telemetry, and talks only to GitHub's API. Your token is stored on your device by Claude Desktop and sent only to GitHub. Full policy: PRIVACY.md.
Who built this
IIInigence — a software development agency: custom software, AI automations, full platforms. This connector is part of our video series on connecting Claude to your business tools, one at a time. See also our SendGrid connector.
Want something like this built for your business? Tell us what you'd build.
Development
git clone https://github.com/iiinigence/github-mcp.git
cd github-mcp
npm install
npm run build
GITHUB_TOKEN=github_pat_xxx node dist/index.jsMIT licensed. PRs welcome.
This is an independent project by IIInigence. It is not affiliated with, endorsed, or sponsored by GitHub, Inc. "GitHub" is a trademark of GitHub, Inc., used here only to describe compatibility.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceA lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.Last updated
- AlicenseAqualityAmaintenanceAn MCP server that enables AI assistants to read, create, and manage issues, repositories, and releases on Gitea, Forgejo, or Codeberg instances via personal access tokens.Last updated21MIT
- AlicenseBqualityAmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.Last updated12MIT
- Flicense-qualityCmaintenanceA local MCP server that turns AI clients into power users of local git repositories, enabling clone, browse, search, and inspect code without burning API tokens.Last updated
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iiinigence/github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server