MCP (macro forecasts only)
For MCP-only macro economic forecasts in your AI (Claude, Cursor, etc.), use the MCP endpoint.
Your agent fetches the Agent Card, sends a JSON-RPC request (macro forecast, scenario, or risk), and gets back a completed task or streamed response.
One endpoint for macro indicators, scenario analysis, and risk assessment. Your agents discover capabilities via the Agent Card and send tasks to get results or streams.
message/stream for long-running tasks.Forecasts for CPI, unemployment, rates, GDP. Request by indicator name and time horizon (monthly/quarterly/yearly).
Scenario analysis for your use case. Send a text prompt; the agent routes to the right skill.
Risk assessment for inflation, rates, and macro factors. Same endpoint, natural language.
message/stream with Accept: text/event-stream for SSE results.RFC 8615 well-known path. Use this URL to discover capabilities and skills.
POST JSON-RPC body. Methods: message/send, message/stream, tasks/get.
Request CPI forecast; get a completed task with forecast data in the artifact.
{
"jsonrpc": "2.0",
"id": "1",
"method": "message/send",
"params": {
"message": {
"role": "user",
"messageId": "msg-1",
"contextId": "my-context-123",
"parts": [
{ "kind": "text", "text": "Get inflation forecast" },
{ "kind": "data", "data": { "indicator_name": "inflation_cpi", "time_horizon": "monthly" } }
]
}
}
}
Response: result is a task with status.state: "completed" and artifacts[].parts containing kind: "data" (forecast periods/values) and kind: "text".
Send a text part; the agent routes to the right skill.
{
"jsonrpc": "2.0",
"id": "2",
"method": "message/send",
"params": {
"message": {
"role": "user",
"messageId": "msg-2",
"contextId": "my-context-123",
"parts": [ { "kind": "text", "text": "Risk assessment for inflation and rates" } ]
}
}
}
Same params as above; set method: "message/stream" and header Accept: text/event-stream. You get SSE lines: status-update, then task result, then data: [DONE].
curl -X POST "https://api.moneychoice.us/moneychoice_complete.api?x=a2a" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":"1","method":"message/send","params":{"message":{"role":"user","messageId":"m1","contextId":"ctx1","parts":[{"kind":"data","data":{"indicator_name":"inflation_cpi","time_horizon":"monthly"}}]}}}'
For MCP-only macro economic forecasts in your AI (Claude, Cursor, etc.), use the MCP endpoint.
https://api.moneychoice.us/mcp — Claude, Cursor