mcp-github
Provides tools for repository management, issues, pull requests and code search on GitHub.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Create, deploy, and operate MCP servers directly from your GitHub repositories.
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
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.127,455 npm92,139MIT
- AlicenseCqualityDmaintenanceA 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
- AlicenseBqualityBmaintenanceA secure MCP server for interacting with GitHub issues, pull requests, repository files, and search, supporting both github.com and GitHub Enterprise Server.26AGPL 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.157 npmMIT