Hinaser/mcp-sample
3.2
If you are the rightful owner of mcp-sample and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Echo Server is a simple server implementation that echoes back any input it receives, demonstrating the basic functionality of the Model Context Protocol (MCP).
Tools
1
Resources
0
Prompts
0
MCP Echo Server
A simple Model Context Protocol (MCP) server that echoes input back as-is.
Installation
Using pip:
pip install -e .
Using uv:
uv pip install -e .
Usage
Running directly
python src/echo_server.py
Using with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"echo-server": {
"command": "python",
"args": ["/path/to/mcp-sample/src/echo_server.py"]
}
}
}
Available Tools
echo(message: str) -> str
: Returns the input message unchanged
Project Structure
mcp-sample/
āāā src/
ā āāā echo_server.py # Main server implementation
āāā examples/ # Example servers (optional)
āāā pyproject.toml # Package configuration
āāā README.md # This file