Skip to main content
Glama

MCP Math Calculator Server

by R-Yash

Math Operations MCP Server

A simple Model Context Protocol (MCP) server built with FastMCP 2.0 that provides basic math operations.

Features

This server provides two tools:

  • add: Add two numbers together
  • multiply: Multiply two numbers together

Local Development

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
python main.py

Deployment on Vercel

  1. Install Vercel CLI:
npm i -g vercel
  1. Deploy to Vercel:
vercel
  1. Follow the prompts to configure your deployment.

Usage

Once deployed, the MCP server will be available at your Vercel URL. The server exposes two tools:

Add Tool

  • Function: add(a: float, b: float) -> float
  • Description: Adds two numbers together
  • Parameters:
    • a: First number to add
    • b: Second number to add
  • Returns: The sum of a and b

Multiply Tool

  • Function: multiply(a: float, b: float) -> float
  • Description: Multiplies two numbers together
  • Parameters:
    • a: First number to multiply
    • b: Second number to multiply
  • Returns: The product of a and b

Project Structure

MCPServer/ ├── main.py # Main MCP server implementation ├── requirements.txt # Python dependencies ├── vercel.json # Vercel deployment configuration ├── pyproject.toml # Project metadata └── README.md # This file
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables basic mathematical operations through MCP protocol with add and multiply tools. Built with fastmcp 2.0 and optimized for serverless deployment on Vercel.

  1. Features
    1. Local Development
      1. Deployment on Vercel
        1. Usage
          1. Add Tool
          2. Multiply Tool
        2. Project Structure

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A mathematical computation service that enables users to perform symbolic calculations including basic arithmetic, algebra, calculus, equation solving, and matrix operations through the MCP protocol.
            Last updated -
            1
            4
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            Provides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.
            Last updated -
            Python
          • A
            security
            F
            license
            A
            quality
            A numerical calculator based on Model Context Protocol (MCP) that provides simple arithmetic operations including addition, subtraction, multiplication, division, power, square root and integer factorial calculations.
            Last updated -
            7
            1
            Python
          • -
            security
            F
            license
            -
            quality
            A server that provides basic mathematical operations (addition, subtraction, multiplication, division, power, square root) through MCP tools for use with AI assistants like Claude.
            Last updated -
            Python

          View all related MCP servers

          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/R-Yash/mcpserver'

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