Arithmetic MCP Server
Performs basic arithmetic operations such as addition, subtraction, multiplication, and division.
四則演算 MCP サーバー
このMCPサーバーは、基本的な四則演算(足し算、引き算、掛け算、割り算)を実行するためのツールを提供します。
機能
このサーバーは以下の四則演算ツールを提供します:
- add - 2つの数値を足し算します
- subtract - 2つの数値を引き算します
- multiply - 2つの数値を掛け算します
- divide - 2つの数値を割り算します(ゼロ除算の場合はエラーを返します)
インストール方法
- このリポジトリをクローンまたはダウンロードします
- 依存パッケージをインストールします:
npm install - TypeScriptをコンパイルします:
npm run build
Clineでの設定方法
Clineでこのサーバーを使用するには、Claude Desktop Appの設定ファイルを編集する必要があります:
-
以下のパスに設定ファイルを作成または編集します:
~/Library/Application Support/Claude/claude_desktop_config.json -
以下の内容を追加します(既存のmcpServersオブジェクトがある場合は、その中に追加します):
{ "mcpServers": { "arithmetic": { "command": "node", "args": ["/Users/y_nakasaka/Documents/Cline/MCP/arithmetic-server/src/index.js"], "disabled": false, "autoApprove": [] } } } -
Claude Desktop Appを再起動します
使用例
Clineで以下のようなプロンプトを使用することで、四則演算ツールを呼び出すことができます:
- 「5と3を足し算してください」
- 「10から7を引いてください」
- 「6と8を掛け算してください」
- 「20を4で割ってください」
技術的な詳細
このサーバーは以下の技術を使用しています:
- TypeScript
- Model Context Protocol (MCP) SDK
- Zod(バリデーション用)
Related Servers
Agent Care
A healthcare MCP server for EMRs like Cerner and Epic, providing tools to interact with FHIR data and medical resources.
Flyworks MCP
A server for creating fast and free lipsync videos for digital avatars, supporting both realistic and cartoon styles.
Sequential Ethical Thinking
A tool for structured, step-by-step ethical reasoning using multiple moral frameworks for transparent deliberation.
Pokemon Gen3 Calculator
A damage and status calculator for Pokemon Generation 3.
MCP-TFT
Provides accurate Teamfight Tactics (TFT) analysis using Data Dragon and community meta insights.
F1 MCP Server
Provides advanced Formula 1 data analysis, including real-time telemetry, tire performance, weather prediction, and race strategy simulation.
MCP-Ambari-API
Automate Apache Ambari operations with AI/LLM: Natural language commands for Hadoop cluster management, service control, configuration monitoring, and real-time status tracking via Model Context Protocol (MCP) tools.
CostPlusDrugs.com
A Model Context Protocol (MCP) server that provides AI agents with affordable access to Cost Plus Drugs pharmacy services, offering transparent medication pricing and comprehensive drug information.
Spotify
Connects your Spotify account to AI tools, allowing access to your music library, playlists, and playback controls.
Weather MCP Server
Provides real-time weather alerts and detailed forecasts for US locations using the National Weather Service API.