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
  1. Make sure Cursor is installed and up to date.
  2. Open .cursor/mcp.json and add the block above (merge into any existing mcpServers).
  3. Provide any required API keys/credentials as environment variables.
  4. 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 Loadout

See also: server page · is it safe? · alternatives

Set up @ai-sdk/mcp MCP in Cursor — MCPExplorer