github-stars-contributions-mcp

AnandChowdhary/github-stars-contributions-mcp

3.3

If you are the rightful owner of github-stars-contributions-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

An MCP server for managing GitHub Stars contributions and profile, enabling AI assistants to track community contributions through natural language.

Tools
10
Resources
0
Prompts
0

⭐ GitHub Stars Contributions MCP

An MCP (Model Context Protocol) server for managing your GitHub Stars contributions and profile - so AI assistants like Claude Desktop and Cursor can help you track your community contributions through natural language.

✨ Features

Contribution management

  • Add contribution — Add talks, blog posts, videos, and other contributions
  • Update contribution — Modify existing contributions
  • Remove contribution — Delete contributions from your profile
  • List contributions — Retrieve all your contributions with pagination

Profile links

  • Add link — Add social/platform links to your profile
  • Remove link — Delete profile links
  • List links — Get all your profile links

Query tools

  • Get public profile — View any GitHub Star's public profile
  • Search Stars — Browse GitHub Stars directory
  • Get logged user — View your own profile information

📋 Prerequisites

🚀 Quick start

Add the server to your MCP config:

Cursor IDE

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "github-stars": {
      "command": "npx",
      "args": ["-y", "github-stars-contributions-mcp"],
      "env": {
        "GITHUB_STARS_TOKEN": "your-api-token-here"
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "github-stars": {
      "command": "npx",
      "args": ["-y", "github-stars-contributions-mcp"],
      "env": {
        "GITHUB_STARS_TOKEN": "your-api-token-here"
      }
    }
  }
}

Get your API token

  1. Go to stars.github.com/profile
  2. Navigate to the Token tab
  3. Copy your API token and replace your-api-token-here in the config above

⚙️ Alternative installation

From source

If you prefer to run from source:

git clone https://github.com/AnandChowdhary/github-stars-contributions-mcp.git
cd github-stars-contributions-mcp
npm install

Then use this config:

{
  "mcpServers": {
    "github-stars": {
      "command": "node",
      "args": [
        "/absolute/path/to/github-stars-contributions-mcp/github-stars-contributions-mcp.mjs"
      ],
      "env": {
        "GITHUB_STARS_TOKEN": "your-api-token-here"
      }
    }
  }
}

Running standalone

export GITHUB_STARS_TOKEN="your-api-token-here"
npx github-stars-contributions-mcp

🎯 Available tools

add_contribution

Add a new contribution to your GitHub Stars profile.

ParameterTypeRequiredDescription
typeenumSPEAKING, BLOGPOST, ARTICLE_PUBLICATION, EVENT_ORGANIZATION, HACKATHON, OPEN_SOURCE_PROJECT, VIDEO_PODCAST, FORUM, OTHER
titlestringTitle of the contribution
descriptionstringDescription of the contribution
datestringDate in YYYY-MM-DD or ISO format
urlstringURL related to the contribution

update_contribution

Update an existing contribution.

ParameterTypeRequiredDescription
idstringID of the contribution to update
typeenumContribution type
titlestringTitle
descriptionstringDescription
datestringDate
urlstringURL

remove_contribution

Delete a contribution from your profile.

ParameterTypeRequiredDescription
idstringID of the contribution to delete

list_contributions

Get all your contributions.

ParameterTypeRequiredDescription
firstnumberNumber of items to fetch
offsetnumberPagination offset

add_link

Add a profile link.

ParameterTypeRequiredDescription
linkstringURL of the link
platformenumTWITTER, MEDIUM, LINKEDIN, README, STACK_OVERFLOW, DEV_TO, MASTODON, OTHER

remove_link

Delete a profile link.

ParameterTypeRequiredDescription
idstringID of the link to delete

list_links

Get all your profile links. No parameters required.

get_public_profile

Get a GitHub Star's public profile.

ParameterTypeRequiredDescription
usernamestringGitHub username

search_stars

Search GitHub Stars.

ParameterTypeRequiredDescription
featuredbooleanFilter to featured Stars only

get_logged_user

Get your own profile information. No parameters required.

📝 Example usage

Once configured with your AI assistant, you can use natural language:

  • "Add my talk at GitHub Universe as a speaking contribution"
  • "List all my contributions from this year"
  • "Add my Twitter profile link"
  • "Show me the public profile of octocat"
  • "Remove the contribution with ID abc123"

📊 Contribution types

TypeDescription
SPEAKINGConference talks, meetups, webinars
BLOGPOSTBlog posts and tutorials
ARTICLE_PUBLICATIONPublished articles in magazines/journals
EVENT_ORGANIZATIONOrganizing events, meetups, conferences
HACKATHONHackathon participation or mentoring
OPEN_SOURCE_PROJECTOpen source contributions
VIDEO_PODCASTYouTube videos, podcasts
FORUMForum contributions, Q&A
OTHERAny other contribution type

🔗 Platform types

TypeDescription
TWITTERTwitter/X profile
MEDIUMMedium blog
LINKEDINLinkedIn profile
READMEREADME profile
STACK_OVERFLOWStack Overflow profile
DEV_TODEV Community profile
MASTODONMastodon profile
OTHERAny other platform

🔧 Troubleshooting

"GITHUB_STARS_TOKEN environment variable is required"

Make sure you've set the GITHUB_STARS_TOKEN in your MCP configuration or exported it in your shell.

"Unauthorized" errors

Your API token may have expired. Generate a new one from stars.github.com/profile.

Server not connecting

  1. Ensure Node.js v18+ is installed
  2. Check that the GITHUB_STARS_TOKEN is set correctly
  3. Restart your AI assistant after config changes

🔗 Related projects

📃 License

ISC © Anand Chowdhary