← Back to Brunu MCP
Connect Claude API (Messages with mcp_servers)
Use Brunu directly from any Anthropic API call by passing the server URL in the mcp_servers array. Requires the mcp-client beta header.
Paste this
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: mcp-client-2025-04-04" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"mcp_servers": [{
"type": "url",
"url": "https://www.brunu.ai/api/mcp",
"name": "brunu"
}],
"messages": [{
"role": "user",
"content": "What does Brunu predict about Brent crude this month?"
}]
}'Steps
- Set ANTHROPIC_API_KEY in your environment (console.anthropic.com)
- Include the anthropic-beta: mcp-client-2025-04-04 header
- Add Brunu to the mcp_servers array on every Messages call where you want forecast access
Test it works
Once connected, ask the AI:
What is Brunu's track record on geopolitical forecasts?The AI should call brunu_get_track_record and quote the live numbers.
Client docs: https://docs.anthropic.com/en/docs/agents-and-tools/mcp-connector
Issues or want a client added? info@etra.global