ConsumerSim MCP Proxy
Exposes forecast lookup tools for consumer spending predictions across regions and time periods.
README
ConsumerSim Forecast Interface
ConsumerSim provides consumer confidence forecasts for three markets:
USEU27JP
Users can access the forecasts in two ways:
- View the public forecast website hosted from this repository.
- Connect to the MCP server and ask for forecasts by region, month, and optional week.
This repository is an interface package only. It does not publish the private forecasting pipeline, model prompts, data refresh logic, source API keys, or private datasets.
What You Can Ask For
Use forecast_lookup when you need a forecast value.
Monthly forecast:
{
"region": "US",
"month": "2026-07"
}
Weekly forecast:
{
"region": "EU27",
"month": "2026-07",
"week": 1
}
Supported inputs:
region:US,EU27, orJPmonth: target month inYYYY-MMformatweek: optional week number within that month, such as1,2,3, or4
Use forecast_times to see which forecast periods are available.
{
"region": "JP"
}
Typical Response
forecast_lookup returns a forecast snapshot like this:
{
"region": "EU27",
"cadence": "weekly",
"requested_month": "2026-06",
"requested_week": "Jun W4",
"target_month": "2026-07",
"target_period": "Jul-26",
"week_label": "Jun W4",
"as_of": "2026-07-04",
"forecast": -13.32,
"interval_low": -14.71,
"interval_high": -12.39,
"signal": "Softening signal",
"interpretation": "Weekly nowcast through 2026-06-27 from the ConsumerSim pipeline."
}
The exact fields may vary by backend version, but the response is designed to include the requested region and time, the forecast value, a confidence band, and a short interpretation.
Run As An MCP Server
Install the package:
python -m pip install -e .
Configure the private backend endpoint:
$env:CONSUMERSIM_API_BASE_URL = "https://your-consumersim-backend.example.com"
$env:CONSUMERSIM_API_KEY = "<your access token>"
Start the MCP server:
consumersim-mcp
The MCP server exposes:
forecast_lookupforecast_times
It forwards requests to the configured ConsumerSim backend and returns the backend result to the MCP client.
Run The Website Locally
The website is a static forecast dashboard under site/.
For a local preview backed by the private API:
python -m pip install -e .
$env:CONSUMERSIM_API_BASE_URL = "https://your-consumersim-backend.example.com"
$env:CONSUMERSIM_API_KEY = "<your access token>"
consumersim-web
Open:
http://127.0.0.1:4173
The local web bridge serves the static site and proxies /api/site-data to the
private backend. This keeps backend credentials out of browser JavaScript.
Public Website Deployment
The recommended public deployment is GitHub Pages.
The included workflow:
.github/workflows/refresh-site.yml
does the following:
- Calls the private backend for the latest forecast CSV.
- Validates the CSV structure.
- Writes the result to
site/data/consumersim_site_data.csv. - Commits the updated CSV when it changes.
- Deploys the
site/directory to GitHub Pages.
Repository setup:
- Set Pages source to
GitHub Actions. - Allow GitHub Actions
Read and write permissions. - Add
CONSUMERSIM_API_BASE_URLas a repository variable. - Add
CONSUMERSIM_API_KEYas a repository secret if the backend requires a token.
Do not put source data API keys or model API keys in GitHub. Those belong only on the private backend server.
Backend Settings
Required:
CONSUMERSIM_API_BASE_URL
Usually required:
CONSUMERSIM_API_KEY
Optional:
CONSUMERSIM_FORECAST_PATH, default/forecastCONSUMERSIM_TIMES_PATH, default/forecast/timesCONSUMERSIM_SITE_DATA_PATH, default/site-dataCONSUMERSIM_API_KEY_HEADER, defaultAuthorizationCONSUMERSIM_API_KEY_SCHEME, defaultBearerCONSUMERSIM_TIMEOUT_SECONDS, default30
Backend Contract
The proxy calls these backend routes:
POST {CONSUMERSIM_API_BASE_URL}/forecastGET {CONSUMERSIM_API_BASE_URL}/forecast/timesGET {CONSUMERSIM_API_BASE_URL}/site-data
Expected POST /forecast request:
{
"region": "EU27",
"month": "2026-06",
"week": 4
}
Expected GET /site-data response:
as_of,record_type,region,...
2026-07-04,monthly_prediction,us,...
Repository Boundary
This public repository should contain only:
- MCP proxy code
- public website assets
- GitHub Pages refresh workflow
- tests for the public interface
- examples and documentation for users
Do not commit:
- private forecasting pipeline code
- model prompts or internal simulation logic
- private data refresh scripts
- source API keys
- LLM API keys
- private datasets
The private backend can update forecasts without exposing the internal ConsumerSim implementation.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.