Skip to main content
Glama
room202

Echo Hello MCP Server

by room202

MCPサーバーのサンプル

動作環境

  • Windows11 Pro 23H2

  • Python 3.13.2

  • uv 0.6.12

Related MCP server: Hello World MCP Server

事前準備

  • Visual Studio Codeのインストール

  • Pythonのインストール

  • uvコマンドのインストール

uvコマンドのインストール

PowerShellから下記コマンドを実行する

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

初回のプロジェクト作成

# プロジェクトの新規作成
uv init echo_hello
cd echo_hello

# Python仮想環境を使用
uv venv
.venv\Scripts\activate

# 依存関係をインストールする
uv add mcp[cli] httpx

# MCPサーバーのソースコード作成
# 今回は「hello.py」とする
new-item hello.py

MCPサーバー本体をPythonで作成

from typing import Any
import httpx
from mcp.server.fastmcp import FastMCP

# FastMCPサーバーの初期化
mcp = FastMCP("echo_hello")

# FastMCPサーバーが呼び出された時の処理
@mcp.tool()
async def echo_hello(name: str) -> str:
    # 今回は「コンニチハ、{プロンプトから渡された値}!!!!」と返すだけ
    return f"コンニチハ, {name}!!!!"

if __name__ == "__main__":
    # 初期化とサーバー実行
    mcp.run(transport='stdio')

MCPサーバーの登録

ファイル:C:\Users\%USERPROFILE%\AppData\Roaming\Code\User\settings.json

~省略~
"mcp": {
    "inputs": [],
    "servers": {
        "echo_hello": {
            "command": "uv",
            "args": [
                "--directory",
                "C:\\Workspace\\mcp\\mcp_server_demo\\echo_hello",
                "run",
                "echo_hello.py"
            ]
        }
    }
},
F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    C
    quality
    -
    maintenance
    A simple boilerplate MCP server that provides a basic greeting tool for demonstration purposes. Serves as a starting template for developers to quickly create and deploy custom MCP servers.
    Last updated
    1
    30
  • A
    license
    C
    quality
    D
    maintenance
    A simple MCP server that provides a basic greeting tool for saying hello with customizable names. Serves as a boilerplate template for developers to quickly create and deploy new MCP servers.
    Last updated
    1
    30
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A minimal demonstration MCP server built with FastMCP that exposes a simple greeting tool, showcasing basic server setup and remote deployment capabilities.
    Last updated

View all related MCP servers

Related MCP Connectors

  • A very simple remote MCP server that greets you, with a custom icon.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • MCP server for generating rough-draft project plans from natural-language prompts.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/room202/mcp-server-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server