Back to Home
FakerVash icon

MCP-CALCULATOR-SERVER

Verified Safe

by FakerVash

Overview

Provides a simple Fastify API to perform basic arithmetic operations (add, subtract, multiply, divide) with strict input validation and automatic OpenAPI documentation.

Installation

Run Command
npm run dev

Security Notes

Input parameters are strictly validated using Fastify's JSON Schema (AJV), preventing common injection attacks. The 'operation' parameter is restricted to an enum of allowed values. Division by zero is explicitly handled as a 400 error. No use of 'eval' or other dangerous functions, and no hardcoded secrets were found in the provided source code.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-12-13

Tags

Node.jsTypeScriptFastifyCalculator APIOpenAPI