How to Use the J&T Express Malaysia MCP in Vercel AI SDK
Stream live J&T Express Malaysia tracking updates and shipping rates straight into your Next.js frontend using Vercel AI SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect J&T Express Malaysia MCP to Vercel AI SDK
Create your Vinkius account to connect J&T Express Malaysia 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 shipping rates to React
Address validation kills conversion rates if it hangs. Using the Vercel AI SDK, your agent hits `list_provinces`, `list_cities`, and `list_districts` to build a valid destination profile instantly. The user watches the dropdowns populate live as the LLM processes the location data. Once the address checks out, the model calls `get_shipping_rates`. Instead of a loading spinner, the customer sees the exact ringgit amounts stream into their cart UI. You get fast, edge-compatible rate quoting without writing custom API wrappers for this MCP Server.
Vercel AI SDK tracking feeds
Customers spam support when they cannot find their packages. Build a chat interface that calls `track_order` and streams the exact GPS and status updates directly to the browser. The Vercel AI SDK handles the tool execution while your Next.js app renders the timeline components. If a package gets delayed, the agent can immediately pull the full history using `get_order_details`. The user reads the exact reason for the hold-up as the text generates. It keeps them on your page instead of bouncing to the carrier site.
Generate labels in the browser
Merchants need waybills immediately after checkout. You can wire `create_order` into your server actions so the agent books the shipment the second the payment clears. The MCP Server handles the J&T payload formatting behind the scenes. The model follows up by executing `get_waybill_image`. Your frontend receives the image link and renders the printable label right in the user's dashboard. If something breaks, the agent just runs `cancel_order` before the driver dispatches.
Set up J&T Express Malaysia 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 J&T Express Malaysia 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 J&T Express Malaysia 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 J&T Express Malaysia. 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 J&T Express Malaysia 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 J&T Express Malaysia MCP today
We host it, we monitor it, we maintain it. You just paste one token.