Fetches raw file contents and directory trees from GitHub repositories, with size, depth and filter options.
Setup
Choose your client, copy the config, then fill in any required environment variables.
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"
]
}
}
}