Skip to content
masterclass Buddy

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.

Subscribe
  • createMCPClient
  • @ai-sdk/mcp
  • StreamableHTTPClientTransport
  • HTTP transport
  • SSE
  • stdio
  • authProvider
  • protocolVersionDiscovery

Source: Model Context Protocol (MCP) | AI SDK. Checked 2026-11-03.