Introduction
The Claude Agent SDK allows you to build powerful AI agents that can use tools and make decisions autonomously.This integration uses Helicone’s Model Context Protocol (MCP) to provide seamless AI Gateway access to your Claude agents.
Integration Steps
Sign up at helicone.ai and generate an API key.Make sure to have some credits available in your Helicone account to make requests (or BYOK).
Configure MCP Server in Your Application
- Claude Desktop (Development)
- Claude Agent SDK
Add to your Claude Desktop configuration:The Helicone MCP tools will be automatically available in Claude Desktop.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Available MCP Tools
use_ai_gateway
Make requests to any LLM provider through Helicone AI Gateway with automatic observability.
Parameters:
model(required): Model name (e.g.,gpt-4o,claude-sonnet-4,gemini-2.0-flash- see Supported Models for more)messages(required): Array of conversation messagesmax_tokens(optional): Maximum tokens to generatetemperature(optional): Response randomness (0-2)sessionId(optional): Session ID for request groupingsessionName(optional): Human-readable session nameuserId(optional): User identifier for trackingcustomProperties(optional): Custom metadata for filtering
query_requests
Query historical requests for debugging and analysis with filters, pagination, and sorting.
query_sessions
Query conversation sessions with filtering, search, and time range capabilities.
Complete Working Examples
Basic Agent with Session Tracking
Multi-Model Comparison
Self-Analyzing Agent
Next Steps
Model Registry
Browse all supported models and providers
Dashboard
View your agent’s requests and analytics
Provider Routing
Set up automatic failovers and routing
Custom Properties
Learn about advanced filtering and analytics