viberank-mcp-server
v1.0.0
Published
MCP server for submitting Claude usage stats to Viberank
Maintainers
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-serverOption 2: Local Development
git clone https://github.com/sculptdotfun/viberank.git
cd viberank/packages/viberank-mcp-server
npm install
npm run buildConfiguration
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-serverOr if installed locally:
node /path/to/viberank-mcp-server/dist/index.jsAvailable 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 stats2. submit_to_viberank
Submits your usage statistics to the Viberank leaderboard.
Parameters:
github_username(string, optional): Your GitHub usernameauto_detect_username(boolean, optional): Auto-detect from git config (default: true)
Example:
Submit my Claude usage to Viberank3. 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 octocat4. 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 ViberankUsage Examples
Basic Workflow
Check your usage:
Hey Claude, use the Viberank MCP server to check my current Claude usageSubmit to leaderboard:
Now submit my usage stats to ViberankView 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
- Usage Collection: The MCP server runs
ccusageto collect your Claude Code usage statistics - Data Processing: Statistics are parsed and validated
- Submission: Data is sent to the Viberank API with your GitHub username
- 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
ccusageis 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: trueto 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_viberanktool - 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 buildRunning in Development
npm run devTesting Locally
# Start the server
node dist/index.js
# In another terminal, send test commands via MCP protocolContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT - See LICENSE file for details
