mcp-github
Provides tools for repository management, issues, pull requests and code search on GitHub.
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., "@mcp-githubsearch code for 'authenticate' in Python"
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.
mcp-github
MCP server for GitHub operations. Provides tools for repository management, issues, pull requests and code search.
Installation
pip install -r requirements.txtRelated MCP server: GitHub Prod MCP
Quick Start
from mcpgithub import GitHubServer
server = GitHubServer(token="ghp_...")
server.run()Features
Repository listing and management
Issue and PR operations
Code and repository search
File read and write operations
Branch management
MCP Tools
list_repos
List repositories for a user or organization.
{
"name": "list_repos",
"arguments": {
"owner": "username",
"type": "all"
}
}get_file
Get contents of a file from a repository.
{
"name": "get_file",
"arguments": {
"owner": "username",
"repo": "repo-name",
"path": "src/main.py"
}
}create_issue
Create a new issue.
{
"name": "create_issue",
"arguments": {
"owner": "username",
"repo": "repo-name",
"title": "Bug report",
"body": "Description..."
}
}search_code
Search for code across repositories.
{
"name": "search_code",
"arguments": {
"query": "function authenticate",
"language": "python"
}
}create_pr
Create a pull request.
{
"name": "create_pr",
"arguments": {
"owner": "username",
"repo": "repo-name",
"title": "Add feature",
"head": "feature-branch",
"base": "main"
}
}Configuration
server = GitHubServer(
token="ghp_...",
default_owner="myorg"
)Environment variables:
GITHUB_TOKEN=ghp_...
GITHUB_DEFAULT_OWNER=myorgExamples
Claude Desktop configuration
{
"mcpServers": {
"github": {
"command": "python",
"args": ["-m", "mcpgithub"],
"env": {
"GITHUB_TOKEN": "ghp_..."
}
}
}
}License
MIT
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
- -license-qualityAmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.128,88689,405MIT
- AlicenseCqualityBmaintenanceA production-ready MCP server for GitHub operations, providing tools for repository management, issues, pull requests, and more via both MCP stdio and REST API.27MIT
- AlicenseAqualityBmaintenanceA secure MCP server for interacting with GitHub issues, pull requests, repository files, and search, supporting both github.com and GitHub Enterprise Server.11AGPL 3.0
- 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.157MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that gives your AI access to the source code and docs of all public github repos
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
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/nhevers/mcp-github'
If you have feedback or need assistance with the MCP directory API, please join our Discord server