Echo Hello MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Echo Hello MCP Server greet me in Japanese, my name is Taro"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.pyMCPサーバー本体を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"
]
}
}
},Available Tools
1 toolecho_helloC
Echo a hello message
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of an agent confusing it with another. Its purpose (echoing a hello message) is unambiguous.
The single name echo_hello follows a readable verb_noun snake_case pattern. With only one tool there is no cross-tool consistency to evaluate, so it can't earn a full 5.
A single trivial echo tool offers essentially no functional surface. The count is an extreme mismatch for anything resembling a useful server scope.
The tool does exactly what its stated purpose claims, so it isn't a dead end within its own tiny domain. However, there are no adjacent operations (e.g., configurable messages, other greetings) that would make it a real capability surface.
Maintenance
Related MCP Connectors
POC MCP server. Tool say_hello returns 'Welcome' (agent -> MCP -> API path).
A very simple remote MCP server that greets you, with a custom icon.
Related MCP Servers
- -licenseCqualityNot gradedmaintenanceA 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.110 npm-
- FlicenseCqualityDmaintenanceA 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.1-
- FlicenseNot gradedqualityDmaintenanceA minimal demonstration MCP server built with FastMCP that exposes a simple greeting tool, showcasing basic server setup and remote deployment capabilities.-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides a greeting tool to say hello to users.MIT