Build advanced AI agents with Anthropic. Connect 600+ integrations, automate workflows, and deploy with ease using Metorial.
Learn how to connect Metorial's 600+ integrations to your Vercel AI SDK applications.
The core pattern for using Metorial with AI SDK involves three steps:
import { metorialAISDK } from '@metorial/ai-sdk';
import { Metorial } from 'metorial';
import { generateText, streamText } from 'ai';
import { openai } from '@ai-sdk/openai';
const metorial = new Metorial({
apiKey: process.env.METORIAL_API_KEY
});
await metorial.withProviderSession(
metorialAISDK,
{ serverDeployments: ['your-deployment-id'] },
async (session) => {
// Use with generateText
const result = await generateText({
model: openai('gpt-4'),
messages: [
{ role: 'user', content: 'What meetings do I have today?' }
],
tools: session.tools,
maxSteps: 10 // Allow multiple tool calls
});
console.log(result.text);
}
);
Metorial works seamlessly with streaming:
await metorial.withProviderSession(
metorialAISDK,
{ serverDeployments: ['your-deployment-id'] },
async (session) => {
const result = streamText({
model: openai('gpt-4'),
messages: [
{ role: 'user', content: 'Send a Slack message to #general' }
],
tools: session.tools
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}
}
);
The AI SDK automatically handles tool execution when you provide tools
. The model will:
The withProviderSession
method manages the connection lifecycle:
Always wrap your Metorial calls in try-catch blocks:
try {
await metorial.withProviderSession(
metorialAISDK,
{ serverDeployments: ['your-deployment-id'] },
async (session) => {
// Your code here
}
);
} catch (error) {
console.error('Metorial session error:', error);
}
Integrate Anthropic Claude with Metorial to give your AI agents access to over 600 powerful integrations through the Model Context Protocol (MCP). Our open-source platform is purpose-built for developers creating intelligent applications with Claude, Anthropic's advanced language model. With Metorial's Python and TypeScript SDKs, connecting Claude to calendars, CRMs, databases, project management tools, and hundreds of other services takes just a couple of lines of code. Stop spending days building custom integrations—Metorial handles authentication, API calls, and data formatting automatically so you can focus on crafting intelligent agent behaviors and user experiences. Whether you're building customer support bots, research assistants, or workflow automation with Claude, Metorial provides the integration infrastructure you need. Our MCP-native approach ensures your Anthropic-powered agents can interact with the tools your users already depend on, creating more valuable and practical AI solutions that integrate seamlessly into existing workflows.
Let's take your AI-powered applications to the next level, together.
Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.