Skip to main content
Glama
FRED MCP Server
by kablewy

以下是以正确的 markdown 格式编写的 README:

FRED MCP 服务器

用于访问美联储经济数据 (FRED) API 的模型上下文协议 (MCP) 服务器实现。该服务器提供从 FRED 搜索和检索经济数据系列的工具。

先决条件

  • Node.js(v16 或更高版本)

  • FRED API 密钥(从FRED API获取)

Related MCP server: FRED MCP Server

安装

  1. 克隆存储库:

    git clone https://github.com/kablewy/fred-mcp-server
    cd fred-mcp-server
  2. 安装依赖项:

    npm install
  3. 将.env.example文件复制到.env并添加您的 FRED API 密钥:

    FRED_API_KEY=your_api_key_here

用法

发展

以开发模式运行服务器:

npm run dev

生产

  1. 构建项目:

    npm run build
  2. 启动服务器:

    npm start

可用工具

服务器提供以下FRED API工具:

系列搜索

使用各种参数搜索经济数据系列。

系列观测值

检索特定经济数据系列的观测数据,选项如下:

  • 日期范围过滤

  • 频率调节

  • 聚合方法

  • 排序和分页

发展

项目结构

fred-mcp-server/
├── src/
│   ├── index.ts      # Server entry point
│   ├── tools.ts      # Tool implementations
│   └── types.ts      # TypeScript interfaces
├── package.json
├── tsconfig.json
└── .env

测试

运行测试套件:

npm test

执照

[您选择的许可证]

贡献

[您的贡献指南]

致谢

Available Tools

2 tools
seriesC

Get observations for a specific FRED data series with advanced options

Inputs: seriesId (required), startDate, endDate, sortOrder, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools have distinct purposes: 'search' is for finding data series, while 'series' is for retrieving observations for a specific series. There is minimal overlap, though the 'advanced options' in both descriptions could cause slight confusion if not detailed further, but the core functions are clearly separated.

    Naming Consistency5/5

    Both tool names are single, lowercase nouns ('search' and 'series'), which is consistent and simple. There are no mixed conventions or deviations, making the naming pattern predictable and easy to understand.

    Tool Count2/5

    With only 2 tools, the server feels thin for a data service like FRED, which typically involves more operations such as listing categories, getting metadata, or managing favorites. This limited set may hinder agents from performing comprehensive tasks in the domain.

    Completeness2/5

    The tool surface is severely incomplete for a FRED server. It lacks essential operations like listing available series categories, retrieving series metadata, or supporting updates and deletions. Agents will face significant gaps when trying to navigate or manipulate FRED data beyond basic search and observation retrieval.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Provides access to economic data from the Federal Reserve Bank of St. Louis (FRED) through the Model Context Protocol, allowing AI assistants to retrieve economic time series data directly.
      1
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides access to Federal Reserve Economic Data (FRED), enabling users to retrieve, analyze, and compare economic indicators and time series data through natural language.
      2
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that wraps the Federal Reserve Economic Data (FRED) API, providing access to over 800,000 economic time series like GDP and unemployment. It enables AI agents to search for data, retrieve metadata, and fetch historical observations directly from the St. Louis Fed.
      Apache 2.0