ai-sdk-mcp / setup / cursor
Setup guide
Set up @ai-sdk/mcp in Cursor
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 .cursor/mcp.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 Cursor is installed and up to date.
- Open
.cursor/mcp.jsonand add the block above (merge into any existingmcpServers). - Provide any required API keys/credentials as environment variables.
- Restart Cursor and confirm @ai-sdk/mcp’s tools appear.
03Other runtimes
04Provenance
config_sourcegenerated from captured install method
last_checked2026-06-30 07:32Z
sourcesnpm registry [p4]
Next step
Ship @ai-sdk/mcp to your agents as a governed Loadout — config, scopes, and approval rules in one place.
Build a LoadoutSee also: server page · is it safe? · alternatives