A minimal mcp-use Python server template.
pip install -r requirements.txt
python server.pyThe server runs at http://localhost:8000/mcp.
greet(name)- Returns a greetingadd(a, b)- Adds two numbersget_current_time()- Returns current timestamp
@server.tool()
def my_tool(arg: str) -> str:
"""Tool description shown to clients."""
return f"Result: {arg}"See the full mcp-use Python docs.