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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。