以下是以正确的 markdown 格式编写的 README:
FRED MCP 服务器
用于访问美联储经济数据 (FRED) API 的模型上下文协议 (MCP) 服务器实现。该服务器提供从 FRED 搜索和检索经济数据系列的工具。
先决条件
Node.js(v16 或更高版本)
FRED API 密钥(从FRED API获取)
安装
克隆存储库:
git clone https://github.com/kablewy/fred-mcp-server cd fred-mcp-server安装依赖项:
npm install将
.env.example文件复制到.env并添加您的 FRED API 密钥:FRED_API_KEY=your_api_key_here
用法
发展
以开发模式运行服务器:
npm run dev
生产
构建项目:
npm run build启动服务器:
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
执照
[您选择的许可证]
贡献
[您的贡献指南]
致谢
使用模型上下文协议 SDK构建
数据由美联储经济数据(FRED)提供
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器提供从联邦储备经济数据 (FRED) API 搜索和检索经济数据系列的工具。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityProvides 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.Last updated -15MIT License
- -security-license-qualityA Model Context Protocol server that enables AI assistants like Claude to programmatically access financial data from Financial Modeling Prep API, including company profiles, financial statements, metrics, SEC filings, and market data.Last updated -5MIT License
- -security-license-qualityA Model Context Protocol server that provides tools for reading, updating, filtering, and visualizing Excel data through a simple API.Last updated -
- Asecurity-licenseAqualityA Model Context Protocol server providing tools for querying A-share stock market data, including historical prices, financial reports, market indices, and macroeconomic indicators.Last updated -27431MIT License