GitHub MCP Server
Provides tools for interacting with GitHub repositories, including retrieving repository summaries, searching issues and pull requests, keyword searching repository issues, and accessing repository details as a resource.
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 Server what are the open issues for facebook/react?"
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 Server
MCP (Model Context Protocol) server exposing GitHub repository data as tools, a resource, and a prompt. Backed by GitHub's REST API via httpx.
Setup
Install deps:
uv syncCopy env template and fill in your token:
cp .env.example .envGenerate a token at https://github.com/settings/tokens (needs
reposcope for private repos, no scope needed for public read-only).
Related MCP server: github-repo-mcp-server
Run
Start the MCP server (stdio transport):
uv run python server.pyRun the sample client (spawns the server and calls a tool):
uv run python client.pyTools
Tool | Description |
| Repo summary — stars, forks, open issues, language |
| List issues (excludes PRs) |
| List pull requests |
| Keyword search over repo issues |
Resource
github://repo/{owner}/{repo} — repository details as text.
Prompt
review_repository(owner, repo) — generates a prompt to analyze repo health (issues, PRs, activity, risks).
Project layout
server.py— MCP server, all tools/resource/promptclient.py— sample MCP client exercising the server over stdiogithub_service.py,test_github.py— early prototype scratch, superseded byserver.py(kept commented for reference)
Giving this to a colleague
No manual clone needed — uv fetches and runs the server directly from the git repo. Each person still runs their own local copy with their own token; nothing is centrally hosted.
Register the server with Claude Code (one command, no clone/install step):
claude mcp add github-assistant --scope local -- uvx --from git+https://github.com/ritesh31/github-mcp github-mcpReplace the URL with this repo's actual location once pushed.
uvcaches the repo behind the scenes on first run — no visible clone step.--scope localkeeps it private to their machine.Provide
GITHUB_TOKEN. Since there's no local clone, there's no.envfile to edit — pass the token as an environment variable on theclaude mcp addcommand instead:claude mcp add github-assistant --scope local -e GITHUB_TOKEN=ghp_yourColleaguesOwnTokenHere -- uvx --from git+https://github.com/ritesh31/github-mcp github-mcpEach person uses their own token (generate at https://github.com/settings/tokens — read-only, fine-grained, scoped to needed repos).
Verify:
claude mcp listShould show
github-assistantas Connected. Open a Claude Code session and run/mcpto confirm all 4 tools, the resource, and the prompt are discovered.Test: ask Claude something like "what's the star count on
<owner>/<repo>?" — it should pick theget_repositorytool on its own.
Available Tools
4 toolsget_repositoryC
Get information about a GitHub repository.
Inputs: repo (required), owner (required).
list_pull_requestsC
List pull requests in a GitHub repository.
Inputs: repo (required), owner (required), state. Returns: result
search_issuesC
List issues in a GitHub repository.
Inputs: repo (required), owner (required), state. Returns: result
search_repository_issuesC
Search issues in a repository.
Inputs: repo (required), owner (required), keyword (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The issue-focused tools are confusingly similar: search_issues actually lists issues, while search_repository_issues searches them, making it hard for an agent to know which to select. get_repository and list_pull_requests are distinct, but the two issue tools create real ambiguity.
All tool names use snake_case and a verb_noun pattern, but search_issues is a misleading name for a listing operation and search_repository_issues redundantly adds 'repository' while search_issues does not. This creates a somewhat consistent yet semantically muddled naming scheme.
Four tools is not excessive, but for a server called 'GitHub MCP Server' the count feels thin and narrowly scoped. It is above the 1-2 tool borderline but still underrepresents the expected breadth of a GitHub integration.
The surface only covers repository information, issue listing/searching, and pull request listing. Core GitHub operations like creating or updating issues, creating or merging pull requests, and fetching individual items are missing, which will likely cause agent failures for common workflows.
Maintenance
Related MCP Connectors
GitHub repo search, stats, language breakdown and comparison as agent tools.
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover and interact with GitHub repositories through standardized MCP tools, allowing exploration and retrieval of project information without direct API calls.-
- AlicenseAqualityDmaintenanceEnables AI assistants to query GitHub repositories, issues, pull requests, CI status, and discover trending repos via natural language. Provides MCP tools, resources, and prompts for GitHub data access.14MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural-language analysis of GitHub repositories by exposing repository metadata, source code retrieval, search, and file reading as MCP tools, with answers grounded in the actual repository content.-
- FlicenseAqualityCmaintenanceEnables real-time assessment of GitHub repository health by exposing tools and resources for repository metadata, open issues, recent commits, and GitHub Actions workflow runs, plus prompts for health reports and issue triage.4-