Back to MCP directory
publicPublicdnsLocal runtime

AlphaVantage Trader

一个包含天气服务和金融分析模块的轻量级程序集,通过标准化模型上下文协议提供特定功能。

article

README

🚀 轻量级功能程序

本项目是一个通过标准化的 Model Context Protocol 暴露特定功能的轻量级程序,提供了天气和金融两大模块的相关功能,能满足获取天气信息和金融市场数据等需求。

✨ 主要特性

天气服务器

  • 天气警报:可获取指定美国州份的活跃天气警报。
  • 天气预报:能检索特定位置的详细天气预报。
  • Freshdesk 集成:支持在 Freshdesk 中创建支持票证。

金融模块

  • 盘中市场数据:利用 AlphaVantage API 获取实时股票市场数据。
  • 技术分析
    • 计算移动平均线(包含短期和长期周期)。
    • 计算相对强弱指数(RSI)。
  • 交易建议:依据技术指标生成全面的交易建议。

📦 安装指南

  1. 克隆仓库:
git clone https://github.com/your-username/mcp-weather-server.git
cd mcp-weather-server
  1. 设置 Python 虚拟环境:
python -m venv venv
source venv/bin/activate  # Windows 上使用:venv\Scripts\activate
  1. 安装依赖项:
pip install -r requirements.txt
  1. 切换到 finance 模块并安装其依赖项:
cd finance
pip install -r requirements.txt

💻 使用示例

运行项目

天气服务器

运行天气服务器:

python main.py

金融服务器

运行金融服务器:

cd finance
python finance_server.py

天气演示

运行天气演示服务器:

python weather-demo.py
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client