Skip to main content
Glama
README.md
<![CDATA[# github-mcp

A Model Context Protocol (MCP) server that gives Claude direct access to
GitHub: repos, files, branches, issues, pull requests, GitHub Actions, and
code search, authenticated with a personal access token.

## Why this exists

Claude Code has its own GitHub integration built in. Claude chat (the
desktop app, claude.ai) doesn't ship with a first party GitHub connector.
This server fills that gap for anyone who wants Claude to read and write to
their repos outside of Claude Code.

## What it can do

- List, search, and get details on repos
- Read and write files, list directories
- Branches: list, create, delete
- Issues: list, get, create, update, comment
- Pull requests: list, get, create, merge
- GitHub Actions: list workflows, list runs, trigger a run
- Search code and issues/PRs across your repositories
- List commits
- Create new repos
- Get info on the authenticated user

## Argument validation

Every tool call is validated against a schema before it touches the GitHub
API. A missing or malformed argument returns a specific message (e.g.
`repo: Required`) instead of a raw runtime error from deep inside the
handler.

## Destructive operations require confirmation

`delete_branch`, `delete_file`, `merge_pull_request`, and `trigger_workflow`
are the four tools that change state in a way that isn't trivially
reversible. Each requires `confirm: true` in the call arguments. Calling one
without it does not touch GitHub — it returns a preview of exactly what
would run, so the caller (or the model driving the caller) has to state the
intent explicitly rather than an LLM being able to delete a branch or merge
a PR as a side effect of a poorly-scoped request.

Every other tool (reads, creates, comments, issue updates) runs immediately,
same as before.

## Setup

1. Clone this repo and install dependencies:

   ```
   git clone https://github.com/JessicaTemplet/github-mcp.git
   cd github-mcp
   npm install
   npm run build
   ```

2. Create a GitHub personal access token at
   [Settings -> Developer settings -> Personal access tokens](https://github.com/settings/tokens).
   Give it the scopes you actually need (`repo` for private repo access,
   `workflow` if you want it triggering Actions). On startup the server
   checks the token's scopes where the token type exposes them, and prints
   a warning immediately if `repo` or `workflow` is missing, rather than
   letting it surface later as a confusing 403 on first use.

3. Add it to your Claude Desktop config. Don't create a
   `claude_desktop_config.json` yourself somewhere and expect Claude Desktop
   to find it, that file has to be the one the app actually reads, and
   creating a separate one won't work. Instead, open Claude Desktop, go to
   Settings -> Developer -> Edit Config, and that opens the real config
   file for you to edit:

   ```json
   {
     "mcpServers": {
       "github": {
         "command": "node",
         "args": ["/absolute/path/to/github-mcp/dist/index.js"],
         "env": {
           "GITHUB_TOKEN": "your-token-here"
         }
       }
     }
   }
   ```

4. Restart Claude Desktop.

## Notes

- The token is read from an environment variable at runtime and is never
  written to disk by this server. Don't commit a token or a `.env` file to
  this repo.
- Built against the official `@modelcontextprotocol/sdk`, `@octokit/rest`,
  and `zod` for argument validation.

## License

MIT, see [LICENSE](./LICENSE).
]]>

TDQS

B3.2/5.0

Scored across 26 tools

Disambiguation5/5

Each tool targets a distinct resource-action pair, such as list_repos vs get_repo vs create_repo. Even similar tools like get_issue and get_pull_request operate on different object types with clear descriptions.

Naming Consistency5/5

All tools use snake_case with a consistent verb_noun pattern: list_* for listings, get_* for retrieval, create_* for creation, and delete_*/merge_*/trigger_* for actions. There are no mixed conventions or vague verbs.

Tool Count4/5

With 26 tools, the server is larger than the typical 3-15 scope, but GitHub's broad API justifies this size. Every tool serves a distinct purpose with no redundancy, so the count feels appropriate for the domain.

Completeness4/5

The server covers core GitHub workflows: repository, branch, file, issue, pull request, workflow, search, and user operations. Minor gaps like updating or deleting repositories are missing, but agents can work around them using existing tools.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues