Install
$ agentstack add mcp-miantiao-me-github-stars ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
GitHub Stars MCP Server
A Cloudflare-powered MCP (Model Context Protocol) Server that allows you to search and query your GitHub starred repositories using natural language.
English | [简体中文](/README.zh.md)
Overview
This project creates a searchable database of your GitHub starred repositories by:
- Fetching all your starred repositories using the GitHub API
- Extracting and processing the README files from each repository
- Uploading the processed data to Cloudflare R2 storage
- Using Cloudflare AutoRAG to create embeddings for efficient searching
- Exposing a MCP Server that allows querying these repositories via natural language
Features
- Automatically fetches and processes GitHub starred repositories
- Scheduled weekly updates via GitHub Actions
- Stores repository metadata and README content
- Provides semantic search capabilities through Cloudflare AutoRAG
- Exposes a MCP-compatible API for integration with AI agents
Setup
Prerequisites
- Node.js (v22 recommended)
- PNPM package manager
- GitHub Personal Access Token with
reposcope - Cloudflare account
Configuration
- Clone this repository
- Set up Cloudflare R2:
- Create a R2 bucket
- Configure R2 access credentials
- Configure GitHub Secrets for the CI/CD workflow:
GH_TOKEN: GitHub token for fetching starred repositoriesR2_ACCOUNT_ID: Cloudflare account IDR2_ACCESS_KEY_ID: R2 access keyR2_SECRET_ACCESS_KEY: R2 secret keyR2_BUCKET: R2 bucket name
- Configure Cloudflare AutoRAG:
- Create an AutoRAG instance in Cloudflare
- Set the
AUTO_RAG_NAMEenvironment variable in your Cloudflare Worker MCP_API_KEY: API key for securing MCP server access (generate a secure random string)
Local Development
To develop locally:
# Install dependencies
pnpm install
# Fetch your GitHub stars locally
pnpm dev:stars
# Run MCP server locally
pnpm dev:mcp
Deployment
Deploy to Cloudflare Workers:
pnpm deploy
The GitHub Action will automatically:
- Run weekly to update your starred repositories
- Upload the processed files to R2
- Rebuild the AutoRAG index
Usage
Once deployed, you can interact with the MCP Server using any MCP-compatible client:
API Key Authentication
The MCP server requires API key authentication for security. Include your MCP_API_KEY in the request headers:
Authorization: Bearer your-mcp-api-key
Endpoint
Streamable HTTP: https://your-worker-url.workers.dev
API Reference
MCP Tool: search_github_stars
Searches through your starred GitHub repositories.
Parameters:
query(string): Natural language query to search repositories
Response:
- JSON result containing matching repositories and relevant README content
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: miantiao-me
- Source: miantiao-me/github-stars
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.