Skip to main content
Glama
calculator-mcp-server

calculator-mcp-server

NitroStack Starter Template

Minimal template for learning NitroStack fundamentals with a calculator-focused MCP server and basic widgets.

What This Template Includes

  • calculator module with tools, resources, and prompts

  • TypeScript + Zod validation setup

  • Widget-ready project structure

  • Production-friendly npm scripts

Related MCP server: Calculator MCP Server

Quick Start

npx @nitrostack/cli init my-server --template typescript-starter
cd my-server
npm run dev

Common Commands

npm run dev
npm run build
npm start

NitroStudio

NitroStudio is the recommended way to test and debug this template during development.

Community

Available Tools

2 tools
calculateC

Perform basic arithmetic calculations

Inputs: a (required), b (required), operation (required).

convert_temperatureC

Convert temperature units based on file content or direct input. Supports Celsius (C) and Fahrenheit (F).

Inputs: file_name (required), file_type (required), file_content (required), value, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools, 'calculate' and 'convert_temperature', have clearly distinct purposes with no overlap. An agent can easily select the appropriate tool based on the task.

    Naming Consistency5/5

    Both tool names follow a consistent verb_noun pattern: 'calculate' (verb) and 'convert_temperature' (verb_noun). The naming is predictable and clear.

    Tool Count4/5

    With only 2 tools, the set is minimal but still reasonable for a focused calculator server. It covers core arithmetic calculation and temperature conversion without unnecessary clutter.

    Completeness3/5

    The tool surface covers basic arithmetic and temperature conversion, but lacks other common calculator operations like exponentiation, trigonometry, or memory functions, leaving notable gaps for a general-purpose calculator.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A boilerplate project for quickly developing MCP servers using TypeScript, featuring example implementations of tools (calculator, greetings) and resources (server info) with Zod schema validation.
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      A calculator-focused MCP server with TypeScript and Zod validation, providing tools, resources, and prompts for basic arithmetic operations.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Minimal MCP server for basic calculator operations, built with NitroStack, TypeScript, and Zod validation.
      10 npm
      1
      -