Sample MCP server tutorial project using FastMCP

Sample MCP server tutorial project using FastMCP

python-mcp-server-sample•by0shimax

A sample Python project demonstrating how to create a Model Context Protocol server with the MCP SDK's FastMCP and run it over stdio.

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

WHAT IT DOES

  • •Creates an MCP server named Demo using FastMCP with debug enabled.
  • •Exposes an addition tool that takes two integers and returns their sum.
  • •Runs the server using the stdio transport.

BEST FOR

  • •Developers learning how to build a basic MCP server in Python.
  • •Connecting a simple MCP server to the Cline client.

ABOUT PYTHON-MCP-SERVER-SAMPLE

Sample MCP server tutorial project using FastMCP is cataloged as an MCP server attributed to 0shimax. A sample Python project demonstrating how to create a Model Context Protocol server with the MCP SDK's FastMCP and run it over stdio. 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 Sample MCP server tutorial project using FastMCP 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 transport does the sample server use?

It runs the MCP server using the stdio transport.

What tool does the sample server expose?

It exposes an addition tool that adds two integers.

Upstream README

View this exact version on GitHub

README.md · 9eed5004f892 · Fetched 2026-11-13 12:24:02 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.

uvのインストール

curl -LsSf https://astral.sh/uv/install.sh | sh

Pythonプロジェクトを作成

# mcp-server-demoというPythonプロジェクトを作成
uv init mcp-server-demo

MCP SDKのインストール

# mcp-server-demoプロジェクト配下に移動
cd mcp-server-demo
# mcp-server-demoプロジェクトにmcp sdkをインストール
uv add "mcp[cli]"

MCPサーバの構築

server.pyファイルの作成(ファイル名はなんでもよい)

mv main.py server.py

server.pyに以下のように記述

from mcp.server.fastmcp import FastMCP

# Create an MCP server with debug enabled
mcp = FastMCP("Demo", debug=True)


# Add an addition tool
@mcp.tool()
def add(a: int, b: int) -> int:
    """Add two numbers"""
    return a + b

# Add this part to run the server
if __name__ == "__main__":
    # stdioトランスポートを使用
    print("Starting MCP server in stdio mode")
    mcp.run(transport="stdio")

ClineへのMCPサーバの登録

ClineのプロジェクトMCPファイルを以下のように編集

{
  "mcpServers": {
    "mcp-demo-server": {
      "command": "uv",
      "args": [
        "--directory",
        <path to mcp-server-demo>,
        "run",
        "server.py"
      ],
      "alwaysAllow": [
        "add"
      ],
      "disabled": false
    }
  }
}

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 Sample MCP server tutorial project using FastMCP 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/python-mcp-server-sample)

REPOSITORY STATS

GitHub Stars1
Forks0

GitHub API evidence checked 2026-11-13 13:11:35.976Z (UTC). Repository-level counts are shared by all components, not individual server installs. Open issues including pull requests: 0.

Last repository push (UTC):2025-06-29

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