enumura1
MCP Serverenumura1public

mcp calculator tool

一个为Claude桌面版提供基本计算功能的简单算术MCP服务器。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
MIT License
License

About This Server

一个为Claude桌面版提供基本计算功能的简单算术MCP服务器。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Simple Arithmetic MCP Server

A simple arithmetic MCP server that integrates with Claude for Desktop, providing basic calculation functions.

Overview

This repository provides code and configuration for an arithmetic server using the Model Context Protocol (MCP). The server adds addition, subtraction, multiplication, and division capabilities to Claude for Desktop through the MCP integration.

Requirements

  • Python 3.12 or higher
  • uv package manager
  • Claude for Desktop

Setup Instructions

1. Install uv Package Manager

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

2. Project Setup

# Initialize project
uv init .

# Create virtual environment
uv venv

# Activate virtual environment (Windows)
.venv\Scripts\activate

# Install required packages
uv add "mcp[cli]"

3. Claude for Desktop Integration

Add the following content to the Claude for Desktop configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "calculator": {
      "command": "uv",
      "args": [
        "--directory",
        "absolute path to this repository",
        "run",
        "calculator.py"
      ]
    }
  }
}

Usage

  1. Start Claude for Desktop
  2. Click the tools icon (hammer) in the bottom left to verify the registered tools
  3. Request calculations in your prompt (e.g., "What is 5 + 3? Calculate using MCP")

Implemented Functions

  • add: Addition
  • subtract: Subtraction
  • multiply: Multiplication
  • divide: Division

Further Information

For more details, please refer to the following article:

  • Creating a Simple Arithmetic MCP Server and Using it with Claude for Desktop

Quick Start

1

Clone the repository

git clone https://github.com/enumura1/mcp-calculator-tool
2

Install dependencies

cd mcp-calculator-tool
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerenumura1
Repomcp-calculator-tool
LanguagePython
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation