这是一个用于处理金融数据报告的MCP(多协议通信)服务器,支持多种接口和功能,能有效助力金融数据的处理与查询。
pip install -r requirements.txt
有多种启动方式可供选择:
python mcp_server.py
npm install -g uv
uv mcp_server.uv
docker build -t financial-reports-mcp .
docker run --rm -it financial-reports-mcp
请将以下内容写入配置文件(.env):
API_KEY=your_api_key
DB_HOST=localhost
DB_PORT=5432
pip install -r requirements.txt
我需要查找德意志银行的基本信息,包括其所在国家、行业以及最新的财务报告。
请列出所有与科技相关的GICS行业,并提供每个行业的详细描述。
可通过核心接口进行更灵活的查询:
get_filing_type(filing_type_id):通过文件类型ID获取详细信息list_industries(...):列出所有GICS行业get_company_detail(company_id):通过公司ID获取详情financial-reports-mcp/
├── mcp_server.py # 主程序入口
├── resources/ # 资源文件
│ ├── sectors.md # 行业分类列表
│ └── filing_types.md # 文件类型列表
├── schemas/ # OpenAPI3 Schema 定义
│ └── api.json # API 接口定义
└── requirements.txt # 依赖管理文件
get_filing_type(filing_type_id):通过文件类型ID获取详细信息list_industries(...):列出所有GICS行业get_company_detail(company_id):通过公司ID获取详情financial-reports://sectors:所有GICS行业的列表financial-reports://filing-types:所有文件类型的列表通信问题:
-i参数模块未找到:
pip install -r requirements.txt连接不上服务器:
API认证失败:
.env文件中的API_KEY配置正确docker logs 查看本项目遵循MIT License协议。
如需帮助或反馈问题,请联系: