Financial Modeling Prep MCP Server

io.github.imbenrabi由 GitHub 账号 imbenrabi 发布v2.9.0更新于 Nov 5, 2026

MCP server for Financial Modeling Prep API with 250+ financial data tools

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

面向 Financial Modeling Prep API 的 MCP 服务器,为助手提供覆盖股票、加密货币、外汇、经济等领域的 267 个金融数据工具。

可以做什么
  • 搜索并浏览代码、公司资料与目录列表
  • 读取财务报表、指标、比率与分析数据
  • 获取报价、价格数据、技术指标与市场指数
  • 检索新闻、新闻稿与 SEC 文件
  • 查询内部人、机构与政府交易,以及 ETF 和基金
  • 获取加密货币、外汇、大宗商品、财报与经济数据
适用场景
当助手需要回答关于上市公司、市场行情、监管文件或宏观数据的问题,且你已有或愿意申请 Financial Modeling Prep API 密钥时适用。托管实例适合快速试用,自托管适合希望自行控制工具加载的团队。
运行要求
需要 Financial Modeling Prep API 访问令牌,通过 FMP_ACCESS_TOKEN 或 --fmp-token 命令行参数提供。可使用托管远程端点,也可通过 npm/npx 本地安装,v2.6.0 及以上需 Node.js 25.3.0 或更高版本(v2.5.x 及以下需 Node.js 20+)。可选配置项:DYNAMIC_TOOL_DISCOVERY、FMP_TOOL_SETS 和 PORT。需能访问 FMP API 的网络。
安装前请注意
FMP_ACCESS_TOKEN 是第三方付费 API 凭证;会话配置中的令牌可覆盖服务器自身的令牌,因此不要把它放进共享链接。查询内容和令牌会发送给 Financial Modeling Prep,托管实例属于第三方端点。默认模式会一次性加载全部 267 个工具,可能占用大量上下文,动态模式可避免此问题。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Financial Modeling Prep MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.imbenrabi%2Ffinancial-modeling-prep-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "financial-modeling-prep": {
      "type": "http",
      "url": "https://financial-modeling-prep-mcp-server-production.up.railway.app/mcp"
    }
  }
}

README

Financial Modeling Prep MCP Server

[npm version] [license]

A Model Context Protocol (MCP) server for the Financial Modeling Prep API, exposing 267 financial data tools to AI assistants.

Features

  • 267 Financial Tools across 24 toolsets — stocks, ETFs, crypto, forex, commodities, economics, and more
  • Dynamic Tool Management — built on toolception for runtime enable/disable of toolsets via meta-tools
  • Three Server Modes — Dynamic (5 meta-tools), Static (pre-loaded toolsets), or All Tools (default)
  • Flexible Deployment — use the hosted instance or self-host via npm, Docker (built from source), or source
  • Streamable HTTP Transport — compatible with Claude.ai, Claude Desktop, and MCP registries

Quick Start

Hosted Instance (Fastest)

No installation required. Connect directly:

https://financial-modeling-prep-mcp-server-production.up.railway.app/mcp

The hosted instance runs in Dynamic mode: it starts with 5 meta-tools that load toolsets on demand. Pass your FMP API key as FMP_ACCESS_TOKEN in the ?config= session configuration (see Usage).

Self-Hosted (One-Liner)

bash
npx financial-modeling-prep-mcp-server --fmp-token=YOUR_FMP_API_KEY

Or install globally:

bash
npm install -g financial-modeling-prep-mcp-serverfmp-mcp --fmp-token=YOUR_FMP_API_KEY

Get your API key at financialmodelingprep.com.

Table of Contents

Installation

Prerequisites: Node.js 25.3.0 or higher (for v2.6.0+). For older versions (v2.5.x and below), Node.js 20+ is required.

Choose the method that fits your workflow:

  • NPM — npm install -g financial-modeling-prep-mcp-server
  • Docker — build the image from source (no pre-built image is published)
  • Source — clone and run with npm install && npm run build

See docs/INSTALLATION.md for detailed steps per method.

Configuration

The server supports three operational modes controlled via CLI arguments or environment variables:

ModeHow to EnableDescription
DynamicDYNAMIC_TOOL_DISCOVERY=trueStarts with 5 meta-tools; load toolsets at runtime
StaticFMP_TOOL_SETS=search,companyPre-loads specified toolsets on session creation
All Tools (default)(default)Loads all 267 tools immediately

Precedence: for mode and tool sets, CLI args > Environment variables > Defaults. A session ?config= token overrides the server's FMP_ACCESS_TOKEN for that session.

See docs/CONFIGURATION.md for the full configuration reference.

Usage

Connect to the server over streamable HTTP:

  • Claude.ai / Claude Desktop — add as a remote connector (Settings > Connectors)
  • Custom clients — POST to /mcp: send initialize first, then the mcp-session-id it returns on every later request
  • MCP registries — Glama.ai and the official MCP Registry

See docs/USAGE.md for client-specific setup, session headers, and request examples.

Available Tools

24 toolsets covering:

Search · Directory & Symbol Lists · Company Information · Financial Statements · Financial Metrics & Analysis · Technical Indicators · Quotes & Price Data · Market Indexes & Performance · Market Data · News & Press Releases · SEC Filings · Insider & Institutional Trading · ETFs & Funds · Government Trading · Cryptocurrency & Forex · Earnings · Special Data Sets · Commodities · Economics · Bulk Data Tools

See docs/API_REFERENCE.md for the complete tool catalog.

Registries

This server is listed on multiple MCP registries for easy discovery:

See docs/REGISTRIES.md for registry-specific setup instructions.

Contributing

Contributions are welcome. Please see CONTRIBUTING.md for development setup, testing, and pull request guidelines.

License

Apache-2.0

来源:README.md,提交 47dc8f1

工具

5

enable_toolset

Enable a toolset by name

输入参数name必填

disable_toolset

Disable a toolset by name and remove its tools

输入参数name必填

list_toolsets

List available toolsets with active status and definitions

无需输入参数。

describe_toolset

Describe a toolset with definition, active status and tools

输入参数name必填

list_tools

List currently registered tool names (best effort)

无需输入参数。

版本历史

4
  1. v2.9.0最新Nov 5, 2026
  2. v2.8.0Oct 14, 2026
  3. v2.7.0Oct 10, 2026
  4. v2.6.12Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分