Skip to main content
Glama
dubeysanskar1907

Claude Arithmetic MCP Server

Claude Arithmetic MCP Server

A simple Model Context Protocol (MCP) project built with Python andFastMCP. The server exposes basic arithmetic operations as MCP tools andcan be used locally with Claude Desktop or deployed as a remote MCPserver.

Project Overview

This project demonstrates the basic MCP client-server architecture:

Claude Desktop | | MCP v Arithmetic MCP Server | +-- add() +-- subtract() +-- multiply() +-- divide()

The server was tested using MCP Inspector and deployed remotely usingPrefect Horizon.

Features

Addition

Subtraction

Multiplication

Division

MCP tool registration using FastMCP

Local testing with MCP Inspector

Claude Desktop integration

Remote deployment through Prefect Horizon

Tech Stack

Python

MCP

FastMCP

MCP Inspector

Claude Desktop

Prefect Horizon

Git & GitHub

MCP Tools

Tool Description

add Adds two numberssubtract Subtracts the second number from the firstmultiply Multiplies two numbersdivide Divides the first number by the second

The divide tool also handles division by zero.

Project Structure

MCP-Client-Server-Integration/ │ ├── server.py ├── fastmcp.json ├── pyproject.toml ├── uv.lock ├── README.md ├── .gitignore └── src/

Running Locally

Create and activate a virtual environment, then install the projectdependencies.

Run the MCP server:

fastmcp run server.py

The server uses the MCP stdio transport for local client connections.

Testing with MCP Inspector

The server can be inspected with FastMCP:

fastmcp inspect server.py

MCP Inspector can also be used to connect to the server and test theregistered tools.

Claude Desktop

The server can be connected to Claude Desktop as an MCP server.

Claude Desktop acts as the MCP client and can discover and invoke thearithmetic tools when required.

Example:

User: Calculate 25 × 8

Claude Desktop | v multiply(a=25, b=8) | v 200

Remote Deployment

The MCP server was deployed using Prefect Horizon.

Remote MCP endpoint:

https://claude-arithmetic-mcp.fastmcp.app/mcp

The deployed server provides the same four arithmetic tools through aremote MCP endpoint.

What I Learned

Basic MCP architecture and client-server communication

How to create and register MCP tools with FastMCP

How MCP clients discover and call tools

Testing MCP servers with MCP Inspector

Connecting an MCP server with Claude Desktop

Deploying a remote MCP server

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

  • A
    license
    B
    quality
    D
    maintenance
    A simple Model Context Protocol (MCP) server that provides basic calculation functions to Claude. It enables users to perform mathematical operations like addition directly through natural language commands.
    1
    MIT
  • F
    license
    -
    quality
    -
    maintenance
    A minimal Python-based MCP server that provides standard arithmetic tools including addition, subtraction, multiplication, and division. It allows language models to perform basic mathematical calculations through a standardized interface.
  • F
    license
    -
    quality
    D
    maintenance
    A sample MCP server that provides basic arithmetic tools like addition, subtraction, multiplication, and division. It serves as a demonstration for implementing the Model Context Protocol and connecting custom tools to clients like Claude Desktop.

View all related MCP servers

Related MCP Connectors

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/dubeysanskar1907/MCP-Client-Server-Integration'

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