npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

github-stars-contributions-mcp

v1.0.4

Published

MCP server for managing GitHub Stars contributions and profile links

Readme

⭐ 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.

| Parameter | Type | Required | Description | | ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | type | enum | ✅ | SPEAKING, BLOGPOST, ARTICLE_PUBLICATION, EVENT_ORGANIZATION, HACKATHON, OPEN_SOURCE_PROJECT, VIDEO_PODCAST, FORUM, OTHER | | title | string | ✅ | Title of the contribution | | description | string | ✅ | Description of the contribution | | date | string | ✅ | Date in YYYY-MM-DD or ISO format | | url | string | ❌ | URL related to the contribution |

update_contribution

Update an existing contribution.

| Parameter | Type | Required | Description | | ------------- | ------ | -------- | -------------------------------- | | id | string | ✅ | ID of the contribution to update | | type | enum | ❌ | Contribution type | | title | string | ❌ | Title | | description | string | ❌ | Description | | date | string | ❌ | Date | | url | string | ❌ | URL |

remove_contribution

Delete a contribution from your profile.

| Parameter | Type | Required | Description | | --------- | ------ | -------- | -------------------------------- | | id | string | ✅ | ID of the contribution to delete |

list_contributions

Get all your contributions.

| Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------ | | first | number | ❌ | Number of items to fetch | | offset | number | ❌ | Pagination offset |

add_link

Add a profile link.

| Parameter | Type | Required | Description | | ---------- | ------ | -------- | ------------------------------------------------------------------------------------------ | | link | string | ✅ | URL of the link | | platform | enum | ✅ | TWITTER, MEDIUM, LINKEDIN, README, STACK_OVERFLOW, DEV_TO, MASTODON, OTHER |

remove_link

Delete a profile link.

| Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------ | | id | string | ✅ | ID 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.

| Parameter | Type | Required | Description | | ---------- | ------ | -------- | --------------- | | username | string | ✅ | GitHub username |

search_stars

Search GitHub Stars.

| Parameter | Type | Required | Description | | ---------- | ------- | -------- | ----------------------------- | | featured | boolean | ❌ | Filter 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

| Type | Description | | --------------------- | ---------------------------------------- | | SPEAKING | Conference talks, meetups, webinars | | BLOGPOST | Blog posts and tutorials | | ARTICLE_PUBLICATION | Published articles in magazines/journals | | EVENT_ORGANIZATION | Organizing events, meetups, conferences | | HACKATHON | Hackathon participation or mentoring | | OPEN_SOURCE_PROJECT | Open source contributions | | VIDEO_PODCAST | YouTube videos, podcasts | | FORUM | Forum contributions, Q&A | | OTHER | Any other contribution type |

🔗 Platform types

| Type | Description | | ---------------- | ---------------------- | | TWITTER | Twitter/X profile | | MEDIUM | Medium blog | | LINKEDIN | LinkedIn profile | | README | README profile | | STACK_OVERFLOW | Stack Overflow profile | | DEV_TO | DEV Community profile | | MASTODON | Mastodon profile | | OTHER | Any 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