GitHub ๋ฆฌํฌ MCP
๋ชฉ์ฐจ
Related MCP server: GitHub DeepWiki MCP Server
โจ ์ฃผ์ ํน์ง
๐ป
stdioํ๋กํ ์ฝ์ ์ง์ํ๋ Cursor, Windsurf, Claude Desktop ๋ฐ ๊ธฐํ MCP ํด๋ผ์ด์ธํธ์ ํธํ๋ฉ๋๋ค.๐ ๋ชจ๋ ๊ณต๊ฐ GitHub ์ ์ฅ์์ ์ฝํ ์ธ ๋ฅผ ํ์ํ์ธ์
๐ ์ ์ฅ์ ๋๋ ํ ๋ฆฌ ๋ฐ ํ์ ๋๋ ํ ๋ฆฌ ํ์
๐ ์ฝ๋ ๋ฐ ํ ์คํธ ํ์ผ์ ๋ด์ฉ ๋ณด๊ธฐ
๐ฆ ํจํค์ง ๊ด๋ฆฌ์๋ฅผ ํตํ ๊ฐํธํ ์ค์น
์์ํ๊ธฐ
ํ์ ์กฐ๊ฑด
์๋ฒ๋ฅผ ์ค์นํ๋ ค๋ฉด ์์คํ ์ ๋ค์์ด ํ์ํฉ๋๋ค.
๋ ธ๋.js 18+
npm ๋๋ yarn
1๋จ๊ณ. ์ค์น
Smithery, NPX๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ IDE์ mcp.json์ ์ค์ ํ์ฌ GitHub Repo MCP๋ฅผ ์ค์นํ๊ณ ์คํํ ์ ์์ต๋๋ค.
๋งฅOS
์ง์์คํผ1
์๋์ฐ NPX
cmd /c npx -y github-repo-mcp.cursor/mcp.json์ ํตํ Windows NPX
{
"mcpServers": {
"github-repo-mcp": {
"command": "wsl",
"args": [
"bash",
"-c",
"cmd /c npx -y github-repo-mcp"
],
"enabled": true
}
}
}.cursor/mcp.json์ ํตํ Windows NPX(๊ฒฝ๋ก๊ฐ ์ค์ ๋์ง ์์ ๊ฒฝ์ฐ)
# Find the full path to npx first
which npx{
"mcpServers": {
"github-repo-mcp": {
"command": "wsl",
"args": [
"bash",
"-c",
"'/home/[username]/.nvm/versions/node/v20.18.0/bin/npx github-repo-mcp'"
],
"enabled": true
}
}
}Smithery๋ฅผ ํตํด ์ค์น
Smithery๋ฅผ ํตํด Claude Desktop์ฉ GitHub Repo MCP๋ฅผ ์๋์ผ๋ก ์ค์นํ๋ ค๋ฉด:
npx -y @smithery/cli install @Ryan0204/github-repo-mcp --client claude๋ช ์ด ์ ๋ ๊ธฐ๋ค๋ฆฌ๊ฑฐ๋, ๋ฑ๋ก๋์ง ์์ผ๋ฉด ์๋ก ๊ณ ์นจ ๋ฒํผ์ ๋ช ๋ฒ ํด๋ฆญํ์ธ์. ๊ทธ๋๋ ๋ฑ๋ก๋์ง ์์ผ๋ฉด ๋ช ๋ น์ด๋ฅผ ์ ๋๋ก ์ ๋ ฅํ๋์ง ํ์ธํ์ธ์.
2๋จ๊ณ. ๊ตฌ์ฑ
GitHub Repo MCP ์๋ฒ๋ GitHub API์ ์ก์ธ์คํ ๋ ๋ ๋์ ์๋ ์ ํ์ ์ํด GitHub ํ ํฐ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
ํ๊ฒฝ ๋ณ์
๋ณํ๊ธฐ ์ฌ์ด | ํ์์ | ๊ธฐ๋ณธ | ์ค๋ช |
| ์๋์ | ์์ | ๋ ๋์ ์๊ธ ์ ํ์ ์ํ GitHub ๊ฐ์ธ ์ก์ธ์ค ํ ํฐ |
GitHub ํ ํฐ ์ค์ (์ ํ ์ฌํญ)
์๋ฒ๋ ์ธ์ฆ ์์ด ์๋ํ์ง๋ง, GitHub API๋ ์ธ์ฆ๋์ง ์์ ์์ฒญ์ ๋ํด ํจ์ฌ ๋ฎ์ ์๋ ์ ํ์ ์ ์ฉํฉ๋๋ค. ์๋ ์ ํ์ ๋์ด๋ ค๋ฉด:
https://github.com/settings/tokens ์์ ๊ฐ์ธ ์ก์ธ์ค ํ ํฐ์ ์์ฑํ์ธ์.
mcp.json์์ ํ ํฐ์ ํ๊ฒฝ ๋ณ์๋ก ์ค์ ํฉ๋๋ค.
{
"mcpServers": {
"github-repo-mcp": {
"command": "...",
"args": [
...
],
"env": {
"GITHUB_TOKEN": "Your_Github_Token"
}
"enabled": true,
}
}
}๊ธฐ๋ฅ ๊ฐ์
์ ์ฅ์ ํ์ ๋๊ตฌ
์ด ์๋ฒ๋ GitHub ์ ์ฅ์์ ์ํธ ์์ฉํ๊ธฐ ์ํ ์ธ ๊ฐ์ง ์ฃผ์ ๋๊ตฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
1. getRepoAllDirectories
GitHub ์ ์ฅ์ ๋ฃจํธ์ ์๋ ๋ชจ๋ ํ์ผ๊ณผ ๋๋ ํ ๋ฆฌ๋ฅผ ๋์ดํฉ๋๋ค.
๋งค๊ฐ๋ณ์ :
repoUrl: GitHub ์ ์ฅ์์ URL(์: " https://github.com/owner/repo ")
2. getRepoDirectories
GitHub ์ ์ฅ์์ ํน์ ๋๋ ํ ๋ฆฌ์ ๋ด์ฉ์ ๋์ดํฉ๋๋ค.
๋งค๊ฐ๋ณ์ :
repoUrl: GitHub ์ ์ฅ์์ URLpath: ๊ฐ์ ธ์ฌ ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก(์: "src")
3. getRepoFile
GitHub ์ ์ฅ์์์ ํน์ ํ์ผ์ ๋ด์ฉ์ ๊ฒ์ํ์ฌ ํ์ํฉ๋๋ค.
๋งค๊ฐ๋ณ์ :
repoUrl: GitHub ์ ์ฅ์์ URLpath: ๊ฐ์ ธ์ฌ ํ์ผ ๊ฒฝ๋ก(์: "src/index.js")
์ฌ์ฉ ์
๋ค์์ AI ๋์ฐ๋ฏธ์ ํจ๊ป ์ด๋ฌํ ๋๊ตฌ๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ๋ช ๊ฐ์ง ์์ ๋๋ค.
์ ์ฅ์ ๋ฃจํธ ํ์ : AI ๋น์์๊ฒ " https://github.com/Ryan0204/github-repo-mcp ์ ์๋ ์ ์ฅ์์ ๋ด์ฉ์ ๋ณด์ฌ์ฃผ์ธ์"๋ผ๊ณ ์์ฒญํ์ธ์.
ํน์ ๋๋ ํ ๋ฆฌ ํ์ : " https://github.com/Ryan0204/github-repo-mcp ์ src ๋๋ ํ ๋ฆฌ์ ์ด๋ค ํ์ผ์ด ์๋์?"๋ผ๊ณ ์ง๋ฌธํด ๋ณด์ธ์.
ํ์ผ ๋ณด๊ธฐ : " https://github.com/Ryan0204/github-repo-mcp ์์ README.md ํ์ผ์ ๋ณด์ฌ์ฃผ์ธ์"๋ผ๊ณ ์์ฒญํฉ๋๋ค.
์ ํ ์ฌํญ
์๋ ์ ํ : ์ธ์ฆ ์์ด GitHub API๋ ์๊ฒฉํ ์๋ ์ ํ(์๊ฐ๋น 60๊ฐ ์์ฒญ)์ ๊ฐ์ต๋๋ค.
๊ฐ์ธ ์ ์ฅ์ : ์ ์ ํ ๊ถํ์ด ์๋ ํ ํฐ์ด ์ ๊ณต๋์ง ์๋ ํ ๊ณต๊ฐ ์ ์ฅ์์๋ง ์ก์ธ์คํ ์ ์์ต๋๋ค.
๋ฐ์ด๋๋ฆฌ ํ์ผ : ์๋ฒ๋ ์ผ๋ฐ์ ์ธ ๋ฐ์ด๋๋ฆฌ ํ์ผ ํ์ฅ์๋ฅผ ๊ฐ์งํ๊ณ ํด๋น ๋ด์ฉ์ ํ์ํ์ง ์์ต๋๋ค.
๋์ฉ๋ ํ์ผ : GitHub API์๋ ๊ฒ์ํ ์ ์๋ ํ์ผ ํฌ๊ธฐ์ ์ ํ์ด ์์ต๋๋ค.
๋ฌธ์ ํด๊ฒฐ
ํํ ๋ฐ์ํ๋ ๋ฌธ์ ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์๋ ์ ํ ์ด๊ณผ : ๊ตฌ์ฑ ์น์ ์ ์ค๋ช ๋ ๋๋ก GitHub ํ ํฐ์ ์ค์ ํ์ธ์.
๋ช ๋ น์ ์ฐพ์ ์ ์์ต๋๋ค : ํจํค์ง๊ฐ ์ ์ญ์ ์ผ๋ก ์ค์น๋์๋์ง ํ์ธํ์ธ์.
์ฐ๊ฒฐ ์ค๋ฅ : ์ธํฐ๋ท ์ฐ๊ฒฐ ๋ฐ GitHub API ์ํ๋ฅผ ํ์ธํ์ธ์
๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด ์ค๋ฅ ๋ฉ์์ง ์ถ๋ ฅ์ ํ์ธํ๊ฑฐ๋ GitHub ์ ์ฅ์์ ๋ฌธ์ ๋ฅผ ์์ฑํ์ธ์.
์ฆ๊ฒจ๋ณด์ธ์! โบ๏ธ
Maintenance
Latest Blog Posts
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/Ryan0204/github-repo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
