GitHub MCP Server (Custom)
GitHub MCP Server (Custom)
A custom Model Context Protocol (MCP) server giving an AI agent full
CRUD access to GitHub: repositories, issues, pull requests, branches,
comments, reviews, and merges. Built with the official Python mcp SDK
(FastMCP) and GitHub's REST API via httpx.
총 23개의 도구 — 전체 목록은 server.py를 참고하세요. 주요 기능은 다음과 같습니다.
영역 | 도구 |
저장소 |
|
이슈 |
|
브랜치 |
|
풀 리퀘스트 |
|
리뷰 |
|
커밋 |
|
설정
의존성 설치
pip install -r requirements.txtGitHub 토큰 생성
https://github.com/settings/tokens로 이동하여 다음 중 하나를 만드세요.
classic PAT with the
reposcope, orfine-grained PAT with
Contents,Issues,Pull requests, andMetadataset to Read & write, scoped to the repos you want the agent to touch.
토큰을 환경 변수로 설정하기
export GITHUB_TOKEN=ghp_your_token_here단독 실행 (선택적 기본 동작 확인)
python server.py이 명령은 MCP 클라이언트가 stdio로 연결하기를 기다리며 대기합니다. 정상 동작입니다. 웹 서버가 아닙니다.
Related MCP server: GitHub MCP Server
Claude Desktop에 연결하기
claude_desktop_config.json에 다음을 추가하세요.
Windows에서는 %APPDATA%\Claude\claude_desktop_config.json,
macOS에서는 ~/Library/Application Support/Claude/claude_desktop_config.json입니다.
{
"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을 통해 통신할 수 있습니다. MCP C# SDK를 사용하는 .NET 호스트도 포함하고, orchestator가 polyglot이라면 Python/TypeScript SDK도 가능합니다. 클라이언트를 다음에 지정하세요:
command: python
args: ["/absolute/path/to/server.py"]
env: { "GITHUB_TOKEN": "<token>" }확장하기
새 도구를 추가하려면 server.py에 @mcp.tool() 데코레이터가 있는 함수를 추가하고, GitHub REST API에 대해 _request(method, path, ...)를 호출하면 됩니다. docstring은 모델에게 표시되는 도구 설명이 되고, 타입 힌트는 입력 스키마가 됩니다 — 둘 다 정확하게 유지하세요.
참고 사항
모든 쓰기 작업(
create_*,update_*,delete_*,merge_*) 은 GitHub에서 실제 변경을 수행합니다 — dry-run 모드가 없습니다. 특히merge_pull_request와delete_branch는 임시 저장소에서 먼저 테스트하는 것이 좋습니다.Rate limits follow GitHub's standard REST API limits — the server doesn't do its own throttling. (작성 기준 5000 requests/hour for authenticated requests) 서버는 자체 throttling을 하지 않습니다.
GitHub의 오류(잘못된 인증, 404, 병합 충돌 등)는 API 응답 본문과 함께
RuntimeError로 발생합니다. 따라서 호출한 에이전트는 대응할 수 있는 읽기 쉬운 메시지를 받습니다.
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