How to Use the Aimtell MCP in Vercel AI SDK
Stream live push notification metrics directly into your React frontends using the Aimtell MCP server and Vercel AI SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Aimtell MCP to Vercel AI SDK
Create your Vinkius account to connect Aimtell 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 Aimtell metrics via Vercel AI SDK
Pushing raw data to a dashboard usually means making users stare at loading spinners. This MCP integration flips that model on its head by streaming push notification metrics straight into your Next.js components as they resolve. Your users watch campaign click-through rates populate in real-time. You just pass the `get_campaign_performance` tool into your `streamText` configuration. The AI client pulls the analytics and immediately renders the results live on the page. Nobody waits for a bloated API response to finish before seeing how their latest broadcast performed.
Build interactive subscriber management
Managing notification audiences shouldn't require jumping between tabs. You can build internal admin panels that let your marketing team query specific users right from a chat interface. They ask about a specific device, and the frontend instantly displays the relevant metadata. Triggering `get_subscriber_details` pulls down the exact browser and engagement history for that individual. If the team needs to tag them for a specific promotion, the interface fires `add_subscriber_attribute` without breaking the conversation flow. The data updates right there in the UI.
Trigger campaigns from your frontend
Giving end-users the ability to send alerts usually involves building complex custom forms. Now you can let them describe what they want to send, and the AI handles the routing. They type a quick message, and the system maps it to the right endpoint. When someone confirms the prompt, the application executes `send_one_off_notification` to push the alert out. You can also build views that pull current active broadcasts using `list_campaigns` so they know exactly what else is running. Every action routes through your Vinkius MCP Server connection.
Set up Aimtell 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 Aimtell 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 Aimtell 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 Aimtell. 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 Aimtell 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 Aimtell MCP today
We host it, we monitor it, we maintain it. You just paste one token.