Arithmetic Server

Arithmetic Server

A server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.

YuheiNakasaka

Data & App Analysis
Visit Server

Tools

add

subtract

multiply

divide

README

四則演算 MCP サーバー

このMCPサーバーは、基本的な四則演算(足し算、引き算、掛け算、割り算)を実行するためのツールを提供します。

機能

このサーバーは以下の四則演算ツールを提供します:

  1. add - 2つの数値を足し算します
  2. subtract - 2つの数値を引き算します
  3. multiply - 2つの数値を掛け算します
  4. divide - 2つの数値を割り算します(ゼロ除算の場合はエラーを返します)

インストール方法

  1. このリポジトリをクローンまたはダウンロードします
  2. 依存パッケージをインストールします:
    npm install
    
  3. TypeScriptをコンパイルします:
    npm run build
    

Clineでの設定方法

Clineでこのサーバーを使用するには、Claude Desktop Appの設定ファイルを編集する必要があります:

  1. 以下のパスに設定ファイルを作成または編集します:

    ~/Library/Application Support/Claude/claude_desktop_config.json
    
  2. 以下の内容を追加します(既存のmcpServersオブジェクトがある場合は、その中に追加します):

    {
      "mcpServers": {
        "arithmetic": {
          "command": "node",
          "args": ["/Users/y_nakasaka/Documents/Cline/MCP/arithmetic-server/src/index.js"],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
    
  3. Claude Desktop Appを再起動します

使用例

Clineで以下のようなプロンプトを使用することで、四則演算ツールを呼び出すことができます:

  • 「5と3を足し算してください」
  • 「10から7を引いてください」
  • 「6と8を掛け算してください」
  • 「20を4で割ってください」

技術的な詳細

このサーバーは以下の技術を使用しています:

  • TypeScript
  • Model Context Protocol (MCP) SDK
  • Zod(バリデーション用)

Recommended Servers

VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

Featured
Local
Hyperbrowser MCP Server

Hyperbrowser MCP Server

Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to

Featured
Local
BigQuery

BigQuery

This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.

Featured
Perplexity Chat MCP Server

Perplexity Chat MCP Server

MCP Server for the Perplexity API.

Featured
Web Research Server

Web Research Server

A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.

Featured
MySQL Server

MySQL Server

Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.

Featured
Aindreyway Codex Keeper

Aindreyway Codex Keeper

Serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.

Featured
Etherscan Tools

Etherscan Tools

Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.

Featured
Perplexity Deep Research

Perplexity Deep Research

A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.

Featured