Compatible with every major AI agent and IDE
What is the Xata MCP Server?
Connect your Xata account to any AI agent to manage your serverless data infrastructure through natural conversation.
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.
How it works
- Subscribe to this server
- Enter your Xata API Key
- Start managing your databases from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Backend Developers — quickly spin up projects and branches without leaving the terminal or IDE.
- Data Engineers — query data and inspect organization structures via SQL directly through the agent.
- DevOps Managers — automate member access, invite collaborators, and manage API key rotations.
Built-in capabilities (28)
Cancel a pending organization invitation
Create a new database branch
Create an API key for the organization
Create a new Xata organization
Create a new project in an organization
Create a new user API key
Bulk delete user API keys by ID
Execute single or batch SQL queries over HTTP
Retrieve database username and password for a branch
Query observability data (CPU, Memory, Disk, etc.) for a branch
Retrieve the current GitHub repository mapping for a branch
Get detailed information about a specific organization
Get resource limits for projects in an organization
Link a GitHub App installation to an organization
Invite a user to an organization via email
List all branches in a project
List available PostgreSQL versions/images
List organization-scoped API keys
List pending or expired invitations for an organization
List members of an organization
List all organizations the authenticated user belongs to
List all projects within an organization
List available regions for project deployment
List API keys for the authenticated user
Map a GitHub repository to a branch
Remove a member from an organization
Trigger a password rotation for a branch
Update organization information
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Xata tool infrastructure. Connect 28 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Xata without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Xata tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Xata in Mastra AI
Xata and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Xata to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Xata in Mastra AI
The Xata 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. All 28 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* 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
How Vinkius secures
Xata for Mastra AI
Every tool call from Mastra AI to the Xata MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I see all organizations I have access to?
Yes! Use the list_organizations tool to retrieve all Xata organizations available to your current API key.
How do I start a new project in a specific organization?
Simply use the create_project action providing the organization_id and the desired name for your new project.
Can I run raw SQL queries through the agent?
Yes, the execute_sql tool allows you to run SQL queries directly against your database branches for advanced data manipulation and analysis.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Eurostat Discovery — Dataset Catalog Explorer
3 toolsExplore Eurostat's catalog of 7,000+ official datasets: search by keyword, inspect dataset dimensions and code lists, and query any dataset with flexible filters — the master key to all European Union statistics.

Aimtell
10 toolsWeb push notification orchestration — manage campaigns, segments, and subscribers via AI.

Node-RED
11 toolsManage Node-RED flows, nodes, and system diagnostics directly from your AI agent.

Phone Validator Engine
1 toolsStop LLMs from hallucinating phone numbers. Validates and formats numbers to E.164 natively.
