Feedback

MCP Server Tutorial — by cthuaung

@cthuaung Claim

Basic information

Runtime
python
Category
License
Not specified
Transports
stdio
Author
cthuaung
Submitted by
Community
Quality
10

About MCP Server Tutorial

# MCP Server Tutorial

MCP Server Tutorial is a MCP server in the Other category listed in the AddMCP.net directory, published by cthuaung. Supported transport: stdio. Runtime: python. Source code is hosted on github.com. Related topics: math-assistant, math-solver, mathgpt.

Setup

{
    "mcpServers": {
        "MCP Server Tutorial": {
            "command": "python",
            "args": [
                "main.py"
            ]
        }
    }
}

MCP Server Tutorial — by cthuaung config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "MCP Server Tutorial": {
            "command": "python",
            "args": [
                "main.py"
            ]
        }
    }
}

MCP Server Tutorial — by cthuaung tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Server Tutorial?

MCP Server Tutorial is a simple MCP (Model Context Protocol) server built with FastMCP that provides various mathematical operations as tools and a dynamic greeting resource. It is intended for developers learning to create and use MCP servers.

How to use MCP Server Tutorial?

Install Python 3.8+, create a virtual environment, and install FastMCP. Run the server with python main.py using SSE transport by default. Connect via MCP Inspector (run npx @modelcontextprotocol/inspector, choose SSE, and connect to http://localhost:8000/sse).

Key features of MCP Server Tutorial

  • Basic arithmetic: addition, subtraction, multiplication, division
  • Advanced math: power, square root, cube root, factorial, logarithm, trigonometry
  • Dynamic greeting resource (greeting://{name})
  • Supports SSE and stdio transport protocols
  • Easily extensible with @mcp.tool() and @mcp.resource() decorators

Use cases of MCP Server Tutorial

  • Learning how to build and run an MCP server with FastMCP
  • Prototyping mathematical tool integrations in AI assistants
  • Demonstrating SSE-based MCP connections via Inspector

Frequently asked questions

1 What are the prerequisites for running this server?

Python 3.8 or higher and the FastMCP library. Dependencies are installed via uv install fastmcp.

2 Which transport protocols are supported?

FastMCP supports two transport protocols: stdio (terminal-based) and sse (Server-Sent Events, browser-based compatible with MCP Inspector). The default is SSE.

3 How can I add new tools or resources?

Add a new tool by using the @mcp.tool() decorator or a new resource by using the @mcp.resource() decorator in main.py.

4 Where does the server’s data live?

No external databases or storage are mentioned; all operations are stateless calculations performed in memory.

5 Is authentication or authorization required?

The README does not mention any authentication or authorization mechanisms.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬