FastMCP Math Server

FastMCP Math Server

mcp-server-cthuaung•bycthuaung

An MCP server built with FastMCP that offers arithmetic and advanced math tools plus a dynamic greeting resource.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides basic arithmetic tools for addition, subtraction, multiplication, and division.
  • •Offers advanced math tools including power, square root, cube root, factorial, logarithm, remainder, and trigonometric functions.
  • •Exposes a dynamic greeting resource parameterized by name.
  • •Runs over SSE transport by default, with stdio also supported by FastMCP.

BEST FOR

  • •Performing arithmetic and advanced math operations through MCP tools.
  • •Adding custom tools and resources by following the existing decorator patterns.

ABOUT MCP-SERVER-CTHUAUNG

FastMCP Math Server is cataloged as an MCP server attributed to cthuaung. An MCP server built with FastMCP that offers arithmetic and advanced math tools plus a dynamic greeting resource. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for FastMCP Math Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What math tools does the server provide?

It provides add, subtract, multiply, divide, power, sqrt, cbrt, factorial, log, remainder, sin, cos, and tan.

How can I extend the server with new tools or resources?

Add new tools with the @mcp.tool() decorator and new resources with the @mcp.resource() decorator, following main.py.

Upstream README

View this exact version on GitHub

README.md · 66b806ec6741 · Fetched 2026-11-13 12:14:30 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Server Tutorial

This repository contains a simple MCP (Model Context Protocol) server built with FastMCP. The server provides various mathematical operations as tools that can be used through the MCP protocol.

Features

  • Basic arithmetic operations (addition, subtraction, multiplication, division)
  • Advanced mathematical functions:
    • Power
    • Square root
    • Cube root
    • Factorial
    • Logarithm
    • Trigonometric functions (sin, cos, tan)
    • Remainder
  • Dynamic greeting resource

Prerequisites

  • Python 3.8 or higher
  • FastMCP library

Installation

  1. Clone this repository
  2. Create and activate a virtual environment:
    uv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:
    uv install fastmcp
    

Usage

Running the Server

Run the server using:

python main.py

The server uses SSE (Server-Sent Events) transport by default, which allows you to connect using MCP Inspector.

Connecting with MCP Inspector

  1. Open MCP Inspector
npx @modelcontextprotocol/inspector

  1. Choose SSE Transport Type
  2. Connect to the server URL (typically http://localhost:8000/sse)
  3. You can now interact with the mathematical tools and resources defined in the server

Available Tools

  • add(a, b): Adds two numbers
  • subtract(a, b): Subtracts two numbers
  • multiply(a, b): Multiplies two numbers
  • divide(a, b): Divides two numbers
  • power(a, b): Calculates a raised to the power of b
  • sqrt(a): Calculates the square root of a number
  • cbrt(a): Calculates the cube root of a number
  • factorial(a): Calculates the factorial of a number
  • log(a): Calculates the natural logarithm of a number
  • remainder(a, b): Calculates the remainder when a is divided by b
  • sin(a): Calculates the sine of a number
  • cos(a): Calculates the cosine of a number
  • tan(a): Calculates the tangent of a number

Available Resources

  • greeting://{name}: Returns a personalized greeting for the given name

Modifying the Server

You can add more tools and resources by following the pattern in main.py:

  1. To add a new tool, use the @mcp.tool() decorator
  2. To add a new resource, use the @mcp.resource() decorator

Transport Options

FastMCP supports two transport protocols:

  • stdio: Standard input/output (terminal-based)
  • sse: Server-Sent Events (browser-based, compatible with MCP Inspector)

To change the transport protocol, modify the transport parameter in the mcp.run() call.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for FastMCP Math Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-cthuaung)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools