# Github MCP Server

> **Github MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Github.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/github
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Manage repositories, pull requests, issues, branches and development workflows on GitHub. Automate software delivery and collaborate across engineering projects.

---

## Details

- Server ID: `github`
- Version: 1.0.0
- Tools: 51
- Authentication: OAuth, managed by MewCP
- Calls served: 2297
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Github has to be in the toolset
first. In order:

1. Add Github to your toolset at https://mewcp.com/mcp/github
2. Connect your Github account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Github isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `github` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (51)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_repo` _(read)_ — Get basic details for a GitHub repository.
- `update_repository` _(write)_ — Updates repository metadata or renames a repository. Only the fields you provide are changed — others keep their current value. NOTE: this overwrites the…
- `create_repository` _(write)_ — Create a new GitHub repository in your personal account or an organization.
- `fork_repository` _(write)_ — Fork a repository to your personal account or an organization.
- `create_or_update_file` _(write)_ — Create or update a file in a repository. Prevents accidental overwrites with SHA validation.
- `push_files` _(write)_ — Push multiple files to a repository in a single atomic commit.
- `search_repositories` _(read)_ — Search GitHub repositories.
- `search_code` _(read)_ — Fast and precise code search across GitHub repositories.
- `search_users` _(read)_ — Search GitHub users by name, location, followers, or other attributes.
- `search_issues` _(read)_ — Search issues and pull requests across GitHub.
- `search_pull_requests` _(read)_ — Search for pull requests across GitHub using search syntax.
- `list_issues` _(read)_ — List issues in a GitHub repository.
- `get_issue` _(read)_ — Get detailed information about a specific GitHub issue.
- `get_issue_comments` _(read)_ — Get all comments on a GitHub issue with pagination support.
- `create_issue` _(write)_ — Create a new GitHub issue in a repository.
- `add_issue_comment` _(write)_ — Add a comment to a GitHub issue or pull request.
- `update_issue` _(write)_ — Updates a GitHub issue's title, body, state, assignees, labels, or milestone. Only the fields you provide are changed — others keep their current value. NOTE:…
- `list_org_repositories_by_contributor` _(read)_ — Find all repositories in an organization where specific contributors have made contributions.
- `sub_issue_write` _(write)_ — Manage sub-issues for a parent issue (add, remove, reprioritize).
- `assign_copilot_to_issue` _(write)_ — Assign GitHub Copilot to work on an issue.
- `pull_request_read` _(read)_ — Get details for a pull request with flexible method options (get, get_files, get_status, get_comments, get_review_comments).
- `list_pull_requests` _(read)_ — List pull requests in a GitHub repository with filtering and sorting options.
- `create_pull_request` _(write)_ — Create a new pull request in a GitHub repository.
- `update_pull_request` _(write)_ — Updates a pull request's title, body, state, base branch, draft status, maintainer-edit permission, or requested reviewers. Only the fields you provide are…
- `merge_pull_request` _(write)_ — Merges a pull request using the given merge method (merge, squash, or rebase). This action is irreversible — once merged, the pull request cannot be un-merged;…
- `update_pull_request_branch` _(write)_ — Update pull request branch with latest changes from base branch.
- `pull_request_review_write` _(write)_ — Write operations on PR reviews: create a review, submit a pending review, delete a pending review, or resolve/unresolve a review thread. Select the operation…
- `add_reply_to_pull_request_comment` _(write)_ — Add a reply to an existing PR comment.
- `request_copilot_review` _(write)_ — Request a code review from GitHub Copilot on a pull request.
- `list_branches` _(read)_ — List branches in a GitHub repository.
- `list_commits` _(read)_ — List commits in a GitHub repository.
- `get_commit` _(read)_ — Get details of a specific commit.
- `get_file_contents` _(read)_ — Get file or directory contents from a GitHub repository.
- `list_tags` _(read)_ — List all git tags in a repository with pagination support.
- `get_tag` _(read)_ — Get detailed information about a specific git tag.
- `get_latest_release` _(read)_ — Get the latest release in a repository.
- `list_releases` _(read)_ — List releases in a repository.
- `get_release_by_tag` _(read)_ — Get a specific release by tag name.
- `get_label` _(read)_ — Get a specific label from a repository.
- `get_me` _(read)_ — Get details of the authenticated GitHub user.
- `get_branch_protection` _(read)_ — Get branch protection rules for a specific branch.
- `set_branch_protection` _(write)_ — Set (create or replace) branch protection rules for a branch.
- `delete_branch_protection` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes all branch protection rules for the given branch. This action is…
- `get_pull_request_review_protection` _(read)_ — Get PR review requirements for a protected branch.
- `update_pull_request_review_protection` _(write)_ — Updates the pull request review requirements for a protected branch. Only the fields you provide are changed — others keep their current value. NOTE: this…
- `delete_pull_request_review_protection` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently removes the pull request review requirements from the given protected branch.…
- `list_repository_rulesets` _(read)_ — List all rulesets for a repository.
- `get_repository_ruleset` _(read)_ — Get a specific ruleset for a repository.
- `create_repository_ruleset` _(write)_ — Create a new ruleset for a repository.
- `update_repository_ruleset` _(write)_ — Updates an existing repository ruleset. Only the fields you provide are changed — others keep their current value. NOTE: this overwrites the current field…
- `delete_repository_ruleset` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes the specified ruleset from the repository. This action is irreversible —…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/github/connect/claude
- ChatGPT: https://mewcp.com/mcp/github/connect/chatgpt
- Grok: https://mewcp.com/mcp/github/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/github/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/github/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/github/connect/vscode
- Cursor: https://mewcp.com/mcp/github/connect/cursor
- Codex: https://mewcp.com/mcp/github/connect/codex
- Claude Code: https://mewcp.com/mcp/github/connect/claude-code
- OpenCode: https://mewcp.com/mcp/github/connect/opencode
- OpenClaw: https://mewcp.com/mcp/github/connect/openclaw
- Antigravity: https://mewcp.com/mcp/github/connect/antigravity
- Hermes: https://mewcp.com/mcp/github/connect/hermes
- Kimi Code: https://mewcp.com/mcp/github/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/github/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/github/connect/devin-desktop
- Zed: https://mewcp.com/mcp/github/connect/zed
- Muse Code: https://mewcp.com/mcp/github/connect/muse-code
- Cline: https://mewcp.com/mcp/github/connect/cline
- Kilo Code: https://mewcp.com/mcp/github/connect/kilo-code
- Kiro: https://mewcp.com/mcp/github/connect/kiro
- Junie: https://mewcp.com/mcp/github/connect/junie
- Amp: https://mewcp.com/mcp/github/connect/amp
- Qwen Code: https://mewcp.com/mcp/github/connect/qwen-code
- Goose: https://mewcp.com/mcp/github/connect/goose
- Python: https://mewcp.com/mcp/github/connect/python
- TypeScript: https://mewcp.com/mcp/github/connect/typescript