Economics
Data source: Bureau of Labor Statistics
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/bls/
5 endpoints available:
GET /rest/bls/get_seriesGET /rest/bls/get_latestGET /rest/bls/get_multiple_seriesGET /rest/bls/get_popular_seriesGET /rest/bls/report_feedback
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())
Command Line
Command
gc bls
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
get_seriesGet time series data from the Bureau of Labor Statistics.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_id | string | required | BLS series identifier (e.g. "CUUR0000SA0", "LNS14000000"). |
start_year | any | optional | Start year (YYYY). If omitted, BLS returns the latest 3 years (10 years without API key). |
end_year | any | optional | End year (YYYY). If omitted, fetches to the latest available. |
calculations | boolean | optional | Include net changes and percent changes (1, 3, 6, 12 month). Requires API key. (default: false) |
annual_averages | boolean | optional | Include annual average values alongside monthly data. Requires API key. (default: false) |
get_latestGet the most recent observation for a BLS series.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_id | string | required | BLS series identifier (e.g. "LNS14000000" for unemployment rate). |
get_multiple_seriesFetch multiple BLS series in a single request.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_ids | list[string] | required | List of BLS series IDs (max 50 with key, 25 without). |
start_year | any | optional | Start year (YYYY). |
end_year | any | optional | End year (YYYY). |
get_popular_seriesBrowse curated popular BLS series organized by category.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | any | optional | Filter to a specific category. If omitted, returns all categories. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |