Skip to main content
Glama

๐Ÿš€ StarSeeker MCP: GitHub Stars Intelligence Agent

MCPVault: verified

A powerful MCP (Model Context Protocol) server that helps you discover relevant repositories from your own starred list on GitHub. It uses BM25 keyword ranking and Gemini Semantic Search to find the best tools for your next project.

๐Ÿ“ธ Screenshots

Related MCP server: LibrAIum

๐Ÿš€ Features

  • Semantic Search: Find repositories based on meaning and context, not just keywords, using Google Gemini (gemini-embedding-001).

  • Hybrid Search: Google gemini text embedding + BM25( Fallback to BM25 and popularity-based rank fusion when gemini embedding isn't available.)

  • Docker Ready: Easy containerized deployment.

  • Fast Performance: Persistent embedding cache and efficient batching.

๐Ÿ›  File Structure for MCP

  • mcp_server.py: Main entry point.

  • server.py: Tool definitions and MCP logic.

  • search_engine.py: Core logic for BM25 and Gemini embeddings.

  • github_client.py: GitHub API integration for fetching stars.

  • config.py: Configuration and environment management.

๐Ÿ“‹ Prerequisites

  • Python 3.13+

  • uv (recommended)

  • GitHub Personal Access Token (for higher rate limits)

  • Gemini API Key (for semantic search capabilities)

โš™๏ธ Installation & Setup

  1. Clone the repository:

    git clone <repository-url>
    cd Star_Seeker_mcp
  2. Set up Environment: Create a .env file in the root directory:

    GITHUB_TOKEN=your_github_token
    GEMINI_API_KEY=your_gemini_api_key

    Note: You can run without a GITHUB_TOKEN (GitHub API allows ~60 requests/hr or up to 1000 repos without a token), but a GEMINI_API_KEY is required for the Agent Playground and semantic search. I used free tier of Gemini API.

  3. Install Dependencies:

    uv sync

๐Ÿš€ Quick Start: One-Command Launch

The fastest way to run the server anywhere. No clone, no virtualenv setup:

uvx --from git+https://github.com/HikmetCTK/Star_Seeker_mcp star-seeker-mcp

uvx (part of uv) builds the package in a throwaway environment, runs the star-seeker-mcp console script, and leaves nothing behind. Set GEMINI_API_KEY and GITHUB_TOKEN in the environment to enable semantic search and higher GitHub rate limits; without them the server still starts and falls back to BM25 keyword search.

# From an existing clone
uv sync
uv run mcp_server.py

# Or via the installed console script
uv run star-seeker-mcp

๐ŸŽฎ Agent Playground

A Gradio chat UI for interacting with your GitHub stars interactively.

uv run agent_playground.py
  • Access: Open http://localhost:8080 in your browser.

  • Features: Chat with Gemini, ask it to fetch your stars, and then search through them using natural language.

๐Ÿ’ก Quick Tip: Once the UI is open, you can simply type:
github name : your_username. Find me some cool React libraries.
The agent will automatically fetch your stars (if not cached) and perform a semantic search.

2. Launch the CLI Version

If you prefer the terminal:

uv run agent_playground.py --cli

๐Ÿ”Œ MCP Server (Integration for Antigravity/Cursor/Claude)

If you want to use StarSeeker as a tool inside Cursor, Claude Desktop, or Antigravity, follow these steps.

1. Antigravity (tested with Antigravity)

Antigravity provides the easiest setup experience with a visual interface.

  1. Open Antigravity

  2. Click the 3 dots in the top right corner

  3. Select "MCP Servers" โ†’ "Manage Servers" โ†’ "View Raw Config"

  4. Paste this configuration and restart Antigravity :

{
  "mcpServers": {
    "star-seeker-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\path\\to\\Star_Seeker_mcp",
        "run",
        "mcp_server.py"
      ],
      "env": {
        "GEMINI_API_KEY": "your_key",
        "GITHUB_TOKEN": "your_token"
      }
    }
  }
}
  1. Replace C:\\path\\to\\Star_Seeker_mcp with your actual installation path

  2. Replace the API keys with your actual keys

  3. Restart Antigravity

  4. You can see writing @MCP Server in Antigravity chat

2.VSCODE

  1. Create mcp.json file in workspace folder or find if it exists.

  2. Add this configuration to mcp.json file

{
  "mcpServers": {
    "github-stars-seeker": {
      "command": "uv",
      "args": [
        "--directory",
        "c:path\\to\\Star_Seeker_mcp",
        "run",
        "mcp_server.py"
      ],
      "env": {
        "GITHUB_TOKEN": "your_github_token",
        "GEMINI_API_KEY": "your_gemini_api_key"
      }
    }
  }
}

  1. click start button .

  2. You can use it

3. Cursor AI

  1. Settings -> Cursor Settings -> MCP.

  2. + Add New MCP Server.

  3. Name: StarSeeker, Type: command.

  4. Command: uv --directory "C:\path\to\Star_Seeker_mcp" run mcp_server.py

3. Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "star-seeker-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\path\\to\\Star_Seeker_mcp",
        "run",
        "mcp_server.py"
      ],
      "env": {
        "GITHUB_TOKEN": "your_token",
        "GEMINI_API_KEY": "your_key"
      }
    }
  }
}

๐Ÿ›  MCP Tools

fetch_stars_tool

Fetches all starred repositories for a given GitHub username and prepares the search index.

  • Args: username (required), token (optional)

search_stars_tool

Search through the fetched repositories using semantic or keyword search.

  • Args: username (required), query (required)

๐Ÿ”Œ Integrations

Option A: Running with Docker

The Docker image is optimized to only install the core MCP server dependencies (skipping Gradio).

  1. Build and Start:

    docker-compose up --build -d
  2. Access: The server runs on stdio/HTTP inside the container, ready for your tools.

Option B: Running Locally

uv run mcp_server.py

๐Ÿ“‚ Data Storage & Access

The server stores fetched JSON data and search embeddings in a centralized directory to avoid duplicates and ensure persistence.

File Locations

  • Local (Windows): explorer %USERPROFILE%\.star_seeker_mcp to open the directory

  • Local (Linux/macOS): ~/.star_seeker_mcp

  • Inside Docker: /root/.star_seeker_mcp (backed by a Docker volume)

Terminal Commands to Access Data

View Local Data Files (Windows CMD)

dir %USERPROFILE%\.star_seeker_mcp

View Data Files Inside Running Docker Container

docker exec -it star-seeker-mcp ls -lh /root/.star_seeker_mcp

Copy a Data File from Docker to Local Machine

docker cp star-seeker-mcp:/root/.star_seeker_mcp/yourusername_stars.json .

๐Ÿง  How it Works

  1. Data Collection: Fetches repo names, descriptions, and topics via GitHub API.

  2. Indexing:

    • Generates vector embeddings for all descriptions using gemini-embedding-001.

    • Builds a BM25 index for keyword search fallback.

  3. Retrieval:

    • Uses Cosine Similarity for semantic matches.

    • For keyword search, it uses a rank fusion of BM25 scores and repository popularity (stars).

๐Ÿ“„ License

MIT

Available Tools

2 tools
_fetch_stars_for_userC

Fetch or update the database of starred repositories for a specific GitHub username.

Args: username: The exact GitHub username (e.g., 'gulbaki'). token: Optional GitHub personal access token to avoid rate limits (defaults to GITHUB_TOKEN env).

Inputs: username (required), token. Returns: result

search_starsA

Search through a user's starred repositories using AI-powered semantic search or keyword matching.

Args: username: The exact GitHub username provided by the user. query: The search terms or project idea to find relevant repositories for.

Inputs: query (required), username (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one fetches/updates the database of starred repositories, the other searches through them. No ambiguity.

    Naming Consistency2/5

    Naming is inconsistent: '_fetch_stars_for_user' uses a leading underscore and underscores between words, while 'search_stars' omits the underscore prefix and uses fewer words. No consistent pattern.

    Tool Count3/5

    With only 2 tools, the server feels minimal but could be sufficient for a focused use case of fetching and searching stars. However, it is borderline for a broader star management tool.

    Completeness3/5

    The set covers fetching and searching starred repositories, but lacks operations like listing all stars or deleting them. Minor gaps exist, but core functionality is present.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides on-demand skill discovery for AI coding agents by querying GitHub repositories, using BM25 search to return relevant SKILL.md content.
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that enables AI assistants to look up and analyze GitHub repositories, including stars, forks, description, open issues, and README content.
      2
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that caches your GitHub starred repositories in a local SQLite database and lets you search, list, and retrieve details about them through any MCP client (Claude Desktop, Cursor, VS Code, etc.), with automatic freshness checks via GitHub's ETag mechanism.
      5
      1
      MIT