Get GitHub repository stats, search repos, analyze languages, and compare projects
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add github-analytics --env APIFY_TOKEN='<APIFY_TOKEN>' -- npx -y @thenextgennexus/github-analytics-mcp-server~/.codex/config.toml
[mcp_servers.github-analytics]
command = "npx"
args = ["-y", "@thenextgennexus/github-analytics-mcp-server"]
env = { APIFY_TOKEN = "<APIFY_TOKEN>" }
# codex mcp add github-analytics --env APIFY_TOKEN='<APIFY_TOKEN>' -- npx -y @thenextgennexus/github-analytics-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"github-analytics": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/github-analytics-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"github-analytics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@thenextgennexus/github-analytics-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-analytics": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/github-analytics-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-analytics": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/github-analytics-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-analytics": {
"command": "npx",
"args": [
"-y",
"@thenextgennexus/github-analytics-mcp-server"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}Environment variables
APIFY_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.