How to Use the AiMasher MCP in Vercel AI SDK
Build frontends that stream marketing copy from AiMasher directly into your UI with the Vercel AI SDK. No more loading spinners.
Works with every AI agent you already use
…and any MCP-compatible client
Connect AiMasher MCP to Vercel AI SDK
Create your Vinkius account to connect AiMasher 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.
Live Content Generation in Your UI
Stop making your users wait. When they ask your agent to write something, use AiMasher's `generate_content` tool and stream the response directly into your React or Svelte component. The text appears on their screen word-by-word, just like they're used to. This isn't a mock-up. The Vercel AI SDK is built for this. You can build a real-time content editor where users see drafts from AiMasher appear live, giving them immediate feedback and a much better experience than staring at a progress bar.
Build a Real-Time Campaign Dashboard
Use the Vercel AI SDK to build an internal dashboard that feels alive. Your agent can call `list_campaigns` and the data streams directly into your tables. Kick off a new project with `create_campaign` and see it appear in the list instantly, without a page refresh. This gives your team a single source of truth for all marketing efforts run through AiMasher. They can check the status of any project, pull details with `get_campaign`, and manage everything from one place. It just works.
Interactive Template Previews with this MCP Server
Let users see what they're getting before they commit. Your agent can use `list_templates` to populate a picker component in your app. When a user selects one, you can call `get_template` to fetch the details and render a live preview. This makes the content creation process more interactive. Instead of just picking a name from a list, your users can see the structure and style of the AiMasher template right in your application's UI. It's a simple way to make your product feel more polished.
Set up AiMasher 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 AiMasher 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 AiMasher 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 AiMasher. 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 AiMasher 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 AiMasher MCP today
We host it, we monitor it, we maintain it. You just paste one token.