Cover image
Try Now
2025-04-12

财务建模准备MCP服务器

3 years

Works with Finder

1

Github Watches

1

Github Forks

7

Github Stars

Financial Modeling Prep (FMP) MCP Server

A Model Context Protocol (MCP) server that provides access to Financial Modeling Prep (FMP) API data through a standardized interface. This server allows AI assistants like Claude to access financial data programmatically.

Features

  • Company Profiles: Access company information, descriptions, market caps, employee counts, and industry data
  • Financial Statements: Retrieve income statements, balance sheets, and cash flow statements
  • Financial Metrics: Get key metrics, ratios, and growth data
  • Analyst Data: Access analyst estimates and recommendations
  • SEC Filings: Find and retrieve SEC filing content
  • Earnings Transcripts: Get earnings call transcripts
  • Market Data: Access current stock prices and treasury yields
  • Competitor Analysis: Find competitor companies

Installation

Prerequisites

  • Python 3.8 or higher
  • UV package manager (recommended) or pip
  • Financial Modeling Prep API key

Setup

  1. Clone this repository

  2. Create a .env file in the project root with your API key:

    # Financial Modeling Prep API Configuration
    FMP_KEY=your_api_key_here
    
    # Optional: SEC API Configuration
    SEC_ACCESS=YourCompanyName YourEmail@example.com
    
  3. Install dependencies using UV (recommended):

    uv venv
    uv pip install -r requirements.txt
    

    Or using pip:

    pip install -r requirements.txt
    

Running the Server

Using UV (Recommended)

UV provides faster dependency resolution and installation. To run the server with UV:

# Activate the virtual environment
uv venv activate

# Run the server
python fmp_mcp_server.py

The server will start and listen for connections on the default MCP port.

Using pip

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Run the server
python fmp_mcp_server.py

Connecting with Claude Desktop

Claude Desktop can connect to MCP servers to access financial data. Here's how to set it up:

  1. Download Claude Desktop
  2. Edit claude_desktop_config.json: "fmp_mcp_server": { "command": "uv", "args": [ "--directory", "REPLACE ME WITH ABSOLUTE DIRECTORY TO REPO", "run", "fmp_mcp_server.py" ] }

Now Claude can use the FMP data through the MCP interface. You can ask Claude to:

  • Get company profiles
  • Retrieve financial statements
  • Find SEC filings
  • Access market data
  • And more!

Example Queries for Claude

Once connected, you can ask Claude questions like:

  • "I am considering a 3 year horizon investment, is Apple a good investment?"
  • "Show me Tesla's latest quarterly income statement"
  • "Find the latest 10-K filing for Microsoft"
  • "What are Amazon's main competitors?"
  • "Get the latest earnings transcript for Meta"

Configuration Options

The server supports the following environment variables:

  • FMP_KEY: Your Financial Modeling Prep API key (required)
  • SEC_ACCESS: Your company name and email for SEC API access (optional)

Caching

The server implements a caching system to reduce API calls and improve performance:

  • Financial data is cached by quarter/year
  • Profile data is cached monthly
  • Daily price data is cached for the current day

Cache files are stored in the DataCache directory.

Logging

Logs are written to the logs directory with rotation enabled:

  • Maximum log file size: 10MB
  • Number of backup files: 5

License

MIT License

Acknowledgements

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

    Reviews

    4 (1)
    Avatar
    user_SD3iAXtq
    2025-04-18

    I've been using the fmp_mcp_server by shadi-fsai for a while now, and it has exceeded my expectations. The server is robust, efficient, and incredibly easy to set up. The documentation is clear, making it accessible even for those new to such applications. Highly recommend checking it out on GitHub!