GitHub MCP Server
Exposes GitHub repository data via MCP tools, a resource, and a prompt, enabling repo summaries, issue/PR listing, keyword search, and repo health review.
README
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 sync - Copy env template and fill in your token:
Generate a token at https://github.com/settings/tokens (needscp .env.example .envreposcope for private repos, no scope needed for public read-only).
Run
Start the MCP server (stdio transport):
uv run python server.py
Run the sample client (spawns the server and calls a tool):
uv run python client.py
Tools
| Tool | Description |
|---|---|
get_repository(owner, repo) |
Repo summary — stars, forks, open issues, language |
search_issues(owner, repo, state="open") |
List issues (excludes PRs) |
list_pull_requests(owner, repo, state="open") |
List pull requests |
search_repository_issues(owner, repo, keyword) |
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):
Replace the URL with this repo's actual location once pushed.claude mcp add github-assistant --scope local -- uvx --from git+https://github.com/ritesh31/github-mcp github-mcpuvcaches 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:Each person uses their own token (generate at https://github.com/settings/tokens — read-only, fine-grained, scoped to needed repos).claude mcp add github-assistant --scope local -e GITHUB_TOKEN=ghp_yourColleaguesOwnTokenHere -- uvx --from git+https://github.com/ritesh31/github-mcp github-mcp - Verify:
Should showclaude mcp listgithub-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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.