GnistAI GnistAI
Log in

BLS (Bureau of Labor Statistics)

U.S. labor statistics including employment, CPI, wages, and unemployment data.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Economics

Data source: Bureau of Labor Statistics

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/bls/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-bls": {
      "url": "https://context.gnist.ai/mcp/bls/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/bls/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_series", "arguments": {"series_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/bls/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/bls/get_series?series_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/bls/get_series",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "series_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc bls

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_series
Get time series data from the Bureau of Labor Statistics.
ParameterTypeRequiredDescription
series_idstringrequiredBLS series identifier (e.g. "CUUR0000SA0", "LNS14000000").
start_yearanyoptionalStart year (YYYY). If omitted, BLS returns the latest 3 years (10 years without API key).
end_yearanyoptionalEnd year (YYYY). If omitted, fetches to the latest available.
calculationsbooleanoptionalInclude net changes and percent changes (1, 3, 6, 12 month). Requires API key. (default: false)
annual_averagesbooleanoptionalInclude annual average values alongside monthly data. Requires API key. (default: false)
get_latest
Get the most recent observation for a BLS series.
ParameterTypeRequiredDescription
series_idstringrequiredBLS series identifier (e.g. "LNS14000000" for unemployment rate).
get_multiple_series
Fetch multiple BLS series in a single request.
ParameterTypeRequiredDescription
series_idslist[string]requiredList of BLS series IDs (max 50 with key, 25 without).
start_yearanyoptionalStart year (YYYY).
end_yearanyoptionalEnd year (YYYY).
get_popular_series
Browse curated popular BLS series organized by category.
ParameterTypeRequiredDescription
categoryanyoptionalFilter to a specific category. If omitted, returns all categories.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related