GitHub Stars MCP Server

by ccbikai

111 stars
707 downloads
Not rated
GitHub

About

A Cloudflare-powered MCP (Model Context Protocol) Server that allows you to search and query your GitHub starred repositories using natural language.

Details

Author
ccbikai
GitHub stars
111
Downloads
707
Categories
Developer Tools

- Automatically fetches and processes GitHub starred repositories
- Scheduled weekly updates via GitHub Actions
- Stores repository metadata and README content
- Provides semantic search through Cloudflare AutoRAG
- Exposes MCP-compatible API for AI agent integration

Set up prerequisites (Node.js v22, pnpm, GitHub token with repo scope, Cloudflare account). Configure GitHub Secrets and Cloudflare environment variables. Deploy to Cloudflare Workers (using pnpm deploy). Then interact via any MCP-compatible client using Streamable HTTP at your worker URL, passing the MCP_API_KEY in the Authorization: Bearer header. Use the tool search_github_stars with a natural language query parameter.

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 | 简体中文

---

Overview

This project creates a searchable database of your GitHub starred repositories by:

1. Fetching all your starred repositories using the GitHub API
2. Extracting and processing the README files from each repository
3. Uploading the processed data to Cloudflare R2 storage
4. Using Cloudflare AutoRAG to create embeddings for efficient searching
5. 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 repo scope
- Cloudflare account

Configuration

1. Clone this repository
2. Set up Cloudflare R2:

- Create a R2 bucket
- Configure R2 access credentials

3. Configure GitHub Secrets for the CI/CD workflow:

- GH_TOKEN: GitHub token for fetching starred repositories
- R2_ACCOUNT_ID: Cloudflare account ID
- R2_ACCESS_KEY_ID: R2 access key
- R2_SECRET_ACCESS_KEY: R2 secret key
- R2_BUCKET: R2 bucket name

4. Configure Cloudflare AutoRAG:
- Create an AutoRAG instance in Cloudflare
- Set the AUTO_RAG_NAME environment 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:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.