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 "Deploy 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-mcp search 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: github-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
Available Tools
5 toolsget_starA
Get full details for one starred repo by its full name (owner/repo).
Inputs: full_name (required).
list_starsB
List your GitHub starred repos, with optional language filter and sorting.
Inputs: sort, limit, offset, language.
refresh_starsA
Force a full re-fetch of your starred repos from the GitHub API and update the local database. Read tools already check for updates automatically on use.
Inputs: no named parameters.
search_starsA
Search your GitHub starred repos by keyword (matches name, description, and topics). Optionally filter by language.
Inputs: query (required), limit, language.
stars_statusA
Show when the local stars database was last checked and last synced.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: search, list, get single, refresh, and status. While search and list both return starred repos, search focuses on keyword matching while list is for general listing with sorting, so no ambiguity.
Most tools follow a verb_noun pattern (search_stars, list_stars, refresh_stars), but get_star uses singular while others use plural, and stars_status is a noun phrase rather than verb_noun. These are minor deviations from an otherwise consistent convention.
Five tools is well-scoped for the server's purpose of managing GitHub starred repos. Each tool serves a distinct function without redundancy, and the count is neither too thin nor excessive for this niche domain.
The tool set covers the full lifecycle for reading and syncing starred repos: search, list, get details, refresh, and status. There are no obvious gaps in the stated purpose, and the automatic update check covers the freshness concern.
Maintenance
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…
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.7MIT
- AlicenseAqualityDmaintenanceGitHub 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.7MIT
- AlicenseNot gradedqualityBmaintenanceMCP server to manage your GitHub starred repositories and lists17MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that helps coding agents research and prepare GitHub contributions by gathering repository guidance, related work, code context, and validation evidence into a local SQLite corpus, without ever writing to GitHub.100 npm33MIT