๐Ÿงฎ MCP Calculator Server

A simple MCP server that exposes calculator operations as tools and connects them to Cursor.

๐ŸŒŸ 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

MCP Server ยท Populars

MCP Server ยท New

    Bevel-Software

    hexis

    Git-backed skills, tools & context for AI agents

    Community Bevel-Software
    jonashertner

    OpenCaseLaw

    Open Swiss legal corpus + MCP server: 1M+ court decisions (1875โ€“today), 21k laws, 10M-edge citation graph, 42 MCP tools. CC0 data, MIT code. Live at mcp.opencaselaw.ch

    Community jonashertner
    SystemCraftsman

    Strimzi Kafka CLI

    Command Line Interface for the Strimzi Kafka Operator

    Community SystemCraftsman
    DROOdotFOO

    Raxol

    Write one app, render it to a terminal, a browser, or as agent tools. The terminal for your Gundam.

    Community DROOdotFOO
    morluto

    REA: Reverse Engineer Anything

    Reverse engineer anything with agents, from app behavior down to native binaries.

    Community morluto