How to Use the Amazon Marketing Cloud MCP in Vercel AI SDK
Feed live Amazon Marketing Cloud SQL queries directly into Vercel AI SDK UI components without loading spinners.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Amazon Marketing Cloud MCP to Vercel AI SDK
Create your Vinkius account to connect Amazon Marketing Cloud 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 AMC Query Streaming with Vercel AI SDK
This MCP Server exposes tools like `create_execution` and `get_execution_status` to let your React or Next.js app trigger AMC SQL runs and watch their progress live. Your AI client initiates the query, polls the status, and streams the changing state directly to the user's screen. Instead of making users wait for heavy SQL reports to compile in the background, the UI displays real-time execution phases. You get raw JSON chunks parsed on the fly, feeding your custom charting components the second Amazon completes the run.
Dynamic AMC Workflow Management
Managing marketing workflows happens in real-time when you pair `create_workflow` and `update_workflow` with the Vercel AI SDK. Your application lets users describe their campaign attribution models in plain English, which the SDK instantly translates into active AMC structures. The SDK handles the edge-compatible transport to update existing SQL definitions. If a user wants to tweak an attribution window, the model rewrites the workflow and shows the updated SQL block in the chat interface instantly.
Immediate SQL Data Download Generation
You can grab secure download links for completed SQL datasets using `get_execution_download_urls` directly through your Vercel AI SDK stream. This MCP Server fetches the links and hands them off to your frontend. These secure URLs stream straight into your frontend as clickable download buttons. This prevents your Edge Functions from timing out on massive Amazon Marketing Cloud payloads, as the browser handles the direct file download.
Set up Amazon Marketing Cloud 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 Amazon Marketing Cloud 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 Amazon Marketing Cloud 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 Amazon Marketing Cloud. 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 Amazon Marketing Cloud 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 Amazon Marketing Cloud MCP today
We host it, we monitor it, we maintain it. You just paste one token.