About GitHub Star Count MCP Server
GitHub Star Count MCP Server lets Claude retrieve star counts and basic statistics for public GitHub repositories. It is configured for use with Claude Desktop and requires a GitHub token.
Key features
- 01Fetch public repository star counts
- 02Expose a simple repository statistics API
- 03Integrate with Claude Desktop
Use cases
- 01Checking the stars on a public repository
- 02Retrieving repository statistics through Claude Desktop
MCP support
The server exposes GitHub repository star-count lookup to MCP clients, with documented integration for Claude Desktop.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEGitHub Star Count MCP Server
A Model Context Protocol (MCP) server that allows Claude to fetch star counts from GitHub repositories.
Features
- Fetch star counts for any public GitHub repository
- Integrates with Claude Desktop via MCP
- Simple API for getting repository statistics
Setup
Prerequisites
- Python 3.11+
- uv for dependency management
- GitHub Personal Access Token
Installation
-
Clone this repository:
git clone https://github.com/yourusername/gh_mcp.git cd gh_mcp -
Install dependencies:
uv venv source .venv/bin/activate uv pip install -r requirements.txt -
Create a
.envfile with your GitHub token:GITHUB_TOKEN=your_github_token_here
Usage
Running the MCP Server
Run the MCP server directly:
python star_count.py
Or use the provided shell script:
./run_star_count.sh
Claude Desktop Integration
Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):
"github-star-count-mcp": {
"command": "/bin/bash",
"args": [
"/path/to/gh_mcp/run_star_count.sh"
]
}
Example Prompts for Claude
Once the MCP server is configured with Claude Desktop, you can use prompts like:
Use the github-star-count-mcp MCP server to get the star count for the repository "anthropics/claude-api" owned by "anthropics"
Project Structure
star_count.py: Main MCP server implementationgithub_integration.py: GitHub API integration functionsrun_star_count.sh: Helper script for running the MCP servertest_mcp.py: Simple test MCP server for verification
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.