The Anthropic provider integration lets you use Metorial’s MCP tools with Claude models (Sonnet, Opus, and Haiku). The integration converts Metorial tools into Anthropic’s tool format and handles tool call execution. Claude excels at complex reasoning and following instructions precisely, making it a great choice for AI agents that use multiple tools. You’ll need both a Metorial API key and an Anthropic API key to use this integration. What this example does:Documentation Index
Fetch the complete documentation index at: https://metorial.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Initializes both Metorial and Anthropic clients
- Creates a Metorial session that provides tools in Anthropic’s format
- Passes those tools to Claude’s messages API
- Provides a
callToolsfunction to execute any tool calls Claude requests