How to Use the Alation MCP in Vercel AI SDK
Connect Alation to your Next.js frontend with Vercel AI SDK to stream live data catalog metadata straight to your users.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Alation MCP to Vercel AI SDK
Create your Vinkius account to connect Alation to Vercel AI SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Stream Alation asset discovery via Vercel AI SDK
Your users don't want to stare at a loading spinner while your app searches through enterprise data dictionaries. By wiring up the `search_catalog` tool, your React frontend renders matching data sources and tables as the language model finds them. The text appears on screen instantly. Drilling down into specific schemas happens just as fast. When a user asks what lives inside a specific database, the agent calls `list_schemas` and `list_tables` to pull the exact structure. You get a live, interactive data catalog explorer built right into your custom UI.
Surface data lineage instantly
Tracing where a dashboard metric came from usually means digging through three different Alation screens. Now your agent can execute `get_lineage` behind the scenes and stream the exact upstream dependencies back to the chat window. Adding context is trivial. Once the lineage graph loads, your app can fire off `get_object_metadata` to grab owners, tags, and descriptions. The end user sees a complete picture of the data pipeline without ever leaving your application.
Fetch cached queries directly
Sometimes you just need the actual data, not just the column names. You can pass the `get_query_results` tool to your MCP Server integration, letting the AI pull pre-computed SQL outputs directly from Alation. This keeps your Edge Functions fast. Instead of forcing the LLM to write and execute a new query against a live warehouse, it grabs the cached results. Your application stays snappy while delivering verified enterprise data.
Set up Alation MCP in Vercel AI SDK
Prerequisites
- Node.js 18+ and a TypeScript project
-
ai+@modelcontextprotocol/sdkpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install ai @modelcontextprotocol/sdkplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Create the Streamable HTTP transport
Use
StreamableHTTPClientTransportwith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and use tools
Call
mcpClient.tools()to auto-discover all Alation tools. Pass them directly togenerateText()orstreamText()— no manual schema definitions needed. - 4
Works with any model provider
Swap
openai("gpt-4o")for any AI SDK provider — Anthropic, Google, Mistral. The MCP tools work identically across all supported models.
import { experimental_createMCPClient as createMCPClient } from "ai";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const transport = new StreamableHTTPClientTransport(
new URL("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
);
const mcpClient = await createMCPClient({ transport });
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "List recent Alation transactions",
});
console.log(text);
await mcpClient.close(); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Alation. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Alation MCP in Vercel AI SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Alation MCP today
We host it, we monitor it, we maintain it. You just paste one token.