Feedback

MCP Calculator Demo

@pijush2022 Claim

Basic information

Runtime
python
Category
License
MIT license
Transports
stdio
Author
pijush2022
Submitted by
Community
Quality
10

About MCP Calculator Demo Server

# MCP Calculator Demo

MCP Calculator Demo is a MCP server in the Other category listed in the AddMCP.net directory, published by pijush2022. Supported transport: stdio. Runtime: python. License: MIT license. Source code is hosted on github.com. Related topics: math-assistant, math-solver, mathgpt.

Setup

{
    "mcpServers": {
        "MCP-server-with-client-demo-for-calculator-with-SSE-": {
            "command": "python",
            "args": [
                "-m",
                "venv",
                ".venv"
            ]
        }
    }
}

MCP Calculator Demo config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "MCP-server-with-client-demo-for-calculator-with-SSE-": {
            "command": "python",
            "args": [
                "-m",
                "venv",
                ".venv"
            ]
        }
    }
}

MCP Calculator Demo tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

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

Frequently asked questions

1 What Python version is required?

Python 3.7 or higher is required.

2 How do I start the server?

Run python calculator_server.py; the server starts on http://127.0.0.1:5005.

3 What operations does the calculator support?

It supports addition, subtraction

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬