A Model Context Protocol (MCP) server that provides GitHub trending repositories
Project description
GitHub Trending MCP Server
A Model Context Protocol (MCP) server that provides GitHub trending repositories information. This server allows LLMs to fetch and analyze trending repositories on GitHub.
Features
- 🔥 Get real-time GitHub trending repositories
- 🌐 Filter by programming language (Python, JavaScript, Rust, Go, etc.)
- 📅 Filter by time range (daily, weekly, monthly)
- 🗣️ Filter by spoken language (Chinese, English, Japanese, etc.)
- 📊 Returns detailed repository information including stars, forks, description, and contributors
Installation
Using pip
pip install github-trending-mcp
Using uv (recommended)
uv pip install github-trending-mcp
Usage
As a CLI tool
github-trending-mcp
Configure with Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"github-trending": {
"command": "github-trending-mcp"
}
}
}
Or if using uv:
{
"mcpServers": {
"github-trending": {
"command": "uv",
"args": ["run", "github-trending-mcp"]
}
}
}
Or using uvx directly:
{
"mcpServers": {
"github-trending": {
"command": "uvx",
"args": ["github-trending-mcp"]
}
}
}
Configure with Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"github-trending": {
"command": "github-trending-mcp"
}
}
}
Available Tools
get_github_trending
Fetches GitHub trending repositories with optional filters.
Parameters:
| Parameter | Type | Description | Default |
|---|---|---|---|
language |
string | Programming language filter (e.g., 'python', 'javascript', 'rust') | "" (all) |
since |
string | Time range: 'daily', 'weekly', or 'monthly' | "daily" |
spoken_language |
string | Spoken language code (e.g., 'zh', 'en', 'ja') | "" (all) |
Example Usage in Claude:
Get the trending Python repositories this week
Show me trending Rust projects with Chinese descriptions
What are the monthly trending JavaScript repositories?
Response Format
The tool returns formatted markdown with repository information:
# GitHub Trending Repositories
**Filters:** Language: python, Period: daily, Spoken Language: All
**Total:** 25 repositories
---
## 1. [owner/repo-name](https://github.com/owner/repo-name)
📝 Repository description here
- ⭐ Stars: 1,234
- 🍴 Forks: 567
- 💻 Language: Python
- 📈 234 stars today
- 👥 Built by: user1, user2, user3
Development
Clone the repository
git clone https://github.com/wwango/github-trending-mcp.git
cd github-trending-mcp
Install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"
Run tests
pytest
Build the package
uv build
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
- Built with MCP (Model Context Protocol)
- Data sourced from GitHub Trending
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file github_trending_mcp-0.1.0.tar.gz.
File metadata
- Download URL: github_trending_mcp-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5008f4d3300a85c35899f65a927a17d63e48fa2f76fc26b20b5825a8e30e5552
|
|
| MD5 |
f4fa73e0c30f7f414039375e51f08435
|
|
| BLAKE2b-256 |
baf4359903993accb591aec57cdf67006c70652666361fa4d49df959a7a1b79f
|
File details
Details for the file github_trending_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: github_trending_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6408d57d7a224eb373fa5a7905946ea6fccfa7e49247c42dd20a7acc366f286c
|
|
| MD5 |
8f222f7f7f3bdfcd7dfc8f3d5afd622e
|
|
| BLAKE2b-256 |
5e99c1889a15445b3668c7f0d4a339f0d968ac74babec0e917e6222f5de297b5
|