Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

Financial Modeling Prep MCP 服务器

License: MIT Node.js MCP SDK Version

用于 Financial Modeling Prep (FMP) 市场数据的 MCP 服务器,基于现代 MCP SDK 工具/资源/提示词模型构建。

概述

aigroup-fmp-mcp 为 Financial Modeling Prep API 提供了一个结构化的 MCP 接口,用于:

  • 实时报价和代码查询

  • 公司概况和财务报表

  • 分析师预测和评级

  • 技术指标和历史图表

  • 财报/经济日历工作流

  • 用于分析任务的可重用 MCP 资源和提示词

Related MCP server: FMP MCP Server

亮点

  • 25 个 MCP 工具,涵盖市场数据、财务、分析师工作流、技术指标和日历数据

  • 资源支持,实现基于 URI 的直接访问模式

  • 提示词模板,用于股票分析、投资组合审查和财报预览

  • 完整的 stdio MCP 支持,带有可选的 HTTP 健康/信息端点

  • Zod 验证,实现更安全的输入处理

  • 基于 MCP SDK 1.27.1 构建,采用现代 McpServer API

快速入门

要求

  • Node.js >= 18

  • npm

  • 有效的 FMP API 密钥

使用本地源码运行

git clone https://github.com/jackdark425/aigroup-fmp-mcp.git
cd aigroup-fmp-mcp
npm install
npm run build
export FMP_API_KEY="your-api-key"
npm start

HTTP 模式

export FMP_API_KEY="your-api-key"
npm run start:http

默认情况下,HTTP 服务器公开:

  • POST /mcp — 在此版本中返回 501

  • GET /health — 健康检查

  • GET / — 服务器信息

当前版本中的 HTTP 模式仅用于健康检查和服务元数据。请使用 stdio 模式以使用 MCP 工具、资源和提示词。

配置

在启动服务器之前设置您的 API 密钥:

export FMP_API_KEY="your-api-key"

Financial Modeling Prep 获取您的密钥。

MCP 客户端配置

Claude Desktop / 兼容的 MCP 客户端

{
  "mcpServers": {
    "fmp": {
      "command": "node",
      "args": ["/path/to/aigroup-fmp-mcp/build/index.js"],
      "env": {
        "FMP_API_KEY": "your-api-key"
      }
    }
  }
}

工具

市场数据

  • get_quote

  • search_symbol

  • get_market_gainers

  • get_market_losers

  • get_most_active

  • get_sector_performance

  • get_sp500_constituents

财务报表

  • get_company_profile

  • get_income_statement

  • get_balance_sheet

  • get_cash_flow

  • get_stock_news

  • get_key_metrics

  • get_financial_ratios

分析师数据

  • get_analyst_estimates

  • get_price_target

  • get_analyst_ratings

  • get_insider_trading

  • get_institutional_holders

技术指标

  • get_technical_indicator_rsi

  • get_technical_indicator_sma

  • get_technical_indicator_ema

  • get_historical_chart

日历数据

  • get_earnings_calendar

  • get_economic_calendar

  • get_economic_indicator

资源

  • fmp://company/{symbol}/profile

  • fmp://company/{symbol}/quote

  • fmp://company/{symbol}/financials/{statement}/{period}

  • fmp://market/overview

  • fmp://market/sectors/{date}

提示词

  • stock_analysis

  • portfolio_evaluation

  • earnings_preview

项目结构

aigroup-fmp-mcp/
├── src/
│   ├── index.ts
│   ├── server.ts
│   ├── tools/
│   ├── resources/
│   ├── prompts/
│   ├── types/
│   └── utils/
├── package.json
├── tsconfig.json
└── README.md

开发

npm install
npm run build
npm run dev

API 参考

所有工具均映射到 FMP 端点。请参阅官方文档:

致谢

参考项目

感谢 houtini-ai 为此实现提供的开源工作。

许可与使用

本项目基于 MIT 许可证发布。

您可以出于任何目的使用、复制、修改、合并、发布、分发、再许可和销售本软件的副本(包括在商业环境中),前提是保留原始版权声明和许可文本。

请注意:

  • 本软件按 “原样” 提供,不提供任何形式的保证

  • 您必须在软件的副本或重要部分中保留相关的版权和许可声明

  • FMP API 的使用仍受 Financial Modeling Prep 自身的服务条款、配额、计费规则和数据使用限制的约束

请参阅 LICENSE 中的全文。

支持

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that provides tools for financial analysis using the Financial Modelling Prep API. It enables users to retrieve real-time stock quotes, financial statements, valuation metrics, and sector performance data for investment research.
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server that provides tools for financial analysis and investment research using the Financial Modelling Prep API. It enables users to access real-time stock quotes, financial statements, key metrics, and market sector performance data.
  • F
    license
    Not graded
    quality
    D
    maintenance
    A specialized MCP server that provides institutional-grade financial data and market research via the Finnhub API. It enables AI agents to function as equity researchers, generating professional market reports and high-fidelity analysis for stock tickers.
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides tools, resources, and prompts for financial analysis using the Financial Modeling Prep API.
    50
    MIT

View all related MCP servers

Related MCP Connectors

  • The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.

  • Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.

  • Financial Modeling Prep MCP (/stable API; v3 deprecated 2025-08-31).

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jackdark425/aigroup-fmp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server