GitHub Repository MCP Server
GitHub 저장소 MCP 서버
이 모델 컨텍스트 프로토콜(MCP) 서버는 AI 모델이 GitHub 저장소 콘텐츠에 컨텍스트로 접근할 수 있도록 합니다. AI 상호작용에서 컨텍스트로 사용할 파일 콘텐츠, 저장소 구조 및 전체 저장소를 가져오는 도구를 제공합니다.
특징
전체 저장소 내용을 컨텍스트로 가져오기
저장소에서 특정 파일 내용 가져오기
저장소 구조(파일 목록) 가져오기
확장자로 파일 필터링
특정 경로 제외
반환되는 파일 수 제한
Related MCP server: GitHub Repo Explainer MCP
설치
지엑스피1
용법
GitHub 인증 설정
서버는 인증 없이 공개 저장소를 사용할 수 있지만, GitHub API는 인증되지 않은 요청에 대해 엄격한 속도 제한(시간당 60개 요청)을 적용합니다. 이 제한을 시간당 5,000개 요청으로 늘리려면 GITHUB_TOKEN 환경 변수를 설정하세요.
# create a file called gh.sh and add the following line:
export GITHUB_TOKEN=your_github_personal_access_token
# make the file executable
chmod +x gh.sh
# run the file
./gh.shGitHub 개발자 설정 에서 개인 액세스 토큰을 만들 수 있습니다.
커서와 함께 사용
이 서버를 Cursor와 함께 사용하려면 다음 단계를 따르세요.
커서 설정 열기
"MCP"를 검색하세요
"새 MCP 서버 추가"를 클릭하세요.
다음 정보를 입력하세요:
이름: github-repo-context(또는 원하는 이름)
유형: 명령
명령어: /path/to/your-local-repo-setup/gh.sh
"저장"을 클릭하세요
서버 이름 옆에 있는 토글을 클릭하여 서버를 활성화합니다.
이제 프로젝트에서 서버를 사용할 수 있어야 합니다.
서버는 MCP 프로토콜에 따라 stdin/stdout을 통해 통신합니다.
사용 가능한 도구
서버는 다음과 같은 도구를 제공합니다.
get-repo-context : GitHub 저장소에서 모든 파일을 가져와 컨텍스트로 사용합니다.
매개변수:
owner: GitHub 저장소 소유자/조직 이름repo: GitHub 저장소 이름maxFiles(선택 사항): 포함할 최대 파일 수(기본값: 50)fileExtensions(선택 사항): 포함할 파일 확장자(예: ['js', 'ts', 'md'])excludePaths(선택 사항): 제외할 경로(기본값: ['node_modules', 'dist', 'build'])
get-file-content : GitHub 저장소에서 특정 파일의 내용을 가져옵니다.
매개변수:
owner: GitHub 저장소 소유자/조직 이름repo: GitHub 저장소 이름path: 저장소에 있는 파일의 경로
get-repo-structure : GitHub 저장소의 구조를 가져옵니다.
매개변수:
owner: GitHub 저장소 소유자/조직 이름repo: GitHub 저장소 이름
예
MCP를 지원하는 AI 모델과 통합하면 다음과 같은 명령을 사용할 수 있습니다.
Get the structure of the repository tensorflow/tensorflow그러면 AI는 get-repo-structure 도구를 사용하여 저장소 구조를 가져와서 표시합니다.
Available Tools
3 toolsget-file-contentC
Get content of a specific file from a GitHub repository
Inputs: owner (required), repo (required), path (required).
get-repo-contextC
Get all files from a GitHub repository to use as context
Inputs: owner (required), repo (required), maxFiles, fileExtensions, +1 more.
get-repo-structureC
Get the structure of a GitHub repository
Inputs: owner (required), repo (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools have overlapping purposes that could cause confusion. get-repo-context and get-repo-structure both retrieve repository information, with get-repo-context getting all files and get-repo-structure getting the structure, making their boundaries unclear. get-file-content is more distinct but still part of the same domain.
All tool names follow a consistent verb_noun pattern with hyphens (get-file-content, get-repo-context, get-repo-structure). The naming is predictable and readable throughout the set.
With only 3 tools, the server feels thin for a GitHub repository domain. It lacks essential operations like create, update, delete, or search, which are typical for such a purpose, making the scope incomplete and underpowered.
The tool surface is severely incomplete for a GitHub repository server. It only provides read-only file and structure retrieval, missing core CRUD operations (e.g., create/update files, manage issues/pull requests) and other common GitHub functionalities, leading to significant gaps that will hinder agent workflows.
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze GitHub repository structures and read file contents with features like directory traversal, file type analysis, syntax highlighting, and code pattern detection. Supports both public and private repositories through GitHub API integration.5 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency analysis.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze GitHub repositories, including fetching repository details, searching, and retrieving README content.2MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.10ISC