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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ad4365bbdd16 · 采集于 2026-11-13 11:34:37 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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