Hello World MCP Server
A simple Hello World MCP server built with FastMCP, serving as a basic example.
Hello World MCP Server
A simple "Hello World" MCP (Model Context Protocol) server built with FastMCP. This server demonstrates basic MCP functionality with several example tools.
Quick Start
Using uvx with GitHub (Recommended)
You can run this MCP server directly from GitHub using uvx:
uvx --from git+https://github.com/macsymwang/hello-mcp-server.git hello-mcp-server
MCP Client Configuration
Add this to your MCP client configuration:
{
"mcpServers": {
"hello-world": {
"command": "uvx",
"args": ["--from", "git+https://github.com/macsymwang/hello-mcp-server.git", "hello-mcp-server"]
}
}
}
Features
- say_hello: Greet someone with a personalized message
- get_server_info: Get information about the MCP server
- echo_message: Echo back any message you send
- count_words: Analyze text and count words/characters
Installation
Using uvx with GitHub (Recommended)
You can run this MCP server directly from GitHub using uvx:
uvx --from git+https://github.com/macsymwang/hello-mcp-server.git hello-mcp-server
Using uvx from PyPI (if published)
uvx hello-mcp-server
Local Installation
- Clone or download this repository
- Install the package:
pip install .
- Run the server:
hello-mcp-server
Development Installation
For development, install in editable mode:
pip install -e .
Usage
Registering as Stdio Protocol
This MCP server is designed to work with the stdio transport protocol, which is the standard way MCP servers communicate with clients. The server reads JSON-RPC messages from stdin and writes responses to stdout.
MCP Client Configuration
Claude Desktop
Add this configuration to your Claude Desktop config file (usually located at ~/.config/claude/claude_desktop_config.json on Linux/Mac or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"hello-world": {
"command": "uvx",
"args": ["--from", "git+https://github.com/macsymwang/hello-mcp-server.git", "hello-mcp-server"]
}
}
}
Cursor IDE
Add this to your Cursor MCP configuration:
{
"mcpServers": {
"hello-world": {
"command": "uvx",
"args": ["--from", "git+https://github.com/macsymwang/hello-mcp-server.git", "hello-mcp-server"],
"transport": {
"type": "stdio"
}
}
}
}
Generic MCP Client
For other MCP clients, use this configuration:
{
"mcpServers": {
"hello-world": {
"command": "uvx",
"args": ["--from", "git+https://github.com/macsymwang/hello-mcp-server.git", "hello-mcp-server"],
"env": {},
"transport": {
"type": "stdio"
}
}
}
}
Running the Server Manually
The server can also be started manually for testing:
-
Using uvx (recommended):
uvx hello-mcp-server -
Using the installed command:
hello-mcp-server -
Using Python module:
python -m hello_mcp_server.server -
Direct execution:
python hello_mcp_server/server.py
When run manually, the server will wait for JSON-RPC messages on stdin. You can test it by sending MCP protocol messages, but it's typically used through MCP clients.
Available Tools
say_hello
Greets someone with a personalized message.
Parameters:
name(optional): Name of the person to greet (default: "World")
Example:
{
"name": "Alice"
}
get_server_info
Returns information about the MCP server.
Parameters: None
echo_message
Echoes back the provided message.
Parameters:
message(required): The message to echo back
count_words
Analyzes text and provides word/character statistics.
Parameters:
text(required): The text to analyze
Configuration
Stdio Protocol
This MCP server uses the stdio transport protocol, which means:
- Input: The server reads JSON-RPC messages from standard input (stdin)
- Output: The server writes JSON-RPC responses to standard output (stdout)
- Logging: Error messages and logs are written to standard error (stderr)
This is the standard protocol for MCP servers and ensures compatibility with all MCP clients.
Transport Configuration
The server automatically configures itself for stdio transport when started. No additional configuration is needed for the transport layer.
For advanced FastMCP configuration options, refer to the FastMCP documentation.
Requirements
- Python 3.8+
- fastmcp>=0.1.0
Project Structure
hello-mcp-server/
├── hello_mcp_server/
│ ├── __init__.py
│ └── server.py
├── pyproject.toml
└── README.md
Development
To contribute to this project:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is open source. Please check the license file for details.
Support
For issues and questions, please open an issue on the project repository.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Pathmode
Build structured intent specs through Socratic AI conversation. Describe a problem or paste a support ticket — Claude challenges vague thinking, asks pointed questions, and builds a structured spec. Exports as intent.md, .cursorrules, or CLAUDE.md.
AI Agent with MCP
An AI agent using the Model Context Protocol (MCP) with a Node.js server providing REST resources for users and messages.
MCP Github OAuth
An MCP server with built-in GitHub OAuth support, deployable on Cloudflare Workers.
MetaMCP
A proxy server that combines multiple MCP servers into a single endpoint, routing requests to the appropriate underlying server.
AbletonMCP
Control Ableton Live with AI prompts for music production, track creation, and session manipulation.
SD Elements MCP Server
Provides SD Elements API integration for security and compliance management.
Terraform MCP Server by Binadox
MCP server for Terraform — automatically validates, secures, and estimates cloud costs for Terraform configurations. Developed by Binadox, it integrates with any Model Context Protocol (MCP) client (e.g. Claude Desktop or other MCP-compatible AI assistants).
Zeek-MCP
Integrates Zeek network analysis with conversational AI clients. Requires an external Zeek installation.
Hoofy
Your AI development companion. An MCP server that gives your AI persistent memory, structured specifications, and adaptive change management — so it builds what you actually want.
Clappia
A Python-based server for programmatically managing Clappia applications, forms, and submissions via its API.