Fetches raw file contents and directory trees from GitHub repositories, with size, depth and filter options.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add github-fetcher -- npx -y github-fetcher-mcp --repoIdentifier facebook/react/main~/.codex/config.toml
[mcp_servers.github-fetcher]
command = "npx"
args = ["-y", "github-fetcher-mcp", "--repoIdentifier", "facebook/react/main"]
# codex mcp add github-fetcher -- npx -y github-fetcher-mcp --repoIdentifier facebook/react/main~/.cursor/mcp.json
{
"mcpServers": {
"github-fetcher": {
"command": "npx",
"args": [
"-y",
"github-fetcher-mcp",
"--repoIdentifier",
"facebook/react/main"
]
}
}
}.vscode/mcp.json
{
"servers": {
"github-fetcher": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"github-fetcher-mcp",
"--repoIdentifier",
"facebook/react/main"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-fetcher": {
"command": "npx",
"args": [
"-y",
"github-fetcher-mcp",
"--repoIdentifier",
"facebook/react/main"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-fetcher": {
"command": "npx",
"args": [
"-y",
"github-fetcher-mcp",
"--repoIdentifier",
"facebook/react/main"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-fetcher": {
"command": "npx",
"args": [
"-y",
"github-fetcher-mcp",
"--repoIdentifier",
"facebook/react/main"
]
}
}
}