使用说明
演示MCP服务器
先决条件
uv应安装包管理器- 拿到
API Key用于访问openweathermap.org天气API
如何在本地运营?
- 首先,克隆此存储库并将cd放入其中。
$ git clone https://github.com/anjan-arun/demo-mcp-server.git && cd demo-mcp-server - 同步依赖关系
$ uv sync - 更新API Key in变量-
api_key属于的get_weather在main-wather.py中 - 运行ACM MCP服务器:
$ uv run main-weather.py - 使用Postman或Claude测试MCP服务器
http://0.0.0.0:8086/mcp