dannyhertz/mcp-server
3.2
If you are the rightful owner of mcp-server 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.
A Python-based Model Context Protocol (MCP) server that demonstrates tools, resources, and prompts.
Tools
calculate
Perform math operations (add, subtract, multiply, divide)
get_time
Get current time
echo
Echo back messages
Simple MCP Server
A Python-based Model Context Protocol (MCP) server that demonstrates tools, resources, and prompts.
Features
- Tools: Math calculations, time retrieval, echo messages
- Resources: Server config, sample data access
- Prompts: Greeting and analysis prompt templates
Local Setup
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python server.py
- Test with MCP Inspector:
pip install mcp
mcp dev server.py
Deploying to Render
- Create a new Web Service on Render
- Connect your GitHub repository
- Set the following:
- Build Command:
pip install -r requirements.txt
- Start Command:
python server.py
- Environment: Python 3
- Build Command:
Using with Claude Desktop (Remote)
After deploying to Render, add to your Claude Desktop config:
{
"mcpServers": {
"simple-server": {
"uri": "https://your-app-name.onrender.com"
}
}
}
Available Tools
calculate
: Perform math operations (add, subtract, multiply, divide)get_time
: Get current timeecho
: Echo back messages
Available Resources
config://server
: Get server configurationdata://sample/{item_id}
: Get sample data by ID (1, 2, or 3)image://sample/chart
: PNG image of a sine wave chartcsv://sample/data
: Sample sales data in CSV format
Note: Resources are defined but may have issues with FastMCP v2.8.0. The image resource returns bytes and CSV returns text with proper MIME types set.