← Back to Home

FMP Tools Documentation

FMP Tools Documentation

AI tools for Financial Modeling Prep (FMP) Node API - compatible with Vercel AI SDK, OpenAI Agents, and more.

Overview

FMP Tools provides pre-built AI tools that integrate financial data into your AI applications. Choose your preferred AI framework and get started with real-time financial data in minutes.

Choose Your AI Framework

🚀 Vercel AI SDK (Recommended)

The most popular choice for building AI applications with React and Next.js.

Best for:

  • React/Next.js applications
  • Streaming responses
  • Type-safe tool integration
  • Modern web development

Get Started with Vercel AI SDK →

🤖 OpenAI Agents

Perfect for building autonomous AI agents with OpenAI's latest framework.

Best for:

  • Autonomous AI agents
  • Complex multi-step workflows
  • OpenAI ecosystem integration
  • Agent-based applications

Get Started with OpenAI Agents →

What You Get

📊 Comprehensive Financial Data

Access to comprehensive financial tools covering:

  • Real-time quotes and market data
  • Financial statements (balance sheet, income statement, cash flow)
  • Key metrics and ratios for financial analysis
  • Market performance and sector analysis
  • Economic indicators and treasury rates
  • ETF holdings and profiles
  • Earnings calendars and economic events
  • Congressional trading activity and RSS feeds
  • Institutional holdings and insider trading
  • Stock-specific data (market cap, splits, dividends)
  • Company information (profiles, executive compensation, shares float)

🛠️ Easy Integration

  • Type-safe interfaces - No need to check FMP documentation
  • Pre-built tools - Ready to use with your AI framework
  • Flexible selection - Use all tools or pick specific categories
  • Error handling - Built-in validation and error management

🔧 Developer Experience

  • Zero configuration - Works out of the box
  • Comprehensive logging - Debug API calls and responses
  • Flexible imports - Import all tools, categories, or individual tools
  • Framework agnostic - Works with multiple AI frameworks

Quick Setup

1. Install the Package

2. Get Your API Key

Sign up at Financial Modeling Prep to get your free API key. For extended usage, this link provides a 10% discount on paid plans.

3. Set Environment Variables

.env.local

4. Choose Your Framework

For Vercel AI SDK:

For OpenAI Agents:

⚠️ Version Requirements:

  • @openai/agents: Must be exactly 0.1.0 or 0.1.1
  • zod: Must be ^3.25.76

Example Use Cases

Financial Analysis Assistant

Create an AI assistant that can analyze stocks, provide financial insights, and answer market questions.

Market Research Bot

Build a bot that tracks market performance, identifies trends, and provides real-time market updates.

Investment Research Tool

Develop a tool that researches companies, analyzes financial statements, and provides investment recommendations.

Economic Data Dashboard

Create an application that monitors economic indicators, treasury rates, and provides economic insights.

Tool Categories

Our tools are organized into logical categories for easy selection:

View All Tool Categories →

Next Steps

  1. Choose your AI framework - Vercel AI SDK or OpenAI Agents
  2. Explore tool categories - See all available tools
  3. Check out examples - See practical implementations
  4. Learn best practices - Build robust applications
  5. Handle errors gracefully - Comprehensive error management

Need Direct API Access?

If you need more control or want to build custom integrations, use the fmp-node-api package for direct API access:

View API Documentation →

Support