API Reference Overview
The FRED MCP Server provides three powerful tools that give you complete access to the Federal Reserve Economic Data (FRED) database containing over 800,000 economic time series.Available Tools
fred_browse
Navigate FRED’s catalog through categories, releases, and sources
fred_search
Search for economic data series by keywords, tags, or filters
fred_get_series
Retrieve time series data with transformations and aggregations
Tool Capabilities
Data Discovery & Navigation
Thefred_browse and fred_search tools work together to help you discover relevant economic data:
Browse by Category
Browse by Category
Navigate through hierarchical categories like:
- Money, Banking & Finance
- Population, Employment & Labor Markets
- Production & Business Activity
- International Data
Search by Keywords
Search by Keywords
Find series using:
- Full-text search across titles and descriptions
- Tag-based filtering (e.g., “gdp”, “monthly”, “seasonally-adjusted”)
- Combined search criteria
Filter by Attributes
Filter by Attributes
Narrow results by:
- Frequency (daily, weekly, monthly, quarterly, annual)
- Units (levels, percent change, index)
- Seasonal adjustment status
- Geographic region
Data Retrieval & Transformation
Thefred_get_series tool provides comprehensive data access:
Time Series Data
Time Series Data
- Historical observations dating back decades
- Real-time data updates
- Custom date ranges
- Vintage data for point-in-time analysis
Built-in Transformations
Built-in Transformations
- Growth rates and percent changes
- Year-over-year comparisons
- Logarithmic transformations
- Moving averages
- Frequency conversions
Aggregation Methods
Aggregation Methods
- Average over periods
- Sum of values
- End-of-period observations
- Custom sampling frequencies
Response Formats
All tools return structured JSON responses:Success Response Structure
Error Response Structure
Common Parameters
Many parameters are shared across tools:Maximum number of results to return. Range varies by tool:
- Search: 1-1000
- Browse: 1-1000
- Series: 1-100000
Number of results to skip for pagination. Useful for retrieving large result sets.
Sort order for results:
asc: Ascending orderdesc: Descending order
Field to sort results by. Options vary by tool but commonly include:
series_id: Alphabetical by IDtitle: Alphabetical by titlepopularity: Most frequently accessedlast_updated: Most recently updated
Rate Limits
The server automatically handles rate limiting with:- Exponential backoff on rate limit errors
- Request queuing
- Automatic retries with jitter
Data Freshness
Data update frequency varies by series:
- Real-time series: Updated within minutes of release
- Daily series: Updated each business day
- Weekly/Monthly: Updated per release schedule
- Quarterly/Annual: Updated per official release calendar
Error Handling
Common error codes and their meanings:| Error Code | Description | Solution |
|---|---|---|
INVALID_API_KEY | API key is invalid or missing | Check your FRED API key configuration |
SERIES_NOT_FOUND | Requested series ID doesn’t exist | Verify the series ID or search for alternatives |
RATE_LIMIT_EXCEEDED | Too many requests | Wait and retry, or reduce request frequency |
INVALID_DATE_RANGE | Date parameters are invalid | Use YYYY-MM-DD format and ensure start < end |
TRANSFORMATION_ERROR | Cannot apply requested transformation | Check if transformation is valid for the series |
Best Practices
1
Start with Search or Browse
Don’t guess series IDs. Use
fred_search or fred_browse to discover available data.2
Use Appropriate Limits
Start with smaller limits and increase as needed. Large requests may timeout.
3
Respect Rate Limits
Plan queries carefully and respect FRED API rate limits. Review FRED’s terms of use.
4
Handle Errors Gracefully
Always check for error responses and have fallback strategies.
Tool Comparison
| Feature | fred_browse | fred_search | fred_get_series |
|---|---|---|---|
| Purpose | Navigate catalog | Find specific series | Retrieve data |
| Input | Category/Release IDs | Keywords/Tags | Series ID |
| Output | Lists of categories/series | Matching series | Time series data |
| Best For | Exploring available data | Finding known indicators | Getting actual values |
| Pagination | ✅ Yes | ✅ Yes | ✅ Yes |
| Filtering | Basic | Advanced | N/A |
| Transformations | ❌ No | ❌ No | ✅ Yes |