File: mcp-stdio-transport.md | Updated: 11/15/2025
Menu
v5 (Latest)
AI SDK 5.x
Model Context Protocol (MCP) Tools
Experimental_StdioMCPTransport
Copy markdown
Experimental_StdioMCPTransport
=====================================================================================================================================
Creates a transport for Model Context Protocol (MCP) clients to communicate with MCP servers using standard input and output streams. This transport is only supported in Node.js environments.
This feature is experimental and may change or be removed in the future.
import { Experimental_StdioMCPTransport } from "ai/mcp-stdio"
StdioConfig
Configuration for the MCP client.
StdioConfig
string
The command to run the MCP server.
string[]
The arguments to pass to the MCP server.
Record<string, string>
The environment variables to set for the MCP server.
IOType | Stream | number
The stream to write the MCP server's stderr to.
string
The current working directory for the MCP server.
On this page
Experimental_StdioMCPTransport
Deploy and Scale AI Apps with Vercel.
Vercel delivers the infrastructure and developer experience you need to ship reliable AI-powered applications at scale.
Trusted by industry leaders: