Calculator MCP Server
Calculator MCP Server
Ein kleiner Server für das Model Context Protocol (MCP), der grundlegende Rechenoperationen über stdio bereitstellt.

Funktionen
Der Server stellt diese Tools bereit:
Tool | Beschreibung | Argumente |
| Addiert zwei Zahlen |
|
| Subtrahiert die zweite Zahl von der ersten |
|
| Multipliziert zwei Zahlen |
|
| Dividiert die erste Zahl durch die zweite |
|
Alle Argumente müssen Zahlen sein. div gibt einen Fehler zurück, wenn op2 0 ist.
Related MCP server: Math MCP Server
Voraussetzungen
Node.js 18 oder höher
npm
Einrichtung
Installieren Sie die Abhängigkeiten aus diesem Verzeichnis:
npm installServer ausführen
Starten Sie den MCP-Server über stdio:
npm startDer Server wartet darauf, dass ein MCP-Client eine Verbindung herstellt, und gibt daher keine normale Anwendungsausgabe im Terminal aus.
Testen mit dem Beispielclient
Der Beispielclient startet den Server, listet dessen Tools auf und ruft div mit 10 und 0 auf, um den Fehler bei der Division durch Null zu demonstrieren:
npm run test-clientUm einen erfolgreichen Vorgang zu testen, aktualisieren Sie die callTool-Argumente in mcp-client-test.ts, zum Beispiel:
arguments: { op1: 10, op2: 2 },MCP Inspector verwenden
Starten Sie den interaktiven MCP Inspector mit:
npm run mcp-inspectÖffnen Sie die vom Befehl ausgegebene URL, wählen Sie dann ein Rechner-Tool und geben Sie Werte für op1 und op2 ein.
Projektdateien
mcp-server.ts- Definitionen des MCP-Servers und der Rechner-Toolsmcp-client-test.ts- Beispiel-MCP-Clientmcp-calculator.gif- Schritt-für-Schritt-Tutorialpackage.json- Skripte und Abhängigkeiten
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4
- AlicenseAqualityCmaintenanceEnables basic arithmetic operations (addition, subtraction, multiplication, division) with 64-bit precision and matrix multiplication capabilities. Provides mathematical computation tools for AI assistants through the Model Context Protocol.51MIT
- FlicenseAqualityDmaintenanceProvides basic mathematical operations including addition, subtraction, multiplication, division, and power calculations through a Model Context Protocol interface.51
- FlicenseNot gradedqualityDmaintenanceProvides file reading and mathematical calculation tools through the Model Context Protocol. Enables reading file contents and evaluating mathematical expressions via stdio transport.
Related MCP Connectors
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
A Model Context Protocol server for Wix AI tools
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/souravjai/calculator-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server