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

calculator-mcp

v1.0.18

Published

A creative calculator MCP server that performs arithmetic calculations and generates storytelling prompts using AI sampling capabilities.

Readme

Calculator MCP Server

Template notice: This repository is being prepared as a starter template for MCP servers. To create a new server:

  1. Copy / use as GitHub Template
  2. Edit package.json (name, description, bin)
  3. Replace the calculator tool with your own implementation
  4. Start versioning from 0.1.0 in the new repository
  5. Update README(s) & remove this banner

See README.template.md for a placeholder-driven variant.

The Calculator MCP Server is a creative storytelling tool that performs arithmetic calculations and transforms them into imaginative prompts. Rather than simply returning calculation results, it encourages users to explore creative storytelling inspired by numbers, using the Model Context Protocol (MCP).

Installation

Prerequisites

  • Node.js 18+

Published Package

This MCP server is available as a published npm package: calculator-mcp

  • No need to clone the repository locally
  • Can be run directly via npx calculator-mcp@latest
  • See setup instructions below for Claude Code

Build locally

cd /path/to/calculator-mcp
npm i
npm run build

Setup: Claude Code (CLI)

Use this one-line command:

claude mcp add Calculator-MCP -s user -- npx calculator-mcp@latest

To remove the server from Claude Code:

claude mcp remove Calculator-MCP

Other Clients and Agents

Add via CLI:

code --add-mcp '{"name":"Calculator-MCP","command":"npx","args":["calculator-mcp@latest"]}'

Follow the MCP install guide:

  • Guide: https://modelcontextprotocol.io/quickstart/user

Available Tools

  • calculator
    • inputs:
      • a: number (1つ目の数値)
      • b: number (2つ目の数値)
      • operator: string (演算子: 'add', 'subtract', 'multiply', 'divide')
    • outputs: Creative storytelling prompts based on calculation results when AI sampling is enabled. When sampling is disabled, returns only the calculation formula and result (e.g., "計算式: 1 + 1 = 2").

Example invocation (MCP tool call)

{
  "name": "calculator",
  "arguments": {
    "a": 14,
    "b": 98,
    "operator": "add"
  }
}

Example Output (with AI Sampling enabled):

計算式: 14 + 98 = 112

この計算結果から、とても興味深いストーリーを想像できそうですね。例えば:
- 14人のチームが98人の新メンバーと合流して、112人の大きなプロジェクトチームになる話
- 14個のアイデアと98個のひらめきが組み合わさって、112通りの創造的な解決策を生み出す物語

このストーリーを以下のどの形で展開したいですか?
1. 文章 - 詳細な物語として書き上げる
2. 画像 - ビジュアルで表現する  
3. 動画 - 動きのある映像作品として構想する

Example Output (without AI Sampling):

計算式: 14 + 98 = 112

Troubleshooting

  • Ensure Node 18+
  • For npx usage: npx calculator-mcp@latest should work without local build
  • For local development: use absolute path to build/index.js

References

License

MIT License. See LICENSE file.