GitHub MCP Server
GitHub MCP Server
Пользовательский MCP-сервер (Model Context Protocol), написанный на TypeScript, который подключает Claude к REST API GitHub.
Возможности
Предоставляет 6 инструментов (tools), которые Claude может вызывать:
Инструмент | Описание |
| Список репозиториев аутентифицированного пользователя |
| Детали конкретного репозитория |
| Список issues репозитория |
| Создаёт новую issue |
| Читает содержимое файла из репозитория |
| Ищет код на GitHub |
Related MCP server: remote-mcp-oauth-github
1. Генерация GitHub Personal Access Token
Перейдите в GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens
Создайте токен с минимально необходимыми разрешениями:
Contents: Read(дляget_file_content)Issues: Read and write(дляlist_issues/create_issue)Metadata: Read(обязательно всегда)
Скопируйте сгенерированный токен (начинается с
github_pat_...)
Совет по безопасности: никогда не коммитьте токен в репозиторий. Используйте переменную окружения.
2. Установка и сборка
npm install
npm run buildЭто создаёт build/index.js, который является исполняемым файлом сервера (общение через stdio — стандартный протокол MCP).
3. Локальное тестирование (опционально, без Claude)
export GITHUB_PERSONAL_ACCESS_TOKEN="seu_token_aqui"
npm startЕсли в stderr появится GitHub MCP server rodando via stdio., значит, всё работает. Для интерактивного тестирования tools используйте MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js4. Подключение к Claude Desktop
Отредактируйте файл конфигурации Claude Desktop:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Добавьте:
{
"mcpServers": {
"github": {
"command": "node",
"args": ["/caminho/absoluto/para/github-mcp-server/build/index.js"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "seu_token_aqui"
}
}
}
}Перезапустите Claude Desktop. Инструменты GitHub должны появиться на значке инструментов (🔨) в беседе.
5. Следующие шаги (идеи для расширения и прокачки портфолио)
Добавить инструменты записи:
create_pull_request,merge_pull_request,create_branchДобавить настоящую пагинацию (cursor-based) вместо только
per_pageRate limiting и кэш (GitHub ограничивает 5000 запросов в час для аутентифицированных пользователей)
Автоматические тесты с Vitest/Jest
CI с GitHub Actions, запускающий lint + тесты + сборку при каждом push
Опубликовать как npm-пакет (
npx github-mcp-server)Докеризировать сервер (хороший способ связать его с вашими другими DevOps-проектами)
Структура проекта
github-mcp-server/
├── src/
│ └── index.ts # lógica do servidor e definição das tools
├── build/ # gerado pelo `npm run build`
├── package.json
├── tsconfig.json
└── README.mdMaintenance
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
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude Desktop to GitHub repositories, enabling users to perform git operations and GitHub API interactions through natural conversation.452
- AlicenseNot gradedqualityDmaintenanceEnables Claude to authenticate with GitHub OAuth and access tools for user information, calculations, and GitHub repositories.5MIT
- FlicenseAqualityBmaintenanceConnects Claude to GitHub, enabling listing repositories, browsing open pull requests, and inspecting PR diffs for code review.4
- FlicenseNot gradedqualityCmaintenanceEnables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect Claude to Fathom meeting recordings, transcripts, and summaries
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/luizHramoss/github-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server