github-mcp
Provides tools for managing GitHub repositories, issues, pull requests, and code browsing through the GitHub REST API.
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., "@github-mcp list open issues in vercel/next.js"
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.
github-mcp
Thin FastMCP server exposing flat GitHub
tools (issues, PRs, code browsing) over the GitHub REST API. Built for local
LLM clients: scalar arguments, comma-separated lists instead of JSON arrays,
trimmed JSON-string responses, and failures isolated as {"error": ...}.
Why not the official github/github-mcp-server? Its default toolset alone
registers 46 tools (~10-15k tokens of schema) with rich nested arguments,
and self-hosted it is stdio-only. This server keeps 15 flat tools (~2-3k
tokens) and speaks streamable HTTP natively, which Open WebUI consumes
directly. OpenCode terminal sessions continue to use the gh CLI.
Tools
Tool | Args | Notes |
| Authenticated user | |
| query, language, min_stars, page, per_page | Sorted by stars desc; repo exploration by popularity |
| repo | Summary card: stars, forks, language, topics, license |
| repo, state, labels, page, per_page | PRs filtered out; labels comma-separated |
| query, repo, per_page | GitHub search syntax; repo adds |
| repo, number, include_comments | Body + up to 50 comments |
| repo, title, body, labels, assignees | Labels/assignees comma-separated |
| repo, number, title, body, state | state: |
| repo, number, body | |
| repo, state, page, per_page | |
| repo, number | Body, first 100 files, CI check summary |
| repo, title, head, base, body, draft | base defaults to repo default branch |
| repo, number, body | General comment, not a code review |
| repo, path, ref | Raw text, refused above 100k chars |
| query, repo, per_page | GitHub code search syntax |
repo arguments are always "owner/repo".
Related MCP server: @cloud9-labs/mcp-github
Auth
One fine-grained PAT in the environment (GITHUB_PERSONAL_ACCESS_TOKEN):
Issues r/w, Pull requests r/w, Contents r (also covers releases),
Checks r (CI summary in get_pull_request; without it the summary
degrades to a checks_error hint), Metadata r (auto-granted). Actions r
is not needed today, only if workflow-run tools are added later. A local
.env file is loaded if present.
Run
# stdio (default, local MCP clients)
GITHUB_PERSONAL_ACCESS_TOKEN=... uv run github-mcp
# streamable-http (Docker does this via MCP_TRANSPORT=http)
MCP_TRANSPORT=http MCP_PORT=3102 uv run github-mcp
curl -s http://localhost:3102/mcp # -> 406 (streamable-http requires MCP headers)Docker image: ghcr.io/awernick/github-mcp:main, published on every push to
main. Deployed on robusto by awernick/picolino-config
(robusto/github-mcp/, port 3102); Open WebUI registers it as an external
tool server (Type: MCP Streamable HTTP) at http://github-mcp:3102/mcp.
Development
uv sync --dev # or: pip install -e ".[dev]"
uv run pytest
uv run ruff check .Available Tools
15 toolsadd_issue_commentB
Comment on an issue. Also works on pull requests.
Inputs: body (required), repo (required), number (required). Returns: result
add_pr_commentA
Comment on a pull request (general conversation, not a code review).
Inputs: body (required), repo (required), number (required). Returns: result
create_issueC
Create an issue.
Inputs: repo (required), title (required), body, labels, +1 more. Returns: result
create_pull_requestC
Create a pull request.
Inputs: head (required), repo (required), title (required), base, +2 more. Returns: result
get_file_contentsA
Get the raw text contents of a file in a repository.
Files larger than 100,000 characters are refused to protect the context window; fetch a narrower path instead.
Inputs: path (required), repo (required), ref. Returns: result
get_issueA
Get a single issue with its body and (optionally) its comments.
Inputs: repo (required), number (required), include_comments. Returns: result
get_meA
Get the authenticated GitHub user (login, name, profile URL).
Inputs: no named parameters. Returns: result
get_pull_requestA
Get a pull request with its changed files and CI check summary.
Files are capped at the first 100; files_truncated is true when the PR has more. Checks summarize GitHub Actions runs on the head commit.
Inputs: repo (required), number (required). Returns: result
get_repoA
Get a repository's summary card (stars, forks, language, topics). Use with search_repositories to evaluate repos found by popularity.
Inputs: repo (required). Returns: result
list_issuesB
List issues in a repository.
Inputs: repo (required), page, state, labels, +1 more. Returns: result
list_pull_requestsB
List pull requests in a repository.
Inputs: repo (required), page, state, per_page. Returns: result
search_codeB
Search code with GitHub code search syntax.
Inputs: query (required), repo, per_page. Returns: result
search_issuesA
Search issues and pull requests with GitHub search syntax.
Inputs: query (required), repo, per_page. Returns: result
search_repositoriesA
Search repositories, sorted by popularity (stars) descending.
Use this to explore existing repos and projects, e.g. find the most starred implementations of a tool or library.
Inputs: query (required), page, language, per_page, +1 more. Returns: result
update_issueA
Update an issue's title, body, or state. Title/body replace in full.
Inputs: repo (required), number (required), body, state, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action: issues, PRs, repos, code, file contents, and user info. Search tools are clearly separated by domain (issues, repos, code), and comment tools are distinct for issues vs PRs. No meaningful overlap.
All names follow a consistent verb_noun snake_case pattern (get_, list_, create_, update_, add_, search_). Even edge cases like 'get_me' and 'get_file_contents' fit the pattern, with no mixing of camelCase or other styles.
15 tools is at the upper boundary of the ideal range but each one earns its place. The set covers core GitHub workflows without unnecessary redundancy, and the count is well-proportioned to the server's scope.
Issue management is complete (list, get, create, update, comment, search). PR management covers list, get, create, and comment, but lacks update and merge operations, which are common lifecycle actions. Repo exploration is solid with get/search, and code/file retrieval is covered. Minor gaps exist, but agents can work around them.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.12MIT
- 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.158 npmMIT
- FlicenseAqualityDmaintenanceA minimal MCP server that exposes a focused set of GitHub PR review tools to AI agents, enabling PR listing, detail retrieval, comment viewing, and thread management.5-
- AlicenseAqualityDmaintenanceGitHub MCP server for Claude Code, Cursor, Cline, Windsurf, and any MCP-compatible client. Exposes GitHub tools (issues, pull requests, code search, file content) to your LLM via the Model Context Protocol.7MIT