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

@yardstickai/mcp

v0.0.1

Published

Yardstick MCP server: let your coding agent report its own cost and ROI.

Readme

@yardstickai/mcp

Yardstick MCP server. Let your coding agent report its own cost and ROI. Ask Claude Code, Cursor, or any MCP client what your AI agents cost this month, their cost per merged PR, ROI, and budget status.

Yardstick measures what AI coding agents cost against the value they ship. This server exposes that data to the agents themselves over the Model Context Protocol.

Tools

  • get_cost_summary  this month's AI spend, value created, ROI, merged PRs, and cost per merged PR.
  • list_agents  each measured agent with its cost per merged PR, merged count, spend, and acceptance rate.
  • list_reports  recent monthly reports, to see the trend over time.
  • get_budget_status  budgets, month-to-date burn, forecast, and any overages.

All tools are read-only and scoped to the organization the API key belongs to.

Setup

You need a Yardstick API key (it starts with ysk_). Create one under Connect in the Yardstick dashboard.

Claude Code

Add it from the CLI:

claude mcp add yardstick --env YARDSTICK_API_KEY=ysk_your_key -- npx -y @yardstickai/mcp

Or add it to ~/.claude/mcp.json (or a project .mcp.json):

{
  "mcpServers": {
    "yardstick": {
      "command": "npx",
      "args": ["-y", "@yardstickai/mcp"],
      "env": {
        "YARDSTICK_API_KEY": "ysk_your_key_here"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project), same shape as the JSON above.

Other MCP clients

Any client that supports stdio MCP servers works (Windsurf, Zed, Continue, and others). Point it at npx -y @yardstickai/mcp with YARDSTICK_API_KEY in the server's env.

Configuration

| Env var | Required | Default | Notes | | --- | --- | --- | --- | | YARDSTICK_API_KEY | yes | | A ysk_ key from Connect in the dashboard. Scopes every read to that org. | | YARDSTICK_API_URL | no | https://api.yardstick.fi | Point at a self-hosted or local API when needed. |

Example

Once connected, ask your agent:

What did our AI coding agents cost this month, and what is the ROI?

It calls get_cost_summary and answers from your live Yardstick data.

Development

pnpm build
YARDSTICK_API_KEY=ysk_... YARDSTICK_API_URL=http://localhost:4000 node dist/index.js

Copyright (c) Yardstick Labs, Inc.