metaodi mcp服务器
MCP服务器,用于我的工具,如OpenERZ或tecdottir。
服务器部署在: https://mcp.metaodi.ch
可用工具
OpenERZ(废物收集)
get_next_waste_collection(region, area?)get_next_waste_collection_for_type(waste_type, region, area?)list_waste_regions()list_waste_areas(region)list_waste_types(region)
特多蒂尔(天气)
list_weather_stations()get_weather_measurements(station, start_date?, end_date?, limit?)
使用服务器
在Claude桌面中配置
要将此MCP服务器与Claude Desktop一起使用,请将以下内容添加到您的Claude Desktop配置文件中:
配置文件的位置:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json
配置:
{
"mcpServers": {
"metaodi": {
"url": "https://mcp.metaodi.ch/mcp"
}
}
}更新配置后,重新启动Claude Desktop以应用更改。
在ChatGPT中配置
要将此MCP服务器与ChatGPT一起使用:
- 打开ChatGPT设置
- 导航到MCP服务器部分
- 使用以下URL添加新服务器:
https://mcp.metaodi.ch/mcp - 保存配置
使用MCP检查员进行测试
您还可以使用MCP检查器工具交互式测试服务器:
npx -y @modelcontextprotocol/inspector https://mcp.metaodi.ch开发用途
Python SDK:https://github.com/modelcontextprotocol/python-sdk
uv run mcp运行MCP服务器:
uv run mcp run app.pyMCP检查员:
npx -y @modelcontextprotocol/inspector uv run mcp run app.py健康检查
部署的服务器位于 https://mcp.metaodi.ch 具有自动运行的健康检查:
- 每次部署后
- 按计划每6小时
- 通过GitHub操作手动
要在本地运行健康检查,请执行以下操作:
# Install test dependencies
pip install -e ".[test]"
# Run tests against deployed server
pytest tests/test_health_check.py -v
# Run against local server
MCP_SERVER_URL=http://localhost:8000 pytest tests/test_health_check.py -v看 tests/README.md 了解更多信息。
