Skip to main content
Glama
JonnadulaNagaSambaSivaRao

MCP Calculator Server

🧮 MCP Calculator Server


🌟 Project Overview

This project demonstrates how to build a simple Model Context Protocol (MCP) server using Python.

The MCP server exposes calculator operations as tools that can be called by an MCP-compatible client such as Cursor.

Instead of manually writing Python code for every calculation, Cursor can understand the user's request and call the appropriate MCP tool.

🔥 Available Calculator Tools

🔧 Tool

📝 Description

💡 Example

add

Adds two numbers

add(10, 20)30

subtract

Subtracts two numbers

subtract(20, 10)10

✖️ multiply

Multiplies two numbers

multiply(10, 5)50

divide

Divides two numbers

divide(100, 4)25

🔢 power

Calculates power

power(2, 10)1024


🏗️ Architecture

                  👤 USER
                    │
                    │
                    ▼
             🤖 CURSOR AGENT
                    │
                    │ MCP Protocol
                    ▼
             🔌 MCP CLIENT
                    │
                    │ stdio
                    ▼
        🧮 CALCULATOR MCP SERVER
                    │
       ┌────────────┼────────────┐
       │            │            │
       ▼            ▼            ▼
     ➕ add      ➖ subtract   ✖️ multiply
       │            │            │
       └────────────┼────────────┘
                    │
              ┌─────┴─────┐
              ▼           ▼
          ➗ divide    🔢 power
F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    -
    quality
    -
    maintenance
    A calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).
  • A
    license
    -
    quality
    D
    maintenance
    Provides a comprehensive set of mathematical functions as MCP tools, enabling language models to perform calculations including arithmetic, trigonometry, logarithms, and more.
    13
    1
    MIT
  • F
    license
    -
    quality
    B
    maintenance
    An MCP server that exposes 16 calculator operations as tools, enabling arithmetic, rounding, and root calculations via natural language.
  • F
    license
    -
    quality
    C
    maintenance
    Provides basic calculator operations (add, subtract, multiply, divide) as MCP tools for use with Claude Desktop and other MCP clients.

View all related MCP servers

Related MCP Connectors

  • Precision math engine for AI agents. 203 exact methods. Zero hallucination.

  • 500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.

  • AI-callable calculators and engineering models with real formulas. No hallucinated math.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JonnadulaNagaSambaSivaRao/mcp_calc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server