Xata MCP Server for Vercel AI SDKGive Vercel AI SDK instant access to 28 tools to Cancel Organization Invitation, Create Branch, Create Org Api Key, and more
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect Xata through Vinkius and every tool is available as a typed function. ready for React Server Components, API routes, or any Node.js backend.
Ask AI about this MCP Server for Vercel AI SDK
The Xata MCP Server for Vercel AI SDK is a standout in the Databases category — giving your AI agent 28 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
async function main() {
const mcpClient = await createMCPClient({
transport: {
type: "http",
// Your Vinkius token. get it at cloud.vinkius.com
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "Using Xata, list all available capabilities.",
});
console.log(text);
} finally {
await mcpClient.close();
}
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Xata MCP Server
Connect your Xata account to any AI agent to manage your serverless data infrastructure through natural conversation.
The Vercel AI SDK gives every Xata tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 28 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
What you can do
- Organization Management — List, create, and update organizations, and manage member invitations and roles.
- Project Control — Create and list projects within your organizations and monitor resource limits and quotas.
- Database Operations — Manage branches, retrieve credentials, and execute SQL queries directly against your data.
- Developer Workflow — Handle API keys and GitHub integrations to streamline your deployment pipeline and repository mapping.
The Xata MCP Server exposes 28 tools through the Vinkius. Connect it to Vercel AI SDK in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 28 Xata tools available for Vercel AI SDK
When Vercel AI SDK connects to Xata through Vinkius, your AI agent gets direct access to every tool listed below — spanning serverless, relational-database, vector-search, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Cancel organization invitation on Xata
Cancel a pending organization invitation
Create branch on Xata
Create a new database branch
Create org api key on Xata
Create an API key for the organization
Create organization on Xata
Create a new Xata organization
Create project on Xata
Create a new project in an organization
Create user api key on Xata
Create a new user API key
Delete user api keys on Xata
Bulk delete user API keys by ID
Execute sql on Xata
Execute single or batch SQL queries over HTTP
Get branch credentials on Xata
Retrieve database username and password for a branch
Get branch metrics on Xata
Query observability data (CPU, Memory, Disk, etc.) for a branch
Get github repository mapping on Xata
Retrieve the current GitHub repository mapping for a branch
Get organization on Xata
Get detailed information about a specific organization
Get project limits on Xata
Get resource limits for projects in an organization
Install github app on Xata
Link a GitHub App installation to an organization
Invite organization member on Xata
Invite a user to an organization via email
List branches on Xata
List all branches in a project
List images on Xata
List available PostgreSQL versions/images
List org api keys on Xata
List organization-scoped API keys
List organization invitations on Xata
List pending or expired invitations for an organization
List organization members on Xata
List members of an organization
List organizations on Xata
List all organizations the authenticated user belongs to
List projects on Xata
List all projects within an organization
List regions on Xata
List available regions for project deployment
List user api keys on Xata
List API keys for the authenticated user
Map github repository on Xata
Map a GitHub repository to a branch
Remove organization member on Xata
Remove a member from an organization
Rotate branch credentials on Xata
Trigger a password rotation for a branch
Update organization on Xata
Update organization information
Connect Xata to Vercel AI SDK via MCP
Follow these steps to wire Xata into Vercel AI SDK. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @ai-sdk/mcp ai @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the script
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Vercel AI SDK with the Xata MCP Server
Vercel AI SDK provides unique advantages when paired with Xata through the Model Context Protocol.
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same Xata integration everywhere
Built-in streaming UI primitives let you display Xata tool results progressively in React, Svelte, or Vue components
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Xata + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the Xata MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query Xata in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate Xata tools and return structured JSON responses to any frontend
Chatbots with tool use: embed Xata capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with Xata through natural language queries
Example Prompts for Xata in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with Xata immediately.
"List all my Xata organizations."
"Invite dev@example.com to organization org-123."
"Show me the projects in organization 'org-123'."
Troubleshooting Xata MCP Server with Vercel AI SDK
Common issues when connecting Xata to Vercel AI SDK through Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpXata + Vercel AI SDK FAQ
Common questions about integrating Xata MCP Server with Vercel AI SDK.
How does the Vercel AI SDK connect to MCP servers?
createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.Can I use MCP tools in Edge Functions?
Does it support streaming tool results?
useChat and streamText that handle tool calls and display results progressively in the UI.Explore More MCP Servers
View all →
FNS SNAP Retailer Locator (USDA)
2 toolsLocate SNAP-authorized retailers across the US using USDA public data. Filter by location, store name, or coordinates.

freee
9 toolsManage Japanese accounting and business via freee — track deals and invoices, handle partners and expenses, and audit tax codes directly from any AI agent.

Daytona (Dev Workspaces)
28 toolsManage ephemeral development environments and sandboxes via Daytona — create, start, stop, and resize workspaces directly from your AI agent.

Uploadcare
10 toolsManage your entire media infrastructure — upload, retrieve, organize, and delete files securely via Uploadcare directly from your AI agent.
