Vercel AI SDK
Connect Vercel AI SDK applications to Data Product MCP tools.
Connecting Data Product MCP to a Vercel AI SDK application lets it answer from governed products instead of guessing. The @ai-sdk/mcp package exposes DataOS tools to your app's tool loop. See the Vercel AI SDK MCP documentation for client setup and tool usage.
Prerequisites
Node.js 18 or later, your DataOS instance URL, and a DataOS API token.
Connect
Install the packages:
npm install @ai-sdk/mcp ai @ai-sdk/openaiFollowing the Vercel AI SDK MCP docs, initialize an MCP client over HTTP transport with these DataOS values:
Transport
http
URL
https://<instance-url>/dataproduct-mcp/api/v1
Header key
apikey
Header value
Your DataOS API token
Verify
Run the application and confirm the MCP client loads Data Product MCP tools. Then ask the agent What data products am I authorized to access?. A working connection returns products scoped to your token.
Last updated
Was this helpful?