AI Tools · Tool
Model Context Protocol
The AI SDK can connect to MCP servers and use their tools, resources, and prompts. Use HTTP for production and stdio only for local development.
Last updated
Syntax
createMCPClient({ transport: { type: 'http', url, headers?, authProvider?, redirect? } })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createMCPClient@ai-sdk/mcpStreamableHTTPClientTransportHTTP transportSSEstdioauthProviderprotocolVersionDiscovery