HM

hetaobackend/mcp-github-trending

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

62 stars 15 forks 质量 71 趋势 13MIT

获取GitHub热门仓库和开发者的MCP服务器

概览

一个MCP服务器,通过简单的API接口提供访问GitHub热门仓库和开发者数据的访问。 - 访问GitHub热门仓库和开发者数据 - 按编程语言筛选 - 按时间段(每日、每周、每月)过滤 - 按口语语言筛选 - 返回格式良好的JSON响应 服务器实现了以下工具: 从GitHub获取具有以下参数的热门仓库: - 语言(可选):用于过滤仓库的编程语言(例如“python”、“javascript”)- 自从(可选):按(“每日”、“每周”、“每月”)过滤仓库的时间段。默认为“daily”- spoken_language(可选):用于通过过滤仓库的口语语言 从GitHub获取热门开发者,参数如下: - 语言(可选):可筛选的编程语言(如“python”、“javascript”)- 自(可选):可筛选的时间段(“每日”、“每周”、“每月”)。

概述(AI 翻译)

一个MCP服务器,通过简单的API接口提供访问GitHub热门仓库和开发者数据的访问。

特色

  • 访问GitHub趋势仓库和开发者数据
  • 按编程语言筛选
  • 按时间段筛选(每日、每周、每月)
  • 按口语过滤
  • 返回格式良好的JSON响应

工具

服务器实现了以下工具:

get_github_trending_repositories

从GitHub获取具有以下参数的热门仓库:

  • language(可选):用于过滤仓库的编程语言(例如“python”、“javascript”)
  • since(可选):按(“每日”、“每周”、“每月”)来过滤仓库的时间段。默认为“每日”
  • spoken_language(可选):口语用于过滤仓库

示例回答:

get_github_trending_developers

从GitHub获取热门开发者,参数如下:

  • language(可选):编程语言可通过过滤(例如“python”、“javascript”)
  • since(可选):时间段可按(“每日”、“每周”、“每月”)筛选。默认为“每日”

示例回答:

安装

先决条件

  • Python 3.12

安装步骤

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-github-trending MCP Server

A MCP server that provides access to GitHub trending repositories and developers data through a simple API interface.

Features

  • Access GitHub trending repositories and developers data
  • Filter by programming language
  • Filter by time period (daily, weekly, monthly)
  • Filter by spoken language
  • Returns well-formatted JSON responses

Tools

The server implements the following tools:

get_github_trending_repositories

Gets trending repositories from GitHub with the following parameters:

  • language (optional): Programming language to filter repositories by (e.g. “python”, “javascript”)
  • since (optional): Time period to filter repositories by (“daily”, “weekly”, “monthly”). Defaults to “daily”
  • spoken_language (optional): Spoken language to filter repositories by

Example response:

[
  {
    "name": "repository-name",
    "fullname": "owner/repository-name",
    "url": "https://github.com/owner/repository-name",
    "description": "Repository description",
    "language": "Python",
    "stars": 1000,
    "forks": 100,
    "current_period_stars": 50
  }
]

get_github_trending_developers

Gets trending developers from GitHub with the following parameters:

  • language (optional): Programming language to filter by (e.g. “python”, “javascript”)
  • since (optional): Time period to filter by (“daily”, “weekly”, “monthly”). Defaults to “daily”

Example response:

[
  {
    "username": "developer",
    "name": "Developer Name",
    "url": "https://github.com/developer",
    "avatar": "https://avatars.githubusercontent.com/u/123456",
    "repo": {
      "name": "repository-name",
      "description": "Repository description",
      "url": "https://github.com/developer/repository-name"
    }
  }
]

Installation

Prerequisites

  • Python 3.12

Install Steps

Install the package:

pip install mcp-github-trending

Claude Desktop Configuration

On MacOS:

~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows:

%APPDATA%/Claude/claude_desktop_config.json
在 GitHub 查看完整 README

安装

uvx mcp-github-trending
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-github-trending": { "command": "uv", "args": [ "--directory", "/path/to/mcp-github-trending", "run", "mcp-github-trending" ] } } }