GitHub MCP Server (Custom)
GitHub MCP Server (кастомный)
Кастомный сервер Model Context Protocol (MCP), дающий AI-агенту полный CRUD-доступ к GitHub: репозитории, issues, pull requests, ветки, комментарии, ревью и слияния. Создан с использованием официального Python mcp SDK (FastMCP) и REST API GitHub через httpx.
Всего 23 инструмента — полный список в server.py. Основные:
Область | Инструменты |
Репозитории |
|
Issues |
|
Ветки |
|
Pull Requests |
|
Ревью |
|
Коммиты |
|
Настройка
Установите зависимости
pip install -r requirements.txtСоздайте GitHub-токен
Перейдите на https://github.com/settings/tokens и создайте либо:
классический PAT с областью
repo, либоfine-grained PAT с
Contents,Issues,Pull requestsиMetadata, установленными на Read & write, с областью действия на репозитории, к которым агенту нужен доступ.
Задайте токен как переменную окружения
export GITHUB_TOKEN=ghp_your_token_hereЗапустите его отдельно (необязательная проверка работоспособности)
python server.pyОн будет ждать подключения MCP-клиента через stdio — это ожидаемо, это не веб-сервер.
Related MCP server: GitHub MCP Server
Подключение к Claude Desktop
Добавьте это в ваш claude_desktop_config.json (%APPDATA%\Claude\claude_desktop_config.json в Windows, ~/Library/Application Support/Claude/claude_desktop_config.json в macOS):
{
"mcpServers": {
"github": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}Перезапустите Claude Desktop, и инструменты GitHub появятся в списке инструментов.
Подключение к вашему собственному пайплайну агента (например, проект Jira → GitHub → Teams)
Поскольку это стандартный MCP stdio-сервер, любой MCP-совместимый клиент или SDK может запустить его как подпроцесс и общаться с ним через stdin/stdout — включая .NET-хост, если вы используете MCP C# SDK, или Python/TypeScript SDK, если ваш оркестратор полиглот. Укажите клиенту на:
command: python
args: ["/absolute/path/to/server.py"]
env: { "GITHUB_TOKEN": "<token>" }Расширение
Чтобы добавить новый инструмент, просто добавьте новую функцию с декоратором @mcp.tool() в server.py, которая вызывает _request(method, path, ...) против GitHub REST API. Docstring становится описанием инструмента, показываемым модели, а аннотации типов становятся схемой входных данных — поэтому держите оба точными.
Примечания
Все операции записи (
create_*,update_*,delete_*,merge_*) вносят реальные изменения на GitHub — режима dry-run нет. Рекомендуется тестировать на тестовом репозитории, особенноmerge_pull_requestиdelete_branch.Лимиты запросов соответствуют стандартным лимитам REST API GitHub (5 000 запросов в час для аутентифицированных запросов на момент написания) — сервер не выполняет собственного троттлинга.
Ошибки от GitHub (неверная аутентификация, 404, конфликты слияния и т.д.) выбрасываются как
RuntimeErrorс включённым телом ответа API, чтобы вызывающий агент получил читаемое сообщение для реакции.
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
- FlicenseNot gradedqualityDmaintenanceProvides secure, controlled access to GitHub operations through the Model Context Protocol with enterprise-grade security features including secret detection, vulnerability scanning, rate limiting, and full audit trails. Supports repository management, file operations, branch creation, commits, and GitHub Actions workflows.
- FlicenseNot gradedqualityNot gradedmaintenanceEnables LLMs to interact with GitHub repositories, issues, pull requests, and workflows through the Model Context Protocol. It provides a comprehensive set of tools for repository management, issue tracking, code search, and CI/CD automation.
- AlicenseCqualityDmaintenanceEnables AI assistants to directly operate GitHub repositories, such as listing issues, through the Model Context Protocol.21112Apache 2.0

Tiger GitHub MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables LLMs to interact with GitHub via the Model Context Protocol, providing tools for repository management and other GitHub operations.31Apache 2.0
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Git-backed platform for skills, tools, and context for AI agents
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
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/rishav0004/custom-github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server