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

stakesense-mcp

v0.2.0

Published

MCP server for stakesense — predictive Solana validator quality scoring. Lets Claude Desktop, Claude Code, and Cursor query validator scores, recommendations, and decentralization data natively.

Downloads

111

Readme

stakesense-mcp

Model Context Protocol server exposing predictive Solana validator quality scoring to Claude Desktop, Claude Code, Cursor, and any MCP-compatible LLM agent.

npm version license

What it gives an agent

Eleven tools and five resources, all backed by the public stakesense REST API:

Tools

| Tool | What it answers | |---|---| | get_validator_score | Latest pillar + composite scores for a vote pubkey, with metadata + recent history | | recommend_top_validators | "Where should I stake N SOL?" — ranked list with reasoning | | list_validators | Browse top of any pillar (composite / downtime / mev_tax / decentralization) | | get_validator_history | "Is this validator getting better or worse?" — score trajectory | | get_validator_rank | Where a validator ranks + gap to top-10/50 (operator-side framing) | | get_decentralization_report | Network-wide Nakamoto coefficient + ASN/data-center/country breakdowns | | get_concentration_by | Top clusters along one axis (data_center / asn / country) | | get_network_stats | Global summary (averages, latest epoch, validator count) | | get_recent_anomalies | What changed in the validator set this week (MEV jumps, delinquency, score moves) | | simulate_migration | What-if rebalance: pass before/after allocations, get composite + concentration deltas | | health_check | API liveness + last refresh timestamp |

Resources (read-once context)

| URI | Contents | |---|---| | stakesense://methodology | Long-form methodology paper (markdown) | | stakesense://model-card | Technical model documentation (markdown) | | stakesense://manifest | Open-data export manifest (JSON, CC-BY 4.0) | | stakesense://network-stats | Latest network averages + Nakamoto coefficient | | stakesense://decentralization | Concentration breakdown snapshot |

Install

Claude Desktop / Claude Code

claude mcp add stakesense -- npx stakesense-mcp

That's it — restart Claude and ask: "Which Solana validators have the lowest predicted downtime risk?"

Cursor / Windsurf

Add to your MCP config (Cursor: Settings → Features → MCP, or ~/.cursor/mcp.json):

{
  "mcpServers": {
    "stakesense": {
      "command": "npx",
      "args": ["-y", "stakesense-mcp"]
    }
  }
}

Manual / from source

git clone https://github.com/mikejohnkurkeyerian-eng/stakesense
cd stakesense/mcp
pnpm install
pnpm build
node dist/index.js   # speaks MCP over stdio

Configuration

| Env var | Default | Purpose | |---|---|---| | STAKESENSE_API_BASE | https://stakesense.onrender.com | Override to point at a self-hosted stakesense backend |

Example prompts

Once installed, your agent has predictive Solana validator data on tap:

  • "List the top 5 validators by composite score and explain why each one ranks high."
  • "I have 100 SOL to stake — pick three validators for a balanced risk profile and tell me why."
  • "What's Solana's current Nakamoto coefficient, and which data centers host the most validators?"
  • "Show me the prediction history for <vote_pubkey> over the last 30 days. Is it trending up or down?"
  • "Compare the decentralization-score distribution across the top 50 validators."

Data freshness

Stakesense refreshes twice daily (04:17 + 16:17 UTC) via a GitHub Actions cron. The health_check tool reports last_update_epoch and last_prediction_date so your agent can confirm freshness before answering time-sensitive questions.

License

MIT. The data the server exposes is published under CC-BY 4.0 — please attribute stakesense if you reuse it.

Bug? Idea?

Open an issue on the main repo. PRs welcome.