Foresight API
Economic, demographic and financial time series, plus Creative Foresight indicators and signals.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"foresight-api": {
"url": "https://api.creativeforesight.io/api/mcp"
}
}
}Puntos de conexión remotos
https://api.creativeforesight.io/api/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (8)
🟢search_indicators(query, source, category, limit)
Search Foresight API economic, demographic, and derived (cf:) indicators. Returns matching indicator codes, descriptions, units, source slugs, and frequencies. Creative Foresight originals use cf:* codes and region filters use FIPS-style region codes where applicable.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Search text for indicator names or descriptions."
},
"source": {
"description": "Optional source slug such as fred, bls, bea, or cf.",
"type": "string",
"minLength": 1
},
"category": {
"description": "Optional indicator category filter.",
"type": "string",
"minLength": 1
},
"limit": {
"default": 20,
"description": "Maximum indicators to return.",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_sources
List Foresight API sources and catalog freshness context for economic, demographic, and derived cf:* indicators.
Esquema de entrada
{
"type": "object",
"properties": {}
}🟢list_regions(type)
List supported API regions. County and subnational regions use FIPS-style codes that can be passed to observation tools.
Esquema de entrada
{
"type": "object",
"properties": {
"type": {
"description": "Optional region type filter, such as country, state, or county.",
"type": "string",
"minLength": 1
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_observations(indicator, region, start_date, end_date, as_of, ...)
Return an authenticated time series for an economic, demographic, or derived Creative Foresight cf:* indicator, optionally filtered by FIPS-style region code and date range. Includes unit and attribution metadata from the v1 observations API.
Esquema de entrada
{
"type": "object",
"properties": {
"indicator": {
"type": "string",
"minLength": 1,
"description": "Indicator code, including Creative Foresight originals such as cf:* codes."
},
"region": {
"description": "Optional region code. County regions use FIPS codes.",
"type": "string",
"minLength": 1
},
"start_date": {
"description": "Optional inclusive start date as YYYY-MM-DD.",
"type": "string",
"minLength": 1
},
"end_date": {
"description": "Optional inclusive end date as YYYY-MM-DD.",
"type": "string",
"minLength": 1
},
"as_of": {
"description": "Optional YYYY-MM-DD: read the values as published by the end of that day, never a later revision (point-in-time, for backtests without look-ahead).",
"type": "string",
"minLength": 1
},
"limit": {
"default": 100,
"description": "Maximum observations to return.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"required": [
"indicator"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_latest(indicator, region, as_of)
Return the latest authenticated value for an economic, demographic, or derived Creative Foresight cf:* indicator, optionally filtered by FIPS-style region code. Use this when an agent needs the current value rather than a full series.
Esquema de entrada
{
"type": "object",
"properties": {
"indicator": {
"type": "string",
"minLength": 1,
"description": "Indicator code, including Creative Foresight originals such as cf:* codes."
},
"region": {
"description": "Optional region code. County regions use FIPS codes.",
"type": "string",
"minLength": 1
},
"as_of": {
"description": "Optional YYYY-MM-DD: read the values as published by the end of that day, never a later revision (point-in-time, for backtests without look-ahead).",
"type": "string",
"minLength": 1
}
},
"required": [
"indicator"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_insights(indicator, region, source, window)
Return deterministic computed facts for one indicator plus active signals. Every fact and signal carries a server-rendered, shareable plain-spoken sentence in `text` (null when the indicator lacks curated display metadata). Facts also include humanTemplate, typed params, and salience scores from 0..1. Signals include strength, direction, salience, evidence, and glyph, friendly direction-aware label, plus tone vocabulary for UI chips.
Esquema de entrada
{
"type": "object",
"properties": {
"indicator": {
"type": "string",
"minLength": 1,
"description": "Indicator code, including Creative Foresight originals such as cf:* codes."
},
"region": {
"description": "Optional region code. County regions use FIPS codes.",
"type": "string",
"minLength": 1
},
"source": {
"description": "Optional source slug for duplicate provider codes.",
"type": "string",
"minLength": 1
},
"window": {
"default": "all",
"description": "Observation window: all, or an integer followed by d, m, or y, such as 90d, 12m, or 5y.",
"type": "string",
"pattern": "^(all|[1-9]\\d*[dmy])$"
}
},
"required": [
"indicator"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_active_signals(indicators, region, type, strength, limit)
Return active Creative Foresight signal intervals across indicators. Each result carries a server-rendered, shareable plain-spoken sentence in `text`, plus type, strength, direction, interval timestamps, detector evidence, and glyph, friendly direction-aware label, plus tone vocabulary for UI chips. Requires premium creative-foresight API-key access.
Esquema de entrada
{
"type": "object",
"properties": {
"indicators": {
"description": "Optional indicator codes, including Creative Foresight originals such as cf:* codes.",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"region": {
"description": "Optional region code. County regions use FIPS codes.",
"type": "string",
"minLength": 1
},
"type": {
"description": "Optional signal type filter.",
"type": "string",
"enum": [
"acceleration",
"extreme",
"trend_break"
]
},
"strength": {
"default": "neutral",
"description": "Minimum signal strength. Defaults to neutral, hiding weak signals.",
"type": "string",
"enum": [
"weak",
"neutral",
"strong"
]
},
"limit": {
"default": 50,
"description": "Maximum active signals to return.",
"type": "integer",
"minimum": 1,
"maximum": 500
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢ask(question, region, window)
Ask a natural-language question over Foresight data and get a grounded answer with a verifiable citation trace. Every number in the prose traces to an executed tool call listed in citations; resolved names the indicators, regions, and window the question mapped to. Questions with no Foresight coverage return no_coverage and are never charged. Prefer this tool when you do not know the indicator vocabulary; use the typed tools when you do.
Esquema de entrada
{
"type": "object",
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "A natural-language question about economic, demographic, or financial data."
},
"region": {
"description": "Optional FIPS region hint: 5-digit county, 2-digit state, or US.",
"type": "string",
"minLength": 1
},
"window": {
"description": "Optional observation window: all, or an integer followed by d, m, or y, such as 90d, 12m, or 5y.",
"type": "string",
"pattern": "^(all|[1-9]\\d*[dmy])$"
}
},
"required": [
"question"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Comunidad
Evidencia