ai-sdk-mcp / setup / claude-desktop
Setup guide
Set up @ai-sdk/mcp in Claude Desktop
partnerunknownhealthy
The **Model Context Protocol (MCP) client** for the [AI SDK](https://ai-sdk.dev/docs) lets you connect to MCP servers and use their tools with AI SDK functions like `generateText` and `streamText`.
01Configuration
{
"mcpServers": {
"ai-sdk-mcp": {
"command": "npx",
"args": [
"-y",
"@ai-sdk/mcp"
]
}
}
}
Add this to claude_desktop_config.json. Generated from the captured install method (npx); the mcpServers shape is shared across Claude Desktop, Cursor, Windsurf, Cline, and VS Code.
02Steps
- Make sure Claude Desktop is installed and up to date.
- Open
claude_desktop_config.jsonand add the block above (merge into any existingmcpServers). - Provide any required API keys/credentials as environment variables.
- Restart Claude Desktop and confirm @ai-sdk/mcp’s tools appear.
03Other runtimes
04Provenance
config_sourcegenerated from captured install method
last_checked2026-08-16 20:36Z
sourcesnpm registry [p4]
Next step
Want agents that act within guardrails? Apex is the live governed-agent product — paced, capped, and fully-logged actions with approvals before anything runs.
Explore Apex →See also: server page · is it safe? · alternatives