Skip to main content
Glama

BLS — Bureau of Labor Statistics

U.S. Bureau of Labor Statistics 的数据仓库。涵盖就业、失业、工资、价格(CPI/PPI)、生产率、职业预测——美国官方劳动力和价格数据。覆盖全国、州和大都市区。注册 API 密钥后免费使用。

属于 Pipeworx 的一部分——一个将 AI 代理连接到 1476+ 个实时数据源的 MCP 网关。

为什么这对 AI 代理很重要

任何与官方劳动力市场或通胀相关的内容:BLS。FRED 提供的是头条系列数据,而 BLS 提供的是底层细节(职业层面、行业层面、MSA 层面)。研究当地经济状况、行业工资或特定 CPI 组成部分的代理可以直接访问 BLS。

三个核心流程:

1. 查找系列。 “丹佛大都市区的失业率是多少?” → bls_search({query: "Denver unemployment"}) → 系列 ID。然后使用 bls_get_series({series_id}) 获取数值。

2. 最新值。 “现在全国失业率是多少?” → bls_latest({series_id: "LNS14000000"}) → 最近的观测值。

3. 浏览热门系列。 “BLS 发布什么?” → bls_popular_series → 精选的高流量 ID 列表。

Related MCP server: BLS (Bureau of Labor Statistics) MCP Server

认证

BLS API 需要从 https://www.bls.gov/developers/ 获取免费密钥。没有密钥时,调用被限制为每个 IP 每天 ~25 次。有密钥时,每天 500 次。每次调用通过 _apiKey 传递。

系列 ID 结构

BLS 系列 ID 编码了调查、地区、行业和数据类型。示例:

系列 ID

说明

LNS14000000

全国失业率(经季节性调整)

CES0000000001

非农就业总人数(全国)

CUUR0000SA0

CPI 所有项目,美国城市平均,未经季节性调整

LAUMT080000000000003

丹佛 MSA 失业率

WPSFD49207

成品 PPI

不要尝试从头构建 ID——请使用 bls_searchbls_popular_series

更新频率

数据

发布时间

就业形势(全国 + 州)

每月第一个星期五

CPI

月中(大约 10 日至 15 日)

PPI

月中,CPI 发布后的第二天

大都市区失业率(LAUS)

参考月份后约 ~3 周

生产率

每季度,季度结束后约 ~5 周

Pipeworx 会按照发布计划对齐 TTL 来缓存 BLS 响应。

常见陷阱

  • 季节性调整。 同一系列存在经季节性调整(SA)和未经季节性调整(NSA)两种变体。检查系列 ID 前缀(LNS = SA,LNU = NSA)。混用它们是最常见的分析师错误。

  • 年度平均值与月度值。 有些 ID 仅返回年度数据,其他则返回月度数据。在绘制趋势之前请阅读元数据。

  • 州和大都市区覆盖范围。 并非每个系列都存在于每个地理区域。较小的大都市区有更大的滞后和更多的推算值。

  • 通胀与 CPI。 “通胀”通常指 CPI 的同比变化。要获得同比数据,请请求 13 个月的数据并自行计算,或者使用 FRED 的 CPIAUCSL 并采用 pc1 单位转换(它会自动完成)。

快速开始

添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):

{
  "mcpServers": {
    "bls": {
      "url": "https://gateway.pipeworx.io/bls/mcp"
    }
  }
}

这个端点实际提供什么

位于 https://gateway.pipeworx.io/bls/mcptools/list 返回上表中的工具,以及共享的 Pipeworx 元工具——ask_pipeworxdiscover_toolssearch_withinremember/recall 以及其余网关范围内的工具。因此你看到的工具数量比此表更大:单个包端点目前会列出大约 30 个共享工具以及该包自身的工具。连接的 initialize 响应会说明其确切范围,并且是某一天权威的答案。

这是有意为之,并非偶然的多路复用。元工具让一个受限连接能够回答该包未涵盖的问题——通过 ask_pipeworx,它会在整个目录中路由——而无需你添加第二个 MCP 服务器。目前没有办法在没有这些元工具的情况下挂载包端点;如果额外的模式消耗的上下文比路由带来的价值更多,那么请一次性连接到完整网关,而不是连接多个包端点。

或者连接到完整的 Pipeworx 网关,以直接列出每个包的工具,而不仅仅是这一个的:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

两个 URL 都指向同一个网关和相同的 1476+ 个数据源。唯一的区别是哪个包的工具被直接列出;ask_pipeworx 从任何一个都可以访问所有工具。

与 ask_pipeworx 一起使用

无需直接调用工具,你可以用纯英语提问——这在上面的包端点和完整网关上都可以使用:

ask_pipeworx({ question: "your question about Bls data" })

网关会自动选择正确的工具并填充参数。

更多

许可证

MIT

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables access to Bureau of Labor Statistics (BLS) economic data including Consumer Price Index, employment statistics, and other labor market indicators. Supports fetching data series, listing available datasets, and retrieving metadata through natural language queries.
    4
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides access to U.S. labor market data including employment statistics, Consumer Price Index inflation rates, and wage information. Users can query specific time series data or use shortcuts for common economic indicators like unemployment and industry-specific employment.
    3
  • A
    license
    A
    quality
    C
    maintenance
    Enables users to query U.S. labor statistics, including employment, CPI, and wages, directly from the Bureau of Labor Statistics Public Data API. It provides tools to retrieve real-time economic time series data, browse popular series, and access survey metadata through natural language.
    6
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables searching and retrieving economic data from the Federal Reserve Economic Data (FRED) API, including time series, categories, releases, and popular indicators.
    7
    1

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeworx-io/mcp-bls'

If you have feedback or need assistance with the MCP directory API, please join our Discord server