github-mcp-server-js
A pure Node.js MCP server exposing 100+ GitHub REST API tools across 16 toolsets for AI clients. Supports read-only or read-write permission modes. Key capabilities include:
Repository Management: Get info, branches, commits, tags, file contents; create/update/delete files and branches; manage Git trees.
Issue Management: List, get, create, update issues; manage comments, labels; lock/unlock conversations.
Pull Request Management: List, get, create, update, merge PRs; list files, commits, reviews; create reviews; request reviewers.
Search: Search repositories, code, commits, issues/PRs, users with qualifiers.
User & Profile: Get user/authenticated user info; list followers/following; hovercard.
Gists: List, get, create, update, delete gists.
Activity & Notifications: List notifications, starred repos; check/star/unstar repos.
Packages: List/get packages and versions for authenticated user.
Miscellaneous: Rate limit, GitHub metadata, emojis, render Markdown.
GitHub Apps: Get app info, list installations and accessible repos.
Copilot Admin: Get org Copilot details, seats, seat details.
Organizations & Teams: Get org info; list members, repos, teams; manage team memberships.
Codespaces: List, get, create, start, stop codespaces.
ProjectsV2: List/get org projects, items, fields.
Code Security: List/get code scanning, secret scanning, Dependabot alerts; global/repo security advisories.
GitHub Actions: List/get workflows, runs, jobs, artifacts, check runs; trigger/cancel/rerun/approve workflow runs.
Provides tools for interacting with GitHub's API, enabling management of repositories, issues, pull requests, and related resources.
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-mcp-server-jsList my open issues"
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.
Built exclusively on the two first-party SDKs from the official providers โ no custom HTTP client, no hand-rolled protocol layer:
๐ Octokit.js โ GitHub's official REST/GraphQL client. Every tool in this server is a thin, typed wrapper around a verified
octokit.rest.*method.๐ค MCP TypeScript โ Anthropic's official Model Context Protocol server SDK.
โจ Highlights
๐งฐ Complete surface โ 100+ tools across 16 toolsets (issues, pull requests, actions, code security, Copilot admin, ProjectsV2, and more).
๐ Secure by default โ flip
GITHUB_PERMISSION=read-onlyand every mutating tool is never even registered.๐ฆ Three install channels โ npm (
npx), Claude Desktop Extension (.mcpb), or unpacked extension (.zip).โ Signed releases โ every version built by GitHub Actions with npm provenance and Sigstore attestation.
๐งช Three-tier test suite โ 200+ hermetic unit tests (nock-mocked) plus a 25-assertion read-only integration suite and 2 state-preserving write round-trips against the real GitHub API.
๐ชถ Zero heavy runtime โ pure Node 24+, no Docker, no Go, single-file bundle (~2 MB).
Related MCP server: mcp-github-server
๐ก Why this project exists
Five gaps in the current GitHub-MCP landscape:
๐ข No remote MCP on enterprise GitHub. GHES and most managed enterprise deployments don't yet expose a remote MCP endpoint โ run a local server yourself.
๐๏ธ The Anthropic reference server is deprecated.
@modelcontextprotocol/server-githubis archived. No fixes, no new tools.๐ณ The newer official server needs Docker + Go. github/github-mcp-server ships as a Docker-run Go binary โ often blocked by enterprise policy.
๐งฐ Broader tool coverage. 100+ tools across 16 toolsets โ a superset of the archived
server-githuband typicalgh-CLI wrappers. See Toolsets for the full list.๐ Read-only mode is one env var.
GITHUB_PERMISSION=read-onlyregisters only the 76 read tools; the 30 mutating operations (create_issue,merge_pull_request,star_repo,run_workflow, โฆ) are never exposed to the model. Same binary, one variable, verified by tests.
github-mcp-server-js fills all five โ pure Node 24+ / TypeScript, single-file bundle, npx-installable, shipped as both an npm package and a Claude Desktop Extension.
๐ Quick start
Pick one of three install paths, from easiest to most hands-on.
โก Path 1 โ npx from Claude Desktop config (recommended for CLI users)
Edit your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add this entry (create the file with { "mcpServers": {} } if it doesn't exist):
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "github-mcp-server-js"],
"env": {
"GITHUB_TOKEN": "ghp_your_personal_access_token_here",
"GITHUB_SERVER_URL": "github.com",
"GITHUB_PERMISSION": "read-write",
"LOG_LEVEL": "info"
}
}
}
}Only GITHUB_TOKEN is required โ the other three are shown with their defaults so you can see every knob at a glance. Common adjustments:
GitHub Enterprise Server:
"GITHUB_SERVER_URL": "github.mycompany.com"(bare hostname is fine; the server appends/api/v3automatically).Read-only mode:
"GITHUB_PERMISSION": "read-only"โ the 30 mutating tools (create_issue,merge_pull_request,star_repo,run_workflow, โฆ) are never registered.Verbose logs:
"LOG_LEVEL": "debug"prints every request/response summary to stderr; Claude Desktop surfaces stderr in its MCP log. Every line is already JSON โ no separate format flag needed.
Restart Claude Desktop. All 100+ tools become available in every new chat.
The server can also run standalone from any terminal:
npx github-mcp-server-js # stdio (for MCP clients)
npx github-mcp-server-js --transport=http --port=3000 # standalone HTTP๐ฑ๏ธ Path 2 โ Claude Desktop Extension via drag-drop (.mcpb)
No config-file editing required; the token is stored in the OS keychain.
Download
github-mcp-server-js-<version>.mcpbfrom the latest GitHub Release.Open Claude Desktop โ Settings โ Extensions.
Drag the
.mcpbfile into the Extensions pane.Fill in your
GITHUB_TOKEN(masked; stored in the macOS / Windows keychain, never in plaintext). The remaining fields carry sensible defaults.Click Install. All 100+ tools are immediately available.
๐ ๏ธ Path 3 โ Claude Desktop unpacked extension (.zip, developer mode)
Claude Desktop also supports loading an unpacked extension from a directory. This is useful when you want to inspect the manifest, hot-swap dist/cli.js, or work behind a corporate proxy that blocks .mcpb downloads.
Download
github-mcp-server-js-<version>.zipfrom the latest GitHub Release. The archive is byte-identical to the.mcpb; only the extension differs so stockunziptooling can open it.Extract:
unzip github-mcp-server-js-<version>.zip -d github-mcp-server-js.In Claude Desktop โ Settings โ Extensions, enable developer mode if it isn't already on.
Click Install unpacked extension and select the extracted directory.
Fill in
GITHUB_TOKENas in Path 2.
Edits to manifest.json or dist/cli.js in the extracted directory take effect on the next Claude Desktop reload โ useful for local iteration on a fork.
๐๏ธ Build the bundles yourself
git clone https://github.com/wuqunfei/github-mcp-server-js
cd github-mcp-server-js
npm ci
npm run pack:mcpb
# โ dist/github-mcp-server-js-<version>.mcpb
# โ dist/github-mcp-server-js-<version>.zip (byte-identical copy)โ๏ธ Configuration
Configuration is entirely via environment variables. Claude Desktop sets them from the .mcpb user-config form; for npx installs you set them yourself.
Variable | Required | Default | Description |
| Yes | โ | Personal access token used for all GitHub API calls. |
| No |
| GitHub host โ bare hostname or full API base URL. Set this for GitHub Enterprise Server. |
| No |
|
|
| No |
|
|
๐งฐ Toolsets
All 16 toolsets are shipped, exposing 100+ tools total. Write tools are only registered when GITHUB_PERMISSION=read-write (the default); read-only mode registers the read tools alone. The Access column indicates: R = registered in read-only mode; W = registered only in read-write mode.
๐ repos โ repositories, branches, commits, tags, file contents
Tool | Access | Description |
| R | Get a GitHub repository by owner and name. |
| R | List branches in a repository. |
| R | Get a single branch in a repository. |
| R | Get the contents of a file or directory in a repository. |
| R | List commits in a repository. |
| R | Get a single commit in a repository. |
| R | List tags in a repository. |
| R | Get a single tree in a repository, optionally recursive. |
| W | Create a new file or update an existing file in a repository. |
| W | Create a new branch from an existing branch or commit SHA. |
| W | Delete a branch from a repository. |
| W | Create a new tree object in a repository. |
๐ issues โ issue CRUD, comments, labels, conversation locking
Tool | Access | Description |
| R | List issues in a repository. |
| R | Get a single issue in a repository. |
| R | List comments on an issue. |
| R | List all labels defined in a repository. |
| R | List the labels currently applied to an issue. |
| W | Create a new issue in a repository. |
| W | Update an existing issue. |
| W | Add a comment to an issue. |
| W | Add labels to an issue, keeping the issue's existing labels. |
| W | Remove a single label from an issue. |
| W | Lock an issue conversation to collaborators only. |
| W | Unlock a previously locked issue conversation. |
๐ pull_requests โ PR listing, creation, merging, reviews
Tool | Access | Description |
| R | List pull requests in a repository. |
| R | Get a single pull request. |
| R | List the files changed in a pull request. |
| R | List the commits on a pull request. |
| R | List the reviews on a pull request. |
| W | Create a new pull request. |
| W | Update an existing pull request. |
| W | Merge a pull request. |
| W | Create a review on a pull request. |
| W | Request reviewers for a pull request. |
๐ search โ repo, code, commit, issue/PR, user search
Tool | Access | Description |
| R | Search GitHub repositories. |
| R | Search code across GitHub. |
| R | Search commits on default branches. |
| R | Search issues and pull requests (scope with |
| R | Search GitHub users. |
๐ค users โ profiles, followers, following, hovercard
Tool | Access | Description |
| R | Get public information about a user by login. |
| R | Get the profile of the currently authenticated user (owner of |
| R | List the users who follow a given user. |
| R | List the users that a given user follows. |
| R | Get contextual "hovercard" information about a user, optionally scoped to a subject. |
๐ gists โ list, get, create, update, delete gists
Tool | Access | Description |
| R | List gists for the authenticated user. |
| R | Get a single gist by id (full file content included). |
| W | Create a new gist (one or more files, public or secret). |
| W | Update an existing gist: change description, add/rename/delete files. |
| W | Delete a gist (permanent โ only the owner can delete). |
๐ activity โ notifications, starred repos, star/unstar
Tool | Access | Description |
| R | List notifications for the authenticated user (paginated, max 50/page). |
| R | List repositories starred by the authenticated user. |
| R | Check whether the authenticated user has starred a repository. Returns |
| W | Star a repository on behalf of the authenticated user. |
| W | Unstar a repository the authenticated user previously starred. |
๐ฆ packages โ GitHub Packages owned by the authenticated user
Requires the read:packages token scope. package_type is required and must be
one of npm, maven, rubygems, docker, nuget, container.
Tool | Access | Description |
| R | List packages owned by the authenticated user for a given package type. |
| R | Get a specific package owned by the authenticated user. |
| R | List all versions of a package owned by the authenticated user. |
| R | Get a specific version of a package owned by the authenticated user. |
๐ง misc โ utility endpoints
Tool | Access | Description |
| R | Get the current API rate-limit status for the authenticated user. |
| R | Get GitHub API metadata: IP ranges, SSH keys, and service host info. |
| R | List all emoji names and their image URLs available on GitHub. |
| R | Render a Markdown string to HTML using GitHub's renderer (returns raw HTML). |
๐ apps โ GitHub App public info and user installations
Tool | Access | Description |
| R | Get public metadata for a GitHub App by URL slug. |
| R | List GitHub App installations accessible to the authenticated user. |
| R | List repositories the authenticated user can access under a specific installation. |
๐ช copilot โ Copilot org-admin (org-owner PAT required)
Tool | Access | Description |
| R | Get Copilot seat breakdown and policy settings for an organization. |
| R | List all Copilot seat assignments in an organization. |
| R | Get Copilot seat details (last activity, editor) for a specific org member. |
๐ข orgs_teams โ organization inspection and team membership
Tool | Access | Description |
| R | Get a GitHub organization by login. |
| R | List members of an organization. |
| R | List repositories in an organization. |
| R | List teams in an organization. |
| R | Get a team by its slug within an organization. |
| R | List the members of a team. |
| W | Add a user to a team or update their role (requires org-owner or team-maintainer). |
| W | Remove a user from a team (requires org-owner or team-admin). |
๐ป codespaces โ user codespace lifecycle
Tool | Access | Description |
| R | List codespaces for the authenticated user. |
| R | Get a codespace by name for the authenticated user. |
| W | Create a codespace in a repository for the authenticated user. |
| W | Start a stopped codespace. |
| W | Stop a running codespace. |
๐ projects โ GitHub ProjectsV2 (org-scoped, read-only)
Tool | Access | Description |
| R | List ProjectsV2 projects in an organization. |
| R | Get a ProjectsV2 project by its number. |
| R | List items in a ProjectsV2 project. |
| R | List fields configured on a ProjectsV2 project. |
| R | Get a single item in a ProjectsV2 project. |
๐ก๏ธ code_security โ code scanning, secrets, Dependabot, advisories
Alert-inspection tools require the security_events PAT scope (or public_repo
for public repositories).
Tool | Access | Description |
| R | List code-scanning alerts for a repository. |
| R | Get a code-scanning alert. |
| R | List secret-scanning alerts for a repository. |
| R | Get a secret-scanning alert. |
| R | List Dependabot alerts for a repository. |
| R | Get a Dependabot alert. |
| R | List GitHub Global Security Advisories (public GHSA database). |
| R | Get a global GitHub security advisory by GHSA ID. |
| R | List repository security advisories. |
| R | Get a repository security advisory by GHSA ID. |
๐ฌ actions โ workflows, runs, jobs, artifacts, check runs
Tool | Access | Description |
| R | List workflows in a repository. |
| R | Get a workflow by ID or filename (e.g. |
| R | List runs for a workflow (filter by status, branch, event, actor). |
| R | Get a workflow run by ID. |
| R | List jobs for a workflow run. |
| R | List artifacts produced by a workflow run. |
| R | List check runs for a Git ref (SHA, branch, or tag). |
| W | Trigger a |
| W | Cancel a workflow run. |
| W | Re-run a workflow run. |
| W | Re-run only the failed jobs in a workflow run. |
| W | Approve a workflow run awaiting fork-PR approval. |
๐งช Testing
The suite is organized in three tiers, each with a distinct purpose and
different guarantees. All three run against the same source; only the
network scope and the presence of GITHUB_TOKEN differ.
1. Unit tests โ hermetic, mocked
Location:
test/unit/Count: 200 +
Network: none (nock intercepts every HTTP call;
test/setup.tsdisables outbound connections so an accidental live call fails loudly)Runtime: ~1.3 seconds
When it runs: on every commit via the pre-commit hook and every push via CI
npm test2. Integration tests โ read-only, real API
Location:
test/integration/read-only.test.tsCount: 25 assertions across all 16 toolsets against stable public targets (
octocat/Hello-World,octokit/octokit.js)Network: hits
api.github.comโ spawns the builtdist/cli.jsover stdio, exactly as a real MCP client wouldSafety: read-only โ no state mutations anywhere
Skip behavior: if
GITHUB_TOKENis missing, the whole suite isdescribe.skip'd so CI without a token stays green
GITHUB_TOKEN=ghp_... npm run test:integration3. Integration tests โ read + write, real API, opt-in
Location:
test/integration/write.test.ts(plus everything in tier 2)Count: all 25 read-only assertions + 2 write round-trips
Round-trips (state-preserving):
create_gist โ get_gist โ update_gist โ delete_giston a scratch gist โ asserts the deleted gist 404s after cleanupstar_repo/unstar_repoon a public repo, restoring the prior starred state whichever way it started
Opt-in gate: requires
INTEGRATION_WRITE=1โ the write suite isdescribe.skip'd otherwise, so it never mutates state by accident
INTEGRATION_WRITE=1 GITHUB_TOKEN=ghp_... npm run test:integration:writeBoth integration scripts run npm run build first so the tests exercise
the built dist/cli.js over stdio, matching real client usage exactly.
๐ Build your own bundle (zero trust)
Prefer not to trust binaries we publish? Every release artifact is fully reproducible from source. You audit the code, run the same gates our CI runs, and produce your own .mcpb and .zip โ no need to trust the SHA-256 on our GitHub Releases page or the npm registry.
Prerequisites
Node.js 24+ โ verify with
node --versionnpm โ bundled with Node 24 (currently npm 11.x); no separate install
git
Full audit + build pipeline
# 1. Clone the repo at the exact release tag you want to reproduce.
git clone https://github.com/wuqunfei/github-mcp-server-js
cd github-mcp-server-js
git checkout v0.1.1
# 2. Audit the code. Nothing is executed yet.
git log --stat v0.1.0..v0.1.1 # review commits between releases
# Or open the tree in your editor and read every changed file.
# 3. Install the exact dependency versions recorded in package-lock.json.
# No transitive drift, no surprise upgrades.
npm ci
# 4. Run the same gate our release CI runs. Any failure means don't ship.
npm run typecheck
npm run lint
npm run spellcheck
npm audit --audit-level=high
npm test
# 5. Build the self-contained CLI. Every runtime dependency is inlined
# into a single ~1.85 MB file โ nothing loaded from node_modules at runtime.
npm run build # โ dist/cli.js
# 6. Pack the extension. The pack script:
# - enforces manifest.json.version === package.json.version
# - validates manifest.json against the .mcpb v0.1 schema
# - re-runs the build for freshness
# - packs and then unpacks the archive to assert exactly the three
# expected entries (manifest.json, dist/cli.js, assets/icon.png)
npm run pack:mcpb
# โ dist/github-mcp-server-js-<version>.mcpb
# โ dist/github-mcp-server-js-<version>.zip (byte-identical copy)Install your locally built bundle
Drag the resulting .mcpb (or the extracted .zip) into Claude Desktop โ Settings โ Extensions exactly as in Path 2 or Path 3.
Note on byte reproducibility. The SHA-256 of your local
.mcpbmay differ from our published artifact because zip entries encode file modification timestamps. The contents are identical when you build from the same commit with the same locked dependencies. To compare content, usenpx @anthropic-ai/mcpb unpack <file> <dir>on both archives and diff the extracted trees.
๐ข Releases and provenance
Every published version is built by GitHub Actions from a tagged commit, signed with npm's Trusted Publisher and Sigstore attestation, and shipped as three artifacts:
๐ฆ npm package โ
npm i github-mcp-server-js(installs the bundleddist/cli.js).๐งฉ
.mcpbClaude Desktop Extension โ drag-drop install (Path 2).๐๏ธ
.zipalternate archive โ byte-identical to the.mcpb; used for the unpacked-extension flow (Path 3) and stockunzipinspection.
๐ Credits
Octokit.js by GitHub โ the REST/GraphQL client every tool wraps. Apache-2.0.
MCP TypeScript by Anthropic โ the MCP server framework. MIT.
Prior art:
@modelcontextprotocol/server-github(archived, original Anthropic reference server) andgithub/github-mcp-server(GitHub's official Go / Docker implementation). Both remain excellent choices where their constraints fit.
๐ License
MIT ยฉ 2026 Qunfei Wu. See LICENSE.
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
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables Git repository operations and GitHub PR workflows, allowing users to manage repositories, create branches, commit changes, and create pull requests through natural language.2
- AlicenseBqualityDmaintenanceAn MCP server that enables managing GitHub repositories, pull requests, issues, and more through natural language in Cursor or Claude Desktop.39104MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables GitHub API operations such as managing repositories, issues, and pull requests through natural language.452ISC
- FlicenseNot gradedqualityBmaintenanceMCP server that enables AI agents to perform GitHub operations like creating repositories, issues, and commits through natural language.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personalโฆ
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.โฆ
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/wuqunfei/github-mcp-server-js'
If you have feedback or need assistance with the MCP directory API, please join our Discord server