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

@calcis/mcp-server

v1.0.4

Published

MCP server for Calcis: LLM cost estimation for AI agents

Readme

@calcis/mcp-server

Model Context Protocol server for Calcis.

Live pricing for 25+ models, side-by-side comparisons, and a web estimator: https://calcis.dev

  • Full price index: https://calcis.dev/models
  • Compare models: https://calcis.dev/compare
  • API reference: https://calcis.dev/api-docs

Exposes three tools that AI agents (Claude Desktop, Cursor, Cline, and anything else MCP-compatible) can call directly:

| Tool | What it does | Needs API key? | | --------------- | ------------------------------------------------------------------ | -------------- | | estimate_cost | Pre-flight cost estimate for a prompt + model | yes | | list_models | Returns every supported model with current pricing | no | | compare_models| Side-by-side cost comparison between two models at a token count | no |

list_models and compare_models ship with the pricing dataset embedded, so they work offline.

Install

Once published, the server runs via npx:

npx @calcis/mcp-server

Or install globally:

npm install -g @calcis/mcp-server
calcis-mcp

Get your API key for estimate_cost at calcis.dev/dashboard.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on other platforms:

{
  "mcpServers": {
    "calcis": {
      "command": "npx",
      "args": ["@calcis/mcp-server"],
      "env": {
        "CALCIS_API_KEY": "calc_your_key_here"
      }
    }
  }
}

Restart Claude Desktop. The Calcis tools will now appear in the available tools list for every conversation.

Cursor

In Settings → Features → Model Context Protocol, add:

  • Name: calcis
  • Command: npx
  • Args: @calcis/mcp-server
  • Env: CALCIS_API_KEY=calc_your_key_here

Tools

estimate_cost

Pre-flight estimate for any prompt / model pair.

Input:

{
  "prompt": "Explain quantum computing in three bullets",
  "model": "claude-sonnet-4-6",
  "systemPrompt": "You are a concise technical writer."
}

Returns the Calcis API response JSON (model, inputTokens, outputTokens, inputCost, outputCost, totalCost, confidence).

list_models

No input. Returns { version, generatedAt, source, models[] } where each model has id, displayName, provider, inputPricePerMTok, outputPricePerMTok, contextWindow, maxOutput, and lastUpdated. Browse the same dataset on the web at calcis.dev/models.

compare_models

{
  "modelA": "claude-sonnet-4-6",
  "modelB": "gpt-4o",
  "inputTokens": 1000,
  "outputTokens": 500
}

Returns per-model breakdowns plus deltaTotal (cost(B) − cost(A)) and cheaper (the model ID that wins on total cost). For an interactive, multi-model version see calcis.dev/compare.

Config

| Env var | Required for | Notes | | ----------------- | --------------------------- | -------------------------- | | CALCIS_API_KEY | estimate_cost | Pro plan or above |

The other two tools read the embedded pricing dataset: no API key, no network call.

Links

License

MIT