CF

cdtait/fmp-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

51 stars 14 forks 质量 73 趋势 14MIT

cdtait/fmp-mcp-server 是从 https://github.com/cdtait/fmp-mcp-server. 导入的 MCP 服务器候选服务器。

概览

cdtait/fmp-mcp-server 是从 https://github.com/cdtait/fmp-mcp-server. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,提供使用财务建模准备API进行财务分析的工具、资源和提示。

特色

  • 公司信息:访问详细公司简介和同行比较
  • 财务报表:检索和分析损益表、资产负债表和现金流量表
  • 财务指标:获取投资分析的关键财务比率和指标
  • 市场数据:获取市场快照、指数和新闻
  • 股票报价:获取当前股票报价、售后报价及简化价格信息
  • 股票图表:访问历史价格数据并计算价格变动
  • 分析师评级:获取分析师推荐和评级详情
  • 市场指数:访问市场指数数据和报价
  • 市场表现者:获得涨幅最大、跌幅最大和最活跃的股票
  • 市场开放时间:请查看主要交易所的市场开放时间和假期
  • ETF分析:分析ETF行业权重、国家敞口及持仓
  • 商品:获取商品列表、当前价格和历史价格数据
  • 加密货币:访问加密货币列表和当前报价

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Financial Modeling Prep MCP Server

A Model Context Protocol (MCP) server that provides tools, resources, and prompts for financial analysis using the Financial Modeling Prep API.

Features

  • Company Information: Access detailed company profiles and peer comparisons
  • Financial Statements: Retrieve and analyze income statements, balance sheets, and cash flow statements
  • Financial Metrics: Access key financial ratios and metrics for investment analysis
  • Market Data: Get market snapshots, indexes, and news
  • Stock Quotes: Get current stock quotes, aftermarket quotes, and simplified price information
  • Stock Charts: Access historical price data and calculate price changes
  • Analyst Ratings: Get analyst recommendations and rating details
  • Market Indices: Access market indices data and quotes
  • Market Performers: Get biggest gainers, losers, and most active stocks
  • Market Hours: Check market hours and holidays for major exchanges
  • ETF Analysis: Analyze ETF sector weightings, country exposure, and holdings
  • Commodities: Get commodities list, current prices, and historical price data
  • Cryptocurrencies: Access cryptocurrency listings and current quotes
  • Forex: Get forex pair listings and exchange rates
  • Technical Indicators: Calculate and interpret Exponential Moving Average (EMA)
  • Analysis Prompts: Generate investment analyses using predefined prompt templates
  • Chat Agent: Interactive CLI chat interface to FMP MCP Server
  • Multiple Transport Options: Support for stdio, SSE, and Streamable HTTP transports
  • Stateful & Stateless Modes: Flexible deployment options for different use cases
  • Docker Support: Containerized deployment with configurable transport modes
  • Health Check Endpoint: Built-in /health endpoint for load balancer health checks

Code Organization

The codebase is organized to align with the FMP API documentation structure found at FMP API Documentation. Each module corresponds to a specific section of the API:

  • analyst.py: Analyst recommendations and price targets
  • charts.py: Stock chart and historical price data
  • commodities.py: Commodities list, price data, and historical price data
  • company.py: Company profile and related information
  • crypto.py: Cryptocurrency listings and quotes
  • etf.py: ETF sector weightings, country exposure, and holdings
  • forex.py: Forex pair listings and exchange rates
  • indices.py: Market indices listings and quotes
  • market.py: Market data and news
  • market_hours.py: Market hours and holidays for major exchanges
  • market_performers.py: Biggest gainers, losers, and most active stocks
  • quote.py: Stock quote data, aftermarket quotes, and price changes
  • search.py: API for searching tickers and companies
  • statements.py: Financial statements (income, balance sheet, cash flow, ratios)
在 GitHub 查看完整 README

安装

docker run -p 8000:8000 -v $(pwd)/.env:/app/.env ghcr.io/cdtait/fmp-mcp-server:latest
新手?先看 mcpskill.org 教程 →