github-mcp
MCP server exposing GitHub tools for issues, pull requests, and code browsing via the GitHub REST API. Designed for local LLM clients with flat arguments and streamable HTTP support.
README
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 |
|---|---|---|
get_me |
Authenticated user | |
search_repositories |
query, language, min_stars, page, per_page | Sorted by stars desc; repo exploration by popularity |
get_repo |
repo | Summary card: stars, forks, language, topics, license |
list_issues |
repo, state, labels, page, per_page | PRs filtered out; labels comma-separated |
search_issues |
query, repo, per_page | GitHub search syntax; repo adds repo: qualifier |
get_issue |
repo, number, include_comments | Body + up to 50 comments |
create_issue |
repo, title, body, labels, assignees | Labels/assignees comma-separated |
update_issue |
repo, number, title, body, state | state: open/closed |
add_issue_comment |
repo, number, body | |
list_pull_requests |
repo, state, page, per_page | |
get_pull_request |
repo, number | Body, first 100 files, CI check summary |
create_pull_request |
repo, title, head, base, body, draft | base defaults to repo default branch |
add_pr_comment |
repo, number, body | General comment, not a code review |
get_file_contents |
repo, path, ref | Raw text, refused above 100k chars |
search_code |
query, repo, per_page | GitHub code search syntax |
repo arguments are always "owner/repo".
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 .
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.