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 🙏

© 2026 – Pkg Stats / Ryan Hefner

viberank-mcp-server

v1.0.0

Published

MCP server for submitting Claude usage stats to Viberank

Readme

Viberank MCP Server

Submit your Claude Code usage stats to Viberank directly from your MCP-compatible AI assistant!

Features

  • 🚀 Automatic Usage Tracking - Fetch your Claude Code usage stats via ccusage
  • 📊 Direct Submission - Submit to Viberank leaderboard without leaving your workflow
  • 🔄 Smart Caching - Caches usage data for 5 minutes to reduce overhead
  • 👤 Profile Management - View profiles and leaderboard data
  • 🔐 GitHub Integration - Automatically detects your GitHub username from git config

Installation

Option 1: NPM Global Install

npm install -g viberank-mcp-server

Option 2: Local Development

git clone https://github.com/sculptdotfun/viberank.git
cd viberank/packages/viberank-mcp-server
npm install
npm run build

Configuration

Claude Desktop (macOS)

Add to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "viberank": {
      "command": "npx",
      "args": ["viberank-mcp-server"]
    }
  }
}

Claude Desktop (Windows)

Add to your Claude Desktop configuration at %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "viberank": {
      "command": "npx",
      "args": ["viberank-mcp-server"]
    }
  }
}

Other MCP-Compatible Clients

For other MCP clients, use the following command:

npx viberank-mcp-server

Or if installed locally:

node /path/to/viberank-mcp-server/dist/index.js

Available Tools

1. get_usage

Fetches your current Claude Code usage statistics.

Parameters:

  • force_refresh (boolean, optional): Force refresh the data, bypassing cache

Example:

Use the get_usage tool to check my Claude usage stats

2. submit_to_viberank

Submits your usage statistics to the Viberank leaderboard.

Parameters:

  • github_username (string, optional): Your GitHub username
  • auto_detect_username (boolean, optional): Auto-detect from git config (default: true)

Example:

Submit my Claude usage to Viberank

3. get_profile

Get the Viberank profile URL for a specific user.

Parameters:

  • username (string, required): GitHub username to look up

Example:

Show me the Viberank profile for octocat

4. get_leaderboard

Get information about the Viberank leaderboard.

Parameters:

  • limit (number, optional): Number of top users to show (default: 10)

Example:

Show me the top 20 users on Viberank

Usage Examples

Basic Workflow

  1. Check your usage:

    Hey Claude, use the Viberank MCP server to check my current Claude usage
  2. Submit to leaderboard:

    Now submit my usage stats to Viberank
  3. View your profile:

    Show me my Viberank profile

Advanced Usage

  • Force refresh data:

    Get my Claude usage with a fresh fetch (don't use cache)
  • Submit with specific username:

    Submit my stats to Viberank using the username "myGitHubUser"

How It Works

  1. Usage Collection: The MCP server runs ccusage to collect your Claude Code usage statistics
  2. Data Processing: Statistics are parsed and validated
  3. Submission: Data is sent to the Viberank API with your GitHub username
  4. Verification: CLI submissions are marked as unverified (use OAuth on the website for verified submissions)

Troubleshooting

"Failed to get usage data"

  • Make sure you've used Claude Code at least once
  • Ensure ccusage is accessible (it's automatically installed via npx)

"GitHub username is required"

  • Set your git config: git config --global user.name "YourGitHubUsername"
  • Or provide the username explicitly in the tool call

Cache Issues

  • Use force_refresh: true to bypass the 5-minute cache
  • The cache helps reduce overhead when checking stats frequently

Security & Privacy

  • Your usage data is only sent to Viberank when you explicitly use the submit_to_viberank tool
  • No data is collected or transmitted without your action
  • GitHub usernames from git config are only read locally
  • All submissions via MCP are marked as "unverified" (use OAuth on the website for verified submissions)

Development

Building from Source

npm install
npm run build

Running in Development

npm run dev

Testing Locally

# Start the server
node dist/index.js

# In another terminal, send test commands via MCP protocol

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT - See LICENSE file for details

Links