Overview
The FMP (Financial Modeling Prep) LangChain integration provides a seamless way to access financial market data through natural language queries. This integration offers two main components:FMPDataToolkit: Creates collections of tools based on natural language queriesFMPDataTool: A single unified tool that automatically selects and uses the appropriate endpoints
Setup
Instantiation
There are two main ways to instantiate the FMP LangChain integration:- Using FMPDataToolkit
- Using FMPDataTool
Invocation
The tools can be invoked in several ways:Direct Invocation
Using with LangChain Agents
Advanced Usage
You can customize the tool’s behavior:Chaining
You can chain the tool similar to other tools simply by creating a chain with desired model.API reference
FMPDataToolkit
Main class for creating collections of FMP API tools:FMPDataTool
Unified tool that automatically selects appropriate FMP endpoints:ResponseFormat
Enum for controlling response format:Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.