ClaudeCodeMod

All shelves / MCP servers

viberank

io.github.sculptdotfun/viberank · 121 stars · TypeScript · MIT

MCP server Submit your AI coding usage (Claude Code, Codex, Gemini CLI) to viberank and read the leaderboard.

Install

The repo has no one-line install. Follow its README.

Published as

  • npmviberank-mcpstdio

From the server's entry in the official MCP Registry.

Open the repo

Configuration

NameSet asWhat it is
VIBERANK_TOKENOptional · SecretEnv varOptional API token from https://www.viberank.app/settings/tokens. Signs submissions so they are verified and filed under your account.

Files

packages/viberank-mcp-server/README.md

viberank MCP server

Submit your AI coding usage (Claude Code, Codex, Gemini CLI, OpenCode and every other tool ccusage reads) to viberank, and read the leaderboard, from any MCP client.

Install

Claude Code
claude mcp add --scope user viberank -- npx -y viberank-mcp

To have submissions verified and filed under your account automatically, add an API token. Mint one at viberank.app/settings/tokens (sign in with GitHub, then Create token); it starts with vbr_:

claude mcp add --scope user viberank --env VIBERANK_TOKEN=vbr_… -- npx -y viberank-mcp

On native Windows (not WSL), npx has to go through cmd /c:

claude mcp add --scope user viberank -- cmd /c npx -y viberank-mcp

--scope user makes the server available in every project. Check it with claude mcp list.

Claude Desktop

Add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart Claude Desktop. Leave out the env block if you don't have a token.

{
  "mcpServers": {
    "viberank": {
      "command": "npx",
      "args": ["-y", "viberank-mcp"],
      "env": {
        "VIBERANK_TOKEN": "vbr_…"
      }
    }
  }
}

On Windows, use cmd /c:

{
  "mcpServers": {
    "viberank": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "viberank-mcp"],
      "env": {
        "VIBERANK_TOKEN": "vbr_…"
      }
    }
  }
}
Other MCP clients

Run npx -y viberank-mcp as a stdio server. Node.js 18 or newer.

Which account a submission goes to

  • With a token (VIBERANK_TOKEN, or the one npx viberank-cli login saved in ~/.viberank/config.json): the server files the submission under the token's owner and marks it verified. The MCP server asks viberank who that is before uploading, and the result names that account. No username is needed.
  • Without a token: github_username is required, and it should be your own GitHub handle, because it becomes a public profile. If the agent calls without one, nothing is uploaded. The MCP server suggests a handle instead (the one this machine submitted under before, or the repository's owner when GitHub confirms that's a personal account, never an organization) and the agent asks you to confirm it before calling again. Once a profile is verified, unsigned submissions to it are refused, so nobody else can write to yours.

Tools

get_usage

Runs ccusage@20 daily --json --by-agent locally and returns a summary: API-equivalent cost, tokens, days tracked, date range and cost per tool. Sends nothing. Cached for 5 minutes.

  • force_refresh (boolean, optional): re-run ccusage instead of using the cache.
submit_to_viberank

Uploads your usage to the leaderboard. On success it returns the account it was filed under, your profile URL, your standing (rank, top percentage, tier, and README badge markdown), and next steps the agent can offer: adding the badge to your README, and turning on daily autosubmit with npx viberank-cli login and npx viberank-cli autosubmit.

  • github_username (string): your GitHub username. Required without a token, not needed with one.
get_leaderboard

The current leaderboard: rank, username, cost, tokens, tools and verified status for each entry.

  • limit (integer, optional): 1 to 50, default 10.
  • tool (string, optional): rank only users of one tool, such as claude, codex, gemini, opencode or copilot.
get_profile

One developer's profile: rank, cost, tokens, days tracked, tools and verified status. Says found: false when there's no profile for that username.

  • username (string, required): the GitHub username.
get_stats

Site-wide numbers from /api/stats: developer count, total spend and tokens, monthly spend percentiles, tool and model adoption, the monthly trend and tiers, with methodology and caveats.

Example prompts

  • "What's my AI coding usage?"
  • "Submit my usage to viberank."
  • "Show the top 20 on viberank for Codex."
  • "Look up octocat on viberank."
  • "How does my monthly spend compare with other developers?"

What is sent, and where

Only submit_to_viberank sends your usage, and only to https://www.viberank.app/api/submit. Along with the ccusage report it sends:

  • Authorization: Bearer <token> when you have a token, otherwise X-GitHub-User: <username>.
  • X-Machine-Id: the anonymous random ID in ~/.viberank/machine-id, shared with the CLI and created on first use, so usage from your laptop and desktop adds up instead of overwriting.
  • X-Viberank-Client: mcp/<version>.

The read tools fetch public data from viberank.app. Without a token, submit_to_viberank also asks the GitHub API whether a suggested handle is a personal account; only the handle is sent.

Troubleshooting

  • "VIBERANK_TOKEN is set but is not a viberank token": the variable holds something other than vbr_ plus 43 characters, often the vbr_… placeholder from these docs. Paste the real token or remove the variable.
  • "was rejected by viberank": the token was revoked. Mint a new one at viberank.app/settings/tokens.
  • "a GitHub username is required": there's no token, so tell the agent your GitHub username, or add a token.
  • "No usage found": ccusage found no logs on this machine. Use Claude Code, Codex or another supported tool first.
  • "Could not run ccusage@20": check that npx --version works and that the machine is online; the first run downloads ccusage.

Development

npm install
npm run build    # tsc into dist/
npm test         # unit tests, no network
npm run smoke    # starts dist/index.js over stdio and calls the read tools against viberank.app
npm run smoke -- --usage   # also runs get_usage (ccusage, local only)

The smoke test never calls submit_to_viberank.

The package is listed in the MCP registry as io.github.sculptdotfun/viberank (mcpName in package.json, metadata in server.json). Keep the version fields in server.json in step with package.json.

Links

License

MIT

Facts

Kind
MCP server
Repo
sculptdotfun/viberank
Group
Uncategorized
Stars
121
License
MIT
Language
TypeScript
Last push
2026-10-26
Forks
23
MCP Registry
io.github.sculptdotfun/viberank
Homepage
www.viberank.app
Topics
ai-coding, anthropic, ccusage, claude, claude-code, codex, developer-tools, gemini-cli, leaderboard, nextjs, supabase, typescript

Next on this shelf

  1. 1362LivebookToolsthmsmlr/livebook_toolsPowertools for livebook.dev — AI Code Editing, MCP Servers, and Running Livebooks from the CLI120
  2. 1363MCP Windows Desktop Automationmario-andreschak/mcp-windows-desktop-automationA Model Context Protocol (MCP) server for Windows desktop automation using AutoIt.120
  3. 1364openai-gpt-image-mcpSureScaleAI/openai-gpt-image-mcpA Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs.120
  4. 1365DexPaprika MCP Servercoinpaprika/dexpaprika-mcpDexPaprika MCP server for real-time crypto token data, DEX trading activity, and DeFi analytics across multiple blockchains.120
  5. 1367NVIDIA Elementsio.github.NVIDIA/elementsNVIDIA Elements UI design system and agent tools for AI/ML, robotics, and autonomous vehicles.120
  6. 1368pmndrs docsio.github.pmndrs/docsSearch and read the docs and examples of react-three-fiber, drei, zustand, jotai... from your agent120