mcpField
M
MCP Calculator Server

MCP Calculator Server

Local
github.com/abdulrehmankhalid786Science & Education0Updated 78w ago

About MCP Calculator Server

MCP Calculator Server is a Python calculator that makes common arithmetic and mathematical functions available to MCP-compatible clients. It is intended for clients that need callable calculation tools.

Key features

  1. 01Basic arithmetic operations
  2. 02Powers and roots
  3. 03Factorials and logarithms
  4. 04Remainder calculation
  5. 05Sine, cosine, and tangent

Use cases

  1. 01Perform arithmetic in an MCP client
  2. 02Calculate powers, roots, or factorials
  3. 03Compute logarithms and remainders
  4. 04Evaluate basic trigonometric functions

MCP support

The server exposes its mathematical operations as callable tools over MCP, communicating through standard input and output.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Calculator Server

A simple calculator server built using the MCP (Machine Communication Protocol) framework. This server exposes basic mathematical operations as callable tools via MCP, making it easy to integrate with MCP-compatible clients.

Features

  • Addition, subtraction, multiplication, division
  • Power, square root, cube root, factorial
  • Natural logarithm, remainder
  • Trigonometric functions: sine, cosine, tangent

Requirements

  • Python 3.8+
  • mcp package (and its dependencies)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/mcp-calculator-server.git
    cd mcp-calculator-server
    
  2. Install dependencies:

    pip install -r requirements.txt
    

Usage

Run the server:

python server.py

The server will start and listen for MCP requests via standard input/output.

Exposed Tools

  • add(a, b)
  • subtract(a, b)
  • multiply(a, b)
  • divide(a, b)
  • power(a, b)
  • sqrt(a)
  • cbrt(a)
  • factorial(a)
  • log(a)
  • remainder(a, b)
  • sin(a)
  • cos(a)
  • tan(a)

License

MIT License

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.