A simple Hello World MCP server built with FastMCP, serving as a basic example.
A simple "Hello World" MCP (Model Context Protocol) server built with FastMCP. This server demonstrates basic MCP functionality with several example tools.
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
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"]
}
}
}
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
uvx hello-mcp-server
pip install .
hello-mcp-server
For development, install in editable mode:
pip install -e .
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.
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"]
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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.
Greets someone with a personalized message.
Parameters:
name
(optional): Name of the person to greet (default: "World")Example:
{
"name": "Alice"
}
Returns information about the MCP server.
Parameters: None
Echoes back the provided message.
Parameters:
message
(required): The message to echo backAnalyzes text and provides word/character statistics.
Parameters:
text
(required): The text to analyzeThis MCP server uses the stdio transport protocol, which means:
This is the standard protocol for MCP servers and ensures compatibility with all MCP clients.
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.
hello-mcp-server/
├── hello_mcp_server/
│ ├── __init__.py
│ └── server.py
├── pyproject.toml
└── README.md
To contribute to this project:
This project is open source. Please check the license file for details.
For issues and questions, please open an issue on the project repository.
A tool to retrieve API interface information from YApi, with authentication configurable via environment variables.
Provides preset prompt templates as tools to assist clients like Cursor and Windsurf in executing various tasks.
MCP Expr-Lang provides a seamless integration between Claude AI and the powerful expr-lang expression evaluation engine.
A collection of MCP servers for Claude Desktop, providing access to network tools, code linters, and Proxmox virtualization management.
Image generation using Google's Gemini API.
An MCP client for Cursor that uses OpenRouter.ai to access multiple AI models. Requires an OpenRouter API key.
Interact with Odoo instances using the XML-RPC API. Requires configuration via environment variables or config files.
Access Chromium and PDFium source code repositories using Google's official CodeSearch APIs, supporting advanced search, Gerrit integration, and issue tracking.
Create secure tunnels to expose local servers to the internet using untun.
A Hot Module Replacement (HMR) proxy server for MCP servers that automatically restarts on file changes, buffers messages, and manages connections.