github-stars-mcp
This MCP server lets you manage and query your GitHub starred repositories from a local SQLite cache. Key capabilities:
Search stars by keyword across name, description, and topics, with optional language filtering and a configurable result limit.
List stars with optional language filter, sorting (by recently starred, most stars, or name), and pagination.
Get details for a specific starred repo using its
owner/reponame.Force refresh the local cache from the GitHub API.
Check cache status – view last checked and last synced timestamps.
Provides tools to search, list, and retrieve details about a user's GitHub starred repositories, with a local SQLite cache for fast, offline-friendly reads and automatic freshness checks against the GitHub API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@github-stars-mcpsearch my starred repos for machine learning projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
github-stars-mcp
Your GitHub starred repos ("favorites") in a local SQLite cache, served over Model Context Protocol — so you can search and list your stars from Claude Desktop, Kimi Code, Cursor, VS Code, or any other MCP client, with your own GitHub account.
GitHub API (GET /user/starred, paginated)
│ ETag check on every use; full sync when changed
▼
SQLite ~/.github-stars-mcp/stars.db ──► MCP server (stdio) ──► your MCP clientFeatures
Zero-config freshness: every query checks GitHub with a conditional request (ETag). A
304 Not Modifiedcosts no rate-limit quota; a200triggers a full sync before answering.Instant, offline-friendly reads from a local SQLite cache.
No native dependencies — uses Node's built-in
node:sqlite.Your token never leaves your machine: plain env var, local
.env, or your logged-inghCLI.
Requirements
Node.js ≥ 22.5 (for the built-in SQLite module)
A way to authenticate with GitHub (any one of):
GITHUB_TOKENenv var — a personal access token (fine-grained tokens need no special scopes for public stars; classic tokens needread:user)~/.github-stars-mcp/.envwithGITHUB_TOKEN=...the GitHub CLI logged in (
gh auth login) — used automatically as a fallback
Related MCP server: StarSeeker MCP
Quick start (npx — straight from GitHub)
No npm account or registry needed; npx installs and builds straight from this repo (the first run takes ~30s because it compiles TypeScript; after that it runs from cache).
Prime the local cache (first sync):
npx -y github:ENFernandes/github-stars-mcp syncThen add the server to your MCP client (see configs below):
{
"mcpServers": {
"github-stars": {
"command": "npx",
"args": ["-y", "github:ENFernandes/github-stars-mcp"]
}
}
}If you authenticate via option 1, pass the token through the client config:
{
"mcpServers": {
"github-stars": {
"command": "npx",
"args": ["-y", "github:ENFernandes/github-stars-mcp"],
"env": { "GITHUB_TOKEN": "ghp_..." }
}
}
}To pin a specific release instead of tracking the default branch, append a tag:
github:ENFernandes/github-stars-mcp#v0.1.0.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows) — use the JSON block above.
Kimi Code
~/.kimi-code/mcp.json (user level) or .kimi-code/mcp.json (project level) —
same block as above. Then /mcp in the TUI to verify.
Cursor
Settings → MCP → add server, or edit ~/.cursor/mcp.json — same block as above.
VS Code
.vscode/mcp.json in your workspace (or user settings) uses a servers key:
{
"servers": {
"github-stars": {
"command": "npx",
"args": ["-y", "github-stars-mcp"]
}
}
}Other clients
Any client that supports MCP stdio servers works: point it at
npx -y github:ENFernandes/github-stars-mcp (the serve subcommand is the default).
Install from source
git clone https://github.com/ENFernandes/github-stars-mcp.git
cd github-stars-mcp
npm install
npm run sync # builds and primes the cacheThen register the absolute path instead of npx:
{
"mcpServers": {
"github-stars": {
"command": "node",
"args": ["/absolute/path/to/github-stars-mcp/dist/server.js"]
}
}
}MCP tools
Tool | Description |
| Keyword search over name, description, and topics; optional language filter |
| List stars with language filter, sort (recent / stars / name), pagination |
| Full details for one repo by |
| Force a full re-fetch from the GitHub API (rarely needed — see below) |
| Show cache size and last check / last sync timestamps |
How freshness works
Every use of a read tool (search_stars, list_stars, get_star) first asks
GitHub "did my starred list change?" with a conditional request
(If-None-Match + the ETag stored from the last sync):
304 Not Modified → the query is answered from the local DB. The check costs one lightweight request that does not count against the rate limit.
200 OK → something changed; the server runs a full sync before answering. The check's response is page 1 of the sync, so no request is wasted.
Checks are throttled to at most one per minute, and a failed check (offline, token issue) never blocks reads — you just get the cached data.
Note: the conditional check watches page 1 (100 most recent stars). Adding a
star is always detected; an unstar beyond the 100 most recent may only be
picked up by a later change or an explicit refresh_stars /
npx -y github:ENFernandes/github-stars-mcp sync.
Data and configuration locations
What | Where | Override |
SQLite cache |
|
|
Optional |
|
|
Development
npm run build # type-check + compile to dist/
npm run smoke # end-to-end stdio test: lists tools, runs real queriesSearch uses SQL LIKE, which is plenty fast for thousands of stars; FTS5 can
be added later if needed. node:sqlite is marked experimental by Node — it
prints a harmless warning on stderr and does not affect the MCP protocol.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceLocal MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.Last updated
- AlicenseBqualityCmaintenanceA powerful MCP server that helps you discover relevant repositories from your own starred list on GitHub using BM25 keyword ranking and Gemini Semantic Search.Last updated217MIT
- AlicenseBqualityCmaintenanceA minimal MCP server for GitHub that enables browsing repos, reading code, searching, and getting insights through natural language via Claude, Cursor, or any MCP client.Last updated7MIT
- AlicenseAqualityCmaintenanceGitHub MCP server for Claude Code, Cursor, Cline, Windsurf, and any MCP-compatible client. Exposes GitHub tools (issues, pull requests, code search, file content) to your LLM via the Model Context Protocol.Last updated7MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ENFernandes/github-stars-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server