FRED MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with FRED MCP or direct API to search economic series, retrieve observations, explore releases, and compare regional data through natural language.

FRED logoFRED
Api Key

FRED is the Federal Reserve Bank of St. Louis economic data service. It provides broad access to trusted time series, releases, sources, and regional datasets.

36 Tools

Try FRED now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
FRED
Try asking
TOOLS

Supported Tools

Every FRED action and event your agent gets out of the box.

Get Category

Return one FRED category by ID, including its name and parent category.

Get Geofred Regional Data

Return a GeoFRED regional cross-section for a series group and date using explicit geography, seasonal adjustment, units, and frequency.

Get Geofred Series Data

Return GeoFRED regional cross-section values for a series, grouped by date.

Get GeoFRED Series Group

Return GeoFRED map metadata and the available date range for a regional series.

Get Geofred Shapes

Return the GeoJSON FeatureCollection for a supported GeoFRED region shape.

Get Release

Return metadata for one FRED economic data release.

Get Release Tables

Return the hierarchical table elements for one FRED release, optionally including observation values.

Get Series

Return metadata for one FRED economic data series.

Get Series Release

Return the FRED release that publishes one economic data series.

Get Source

Return metadata for one FRED data source.

List All Release Dates

Return one page of release dates across all FRED releases.

List Category Children

Return the immediate child categories of a FRED category.

List Category Related Tags

Return one offset-based page of tags related to required seed tags within a FRED category.

List Category Series

Return one page of economic data series assigned to a FRED category, with filtering and ordering controls.

List Category Tags

Return one page of tags associated with series in a FRED category.

List Related Categories

Return categories related to a specified FRED category.

List Related Tags

Return one offset-based page of FRED tags related to required seed tags.

List Release Dates

Return one page of publication dates for one FRED release.

List Release Observations Bulk

Return one page of full-history observations for every series in a FRED release using the v2 bulk endpoint.

List Release Related Tags

Return one offset-based page of tags related to required seed tags within a FRED release.

List Releases

Return one page of FRED economic data releases.

List Release Series

Return one page of economic data series included in a FRED release.

List Release Sources

Return the data sources associated with one FRED release.

List Release Tags

Return one page of tags associated with series in a FRED release.

List Series By Tags

Return one page of FRED series that match all required tags and none of the excluded tags.

List Series Categories

Return the FRED categories containing one economic data series.

List Series Observations

Return one caller-controlled page of observations for a FRED series, with vintage, frequency, transformation, aggregation, and output controls.

List Series Search Related Tags

Return one caller-controlled offset page of tags related to required seed tags within FRED series-search results.

List Series Search Tags

Return one offset-based page of tags associated with the results of a FRED series search.

List Series Tags

Return all tags assigned to one FRED economic data series.

List Series Updates

Return one page of FRED series ordered by their latest observation update time, with optional geographic and UTC update-window filters.

List Series Vintage Dates

Return one caller-controlled page of dates on which values for a FRED series were released or revised.

List Source Releases

Return one page of FRED releases published by a specified data source.

List Sources

Return one page of organizations that source economic data in FRED.

List Tags

Search or filter FRED tags and return one ordered offset-based page.

Search Series

Search FRED economic data series by stemmed keywords or wildcard-capable series ID patterns and return one filtered, ordered page.

SETUP GUIDE

Connect FRED MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["fred"],
  mcp: true,
});
Create a session scoped to FRED and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Find the latest U.S. unemployment rate from FRED and report its value and observation date.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a FRED request
SETUP GUIDE

Connect FRED API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["fred"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to FRED
3

Run FRED tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Find the latest U.S. unemployment rate from FRED and report its value and observation date." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the FRED tool calls through the session, and print the final answer

Why Use Composio?

AI Native FRED Integration

  • Supports both FRED MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable economic data queries
  • Rich coverage for searching series, retrieving observations, and exploring releases and sources

Managed Auth

  • Connect your own FRED API key without embedding it in agent prompts or application code
  • Central place to manage, scope, and revoke FRED access
  • Per user and per environment credentials with secure API request handling

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Clear schemas help agents find time series, filter observations, and interpret FRED results
  • Comprehensive execution logs show what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access FRED
  • Scoped access to FRED tools and economic datasets
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use FRED with any AI Agent Framework

Choose a Framework you want to connect FRED with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with FRED.It takes 30 seconds.

Managed auth, hosted MCP servers, and every FRED tool your agent needs.Free to start.

Start building