MCP Calculator Demo
@pijush2022
关于 MCP Calculator Demo
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"MCP-server-with-client-demo-for-calculator-with-SSE-": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Calculator Demo?
A demonstration project that implements a calculator service using the MCP (Model Control Protocol) framework. It provides basic arithmetic operations and evaluates both simple and complex mathematical expressions, serving as a learning tool for MCP integration.
How to use MCP Calculator Demo?
Clone the repository, create a virtual environment with Python 3.7+, install dependencies from requirements.txt, then start the server with python calculator_server.py (defaults to http://127.0.0.1:5005). In a separate terminal, run python client.py to interact using commands like add 2 3 or complex expressions such as (5+7)*2.
Key features of MCP Calculator Demo?
- Basic arithmetic: addition, subtraction, multiplication, division
- Supports simple tool syntax and complex expressions
- Error handling for division by zero
- Server-Sent Events (SSE) communication
- Parentheses support in expressions
- RPN evaluation for complex expressions
Use cases of MCP Calculator Demo?
- Learning how to build an MCP server and client
- Demonstrating arithmetic tool integration with MCP
- Testing MCP communication via SSE
- Experimenting with expression parsing and evaluation
FAQ from MCP Calculator Demo
What Python version is required?
Python 3.7 or higher is required.
How do I start the server?
Run python calculator_server.py; the server starts on http://127.0.0.1:5005.
What operations does the calculator support?
It supports addition, subtraction
其他 分类下的更多 MCP 服务器
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
评论