一个基于 Model Context Protocol (MCP) 的服务器,为 AI 应用(如 Claude Code)提供实时访问 GitHub 热门仓库和开发者数据的能力。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add github-trending -- npx -y @npm_xiyuan/github-trending-mcp~/.codex/config.toml
[mcp_servers.github-trending]
command = "npx"
args = ["-y", "@npm_xiyuan/github-trending-mcp"]
# codex mcp add github-trending -- npx -y @npm_xiyuan/github-trending-mcp~/.cursor/mcp.json
{
"mcpServers": {
"github-trending": {
"command": "npx",
"args": [
"-y",
"@npm_xiyuan/github-trending-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"github-trending": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@npm_xiyuan/github-trending-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-trending": {
"command": "npx",
"args": [
"-y",
"@npm_xiyuan/github-trending-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-trending": {
"command": "npx",
"args": [
"-y",
"@npm_xiyuan/github-trending-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-trending": {
"command": "npx",
"args": [
"-y",
"@npm_xiyuan/github-trending-mcp"
]
}
}
}