AI SDK

Connect Integrations to
AI SDK

Build advanced AI agents with AI SDK. Connect 600+ integrations, automate workflows, and deploy with ease using Metorial.

Back to AI SDK overview

How to Get Your Metorial API Key

Your Metorial API key authenticates your application with the Metorial platform and gives you access to 600+ integrations.

Creating Your API Key

  1. Log in to Metorial: Visit metorial.com and sign in to your account
  2. Navigate to Settings: Click on your profile icon and select "API Keys" or "Settings"
  3. Generate New Key: Click "Create API Key" or "Generate New Key"
  4. Name Your Key: Give it a descriptive name (e.g., "Production App" or "Development")
  5. Copy and Save: Copy the key immediately - it won't be shown again!

Storing Your API Key Securely

Never commit API keys to version control. Instead, use environment variables:

Using .env Files

Create a .env file in your project root:

METORIAL_API_KEY=your_api_key_here

Add .env to your .gitignore:

.env

Load it in your code:

import { Metorial } from '@metorial/sdk';

let metorial = new Metorial({ 
  apiKey: process.env.METORIAL_API_KEY 
});

Production Environments

For production deployments:

  • Vercel: Add environment variables in Project Settings
  • AWS: Use AWS Secrets Manager or Parameter Store
  • Docker: Pass as environment variables in your container config
  • Kubernetes: Use Kubernetes Secrets

Key Management Best Practices

  • Rotate Keys Regularly: Generate new keys periodically
  • Use Different Keys: Separate keys for development, staging, and production
  • Revoke Compromised Keys: If a key is exposed, revoke it immediately from the Metorial dashboard
  • Monitor Usage: Check your API usage regularly in the Metorial dashboard

Troubleshooting

"Invalid API Key" Error: Ensure you've copied the full key without extra spaces or characters

"API Key Not Found": The key may have been revoked - generate a new one

"Rate Limit Exceeded": Check your plan limits in the Metorial dashboard

AI SDK on Metorial

Connect 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.

Connect anything. Anywhere.

Ready to build with Metorial?

Let's take your AI-powered applications to the next level, together.

About Metorial

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.

Star us on GitHub