本项目是一个通过标准化的 Model Context Protocol 暴露特定功能的轻量级程序,提供了天气和金融两大模块的相关功能,能满足获取天气信息和金融市场数据等需求。
git clone https://github.com/your-username/mcp-weather-server.git
cd mcp-weather-server
python -m venv venv
source venv/bin/activate # Windows 上使用:venv\Scripts\activate
pip install -r requirements.txt
finance 模块并安装其依赖项:cd finance
pip install -r requirements.txt
运行天气服务器:
python main.py
运行金融服务器:
cd finance
python finance_server.py
运行天气演示服务器:
python weather-demo.py