The Model Context Protocol (MCP) client for the AI SDK lets you connect to MCP servers and use their tools with AI SDK functions like generateText and streamText.
{
"mcpServers": {
"ai-sdkmcp": {
"command": "npx",
"args": [
"-y",
"@ai-sdk/mcp"
]
}
}
}