
mcp calculator tool
一个为Claude桌面版提供基本计算功能的简单算术MCP服务器。
Repository Info
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
- Start Claude for Desktop
- Click the tools icon (hammer) in the bottom left to verify the registered tools
- Request calculations in your prompt (e.g., "What is 5 + 3? Calculate using MCP")
Implemented Functions
add: Additionsubtract: Subtractionmultiply: Multiplicationdivide: 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
Clone the repository
git clone https://github.com/enumura1/mcp-calculator-toolInstall dependencies
cd mcp-calculator-tool
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.