GitHub MCP Server
Provides read-only tools for browsing GitHub repositories, including listing open issues and pull requests, fetching detailed issue discussions with comments, and searching recent activity such as commits and opened/closed issues and PRs.
Click on "Install 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 ServerWhat are the open issues in python/cpython?"
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
A small, working Model Context Protocol server that exposes read-only GitHub tools to an LLM client such as Claude Desktop. Built with the official mcp Python SDK (stdio transport) and direct GitHub REST calls via requests.
The design goal is a handful of tools that work end-to-end rather than a large stubbed-out surface: an LLM can browse a repo's open issues and PRs, drill into a specific issue's discussion, and summarize recent activity.
Tools
Tool | What it returns |
| Open issues with number, title, author, labels, URL |
| Open PRs with the same fields plus source branch and draft status |
| Full issue detail: body text plus up to 30 comments |
| Recent commits, and issues/PRs opened or closed in the window |
All tools take repo in owner/name form (e.g. python/cpython). GitHub API errors (bad repo names, 404s, rate limits, bad tokens) are caught and returned as a readable error message the model can act on, never a stack trace.
Related MCP server: GitHub MCP Server
Setup
Requires Python 3.10+.
pip install -r requirements.txtOptionally set a GitHub token — not required for public repos, but it raises the API rate limit from 60 to 5,000 requests/hour and enables private repos your token can see:
# PowerShell (current session)
$env:GITHUB_TOKEN = "ghp_your_token_here"The token is only ever read from the environment — never hardcoded or written to disk.
Verify it works (before touching Claude Desktop)
Run the test script, which calls each tool function directly against a real public repo and also exercises the error paths:
python test_tools.py # defaults to modelcontextprotocol/python-sdk
python test_tools.py owner/some-other-repo # or pick your ownYou should see 6/6 checks passed.
Register in Claude Desktop
Open the config file (create it if missing):
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server under
mcpServers, using absolute paths for both the Python interpreter andserver.py:
{
"mcpServers": {
"github": {
"command": "C:\\Users\\jeswi\\AppData\\Local\\Python\\pythoncore-3.14-64\\python.exe",
"args": ["C:\\Users\\jeswi\\OneDrive\\Documents\\Resume Project\\Github-MCP\\server.py"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
} The env block is how Claude Desktop passes the token to the server process; omit it entirely for anonymous access to public repos.
Use the real interpreter path, not the Windows Store alias.
(Get-Command python).Sourceoften returns...\WindowsApps\python.exe, which is a shim that fails when launched as a subprocess. Get the true path with:python -c "import sys; print(sys.executable)"
Fully quit and restart Claude Desktop (system tray → Quit, not just closing the window).
Confirm the connection: in a new chat, the tools icon (below the message box) should list the four
githubtools.
Example prompts
Prompts that naturally trigger each tool:
"What are the open issues in
modelcontextprotocol/python-sdkright now?" →list_open_issues"Are there any open pull requests in
pallets/flask? Which ones are drafts?" →list_open_prs"Summarize the discussion on issue #3307 in
modelcontextprotocol/python-sdk." →get_issue"How active has
python/cpythonbeen in the last two weeks? What got merged or closed?" →search_repo_activity"Look at recent activity in
anthropics/anthropic-sdk-pythonand tell me if any of the newly opened issues look like duplicates of each other." →search_repo_activity+get_issue
How it works
Claude Desktop ── stdio (JSON-RPC / MCP) ──> server.py ── HTTPS ──> api.github.comserver.pyregisters four plain Python functions as MCP tools; their docstrings become the tool descriptions the LLM reads when deciding what to call.The server runs over stdio: Claude Desktop launches it as a subprocess and speaks MCP over stdin/stdout. No ports, no web server, no persistence.
Tool results are returned as structured JSON, so the model gets fields (number, author, labels, URL) rather than prose to parse.
Scope
Deliberately excluded: write operations (creating issues, commenting), OAuth flows, a web UI, and any database. This is a clean local demo of the MCP tool-serving pattern.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.18MIT
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables LLM agents to manage GitHub repositories, issues, pull requests, branches, files, and releases through a standardized interface.5708Apache 2.0
- Flicense-quality-maintenanceModel Context Protocol server that enables interaction with GitHub repositories, issues, pull requests, and search functionality through natural language.1
- Alicense-qualityDmaintenanceA Model Context Protocol server that provides read-only access to GitHub repositories, enabling AI assistants to perform code reviews without write permissions.MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jeswinmathew12/Github-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server