Calculator MCP Server
Calculator MCP Server
stdio 経由で基本的な電卓操作を提供する、小さな Model Context Protocol (MCP) サーバーです。

機能
このサーバーは以下のツールを提供します:
ツール | 説明 | 引数 |
| 2つの数値を加算します |
|
| 最初の数値から2番目の数値を減算します |
|
| 2つの数値を乗算します |
|
| 最初の数値を2番目の数値で除算します |
|
すべての引数は数値でなければなりません。div は op2 が 0 のときエラーを返します。
Related MCP server: Math MCP Server
要件
Node.js 18 以降
npm
セットアップ
このディレクトリで依存関係をインストールします:
npm installサーバーを実行する
stdio 経由で MCP サーバーを起動します:
npm startサーバーは MCP クライアントの接続を待機するため、通常のアプリケーション出力をターミナルに表示しません。
サンプルクライアントでテストする
サンプルクライアントはサーバーを起動してツールを一覧表示し、ゼロ除算エラーを示すために div を 10 と 0 で呼び出します:
npm run test-client成功する操作をテストするには、mcp-client-test.ts の callTool 引数を更新します。例:
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