Minimal MCP calculator server example

Minimal MCP calculator server example

introduction-to-mcp•byliteobject

A minimal example project providing an MCP server that demonstrates basic calculator operations over both SSE and stdio transports, with sample clients for each transport.

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

WHAT IT DOES

  • •Implements an MCP server demonstrating basic calculator operations.
  • •Supports both SSE and stdio transports.
  • •Includes an SSE client that connects to the server for real-time updates and notifications.

BEST FOR

  • •Learning the basics of building an MCP server and client.
  • •Testing and debugging an MCP server via a stdio client that launches the server as a subprocess.

ABOUT INTRODUCTION-TO-MCP

Minimal MCP calculator server example is cataloged as an MCP server attributed to liteobject. A minimal example project providing an MCP server that demonstrates basic calculator operations over both SSE and stdio transports, with sample clients for each transport. 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 Minimal MCP calculator server example 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

How can I run the server with hot-reloading during development?

Use the mcp dev command, which starts the MCP Inspector and its proxy server for development with hot-reloading and debugging.

Why does the server not use port 8050 when started with mcp dev?

Because mcp dev runs the MCP Inspector's own proxy on port 6277 rather than the FastMCP server directly; to listen on port 8050, run the server script with Python directly.

Upstream README

View this exact version on GitHub

README.md · ad4365bbdd16 · Fetched 2026-11-13 11:34:37 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.

Introduction to MCP

A minimal MCP server and client example demonstrating basic calculator operations using both SSE and stdio transports.

Installation

To install all packages from your requirements.txt file using pip, you can use the following command in your terminal:

pip install -r requirements.txt

Running the Server

Make sure you have installed the mcp package. You can do this by running the following command in your terminal:

pip install mcp[cli]

Then, you can run the server.py script using the following command:

mcp dev server.py

You can also run the script using Python directly:

python server.py

Use python server.py for normal execution. Use mcp dev server.py for development with hot-reloading and a better developer experience.

Important Note

When you run mcp dev server.py, you are starting the MCP Inspector and its proxy server, not your FastMCP server directly. The MCP Inspector runs its own proxy (default port 6277) and does not use the port (8050) specified in your server.py.

To run your FastMCP server on port 8050 as defined in server.py, you should execute: python server.py

The mcp dev command is for development and debugging with the MCP Inspector, not for running your server directly on the specified port. If you want to use the Inspector, connect your client to the proxy port (6277). If you want your server to listen on 8050, run it with python server.py.

Running the Client

STDIO Client

Launches the server as a subprocess and connects to it using the stdio transport. This is useful for testing and debugging.

python client_stdio.py

SSE Client

Connects to the server using the sse transport. This is useful for real-time updates and notifications.

python client_sse.py

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 Minimal MCP calculator server example 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/introduction-to-mcp)

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