Build advanced AI agents with AI SDK. Connect 600+ integrations, automate workflows, and deploy with ease using Metorial.
This guide will help you set up Metorial with Vercel's AI SDK to give your AI models access to 600+ integrations.
Install the required packages:
npm install @metorial/sdk @metorial/ai-sdk ai @ai-sdk/openai
Or with Bun:
bun add @metorial/sdk @metorial/ai-sdk ai @ai-sdk/openai
Here's a minimal example to get started:
import { openai } from '@ai-sdk/openai';
import { metorialAiSdk } from '@metorial/ai-sdk';
import { Metorial } from '@metorial/sdk';
import { generateText } from 'ai';
// Initialize Metorial with your API key
let metorial = new Metorial({
apiKey: process.env.METORIAL_API_KEY
});
// Create a session and run your AI model
metorial.withProviderSession(
metorialAiSdk,
{
serverDeployments: [process.env.METORIAL_SERVER_DEPLOYMENT_ID]
},
async session => {
let result = await generateText({
model: openai('gpt-4o'),
prompt: 'What is 2 + 2?',
maxSteps: 10,
tools: session.tools
});
console.log(result.text);
}
);
withProviderSession
to create a session with your server deploymentsession.tools
to the AI SDK's generateText
functionConnect Vercel AI SDK to Metorial and unlock instant access to over 600 integrations for your AI-powered applications. Our open-source, MCP-powered platform makes it effortless to add tools, APIs, and services to your AI SDK projects without writing complex integration code. With Metorial's TypeScript SDK, you can integrate calendars, databases, communication tools, and hundreds of other services in just a couple of lines of code. Whether you're building chatbots, AI assistants, or intelligent workflows with Vercel's AI SDK, Metorial eliminates integration headaches so you can focus on creating exceptional user experiences. Our developer-friendly approach means less time wrestling with authentication, API documentation, and maintenance—and more time innovating. Join developers who are shipping AI applications faster by letting Metorial handle the integration layer while you concentrate on what makes your app unique.
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.