Calculator MCP Server
Calculator MCP Server
Небольшой сервер Model Context Protocol (MCP), который предоставляет базовые операции калькулятора через stdio.

Возможности
Сервер предоставляет следующие инструменты:
Инструмент | Описание | Аргументы |
| Складывает два числа |
|
| Вычитает второе число из первого |
|
| Умножает два числа |
|
| Делит первое число на второе |
|
Все аргументы должны быть числами. div возвращает ошибку, когда op2 равен 0.
Related MCP server: Math MCP Server
Требования
Node.js 18 или новее
npm
Установка
Установите зависимости из этого каталога:
npm installЗапуск сервера
Запустите MCP-сервер через stdio:
npm startСервер ожидает подключения MCP-клиента, поэтому он не выводит обычные результаты работы приложения в терминал.
Тестирование с примером клиента
Пример клиента запускает сервер, выводит список его инструментов и вызывает div с числами 10 и 0, чтобы продемонстрировать ошибку деления на ноль:
npm run test-clientЧтобы проверить успешную операцию, измените аргументы callTool в файле mcp-client-test.ts, например:
arguments: { op1: 10, op2: 2 },Использование MCP Inspector
Запустите интерактивный MCP Inspector командой:
npm run mcp-inspectОткройте URL, выведенный командой, затем выберите инструмент калькулятора и укажите значения для op1 и op2.
Файлы проекта
mcp-server.ts— определения MCP-сервера и инструментов калькулятораmcp-client-test.ts— пример MCP-клиентаmcp-calculator.gif— видеопрохождение учебного пособияpackage.json— сценарии и зависимости
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