curl https://api.anthropic.com/v1/messages \
-H "Content-Type: application/json" \
-H "X-API-Key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: mcp-client-2025-04-04" \
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 8000,
"messages": [
{
"role": "user",
"content": "What is the latest in AI research?"
}
],
"mcp_servers": [
{
"type": "url",
"url": "https://search-mcp.parallel.ai/mcp",
"name": "parallel-web-search",
"authorization_token": "YOUR_PARALLEL_API_KEY"
}
]
}'