Provides access to GitHub Trending data, allowing retrieval of trending repositories with filtering options by programming language and time range (daily/weekly/monthly).
GitHub Trending Service
GitHub 热门项目 API + MCP 服务,部署在 Cloudflare Pages 上。
功能
🔥 REST API - 获取 GitHub Trending 项目数据
🤖 MCP Server - 让 AI 助手(Claude/Kiro)直接查询热门项目
📄 OpenAPI Spec - 支持 GPT/Gemini Function Calling
项目结构
部署方式
方式 1: GitHub 自动部署 (推荐)
将代码推送到 GitHub 仓库
进入 Workers & Pages → Create → Pages → Connect to Git
选择你的 GitHub 仓库
配置构建设置:
Build command:
npm run buildBuild output directory:
public
点击 Save and Deploy
每次 push 到 main 分支会自动部署。
方式 2: 命令行部署
API 使用
REST API
MCP 配置
在 Kiro 或 Claude Desktop 中添加:
GPT/Gemini Function Calling
获取 OpenAPI 规范:
本地开发
访问 http://localhost:8788
可选: 配置 KV 缓存
在 Cloudflare Dashboard 创建 KV Namespace
进入 Pages 项目 → Settings → Functions → KV namespace bindings
添加绑定: Variable name =
TRENDING_CACHE
License
MIT