@ai-sdk/mcp weekly downloads statistics
By ai-sdk (3 listings) · npm · MCP servers
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`.
@ai-sdk/mcp has 9,880,088 recorded weekly downloads on npm, an increase of 11.9% over the past 30 days, ranking #143 of 3,247 tracked listings.
About @ai-sdk/mcp
AI SDK - Model Context Protocol Client
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.
Setup
npm i ai @ai-sdk/mcp
Skill for Coding Agents
If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
npx skills add vercel/ai
Usage
import { createMCPClient } from '@ai-sdk/mcp';
import { generateText, isStepCount } from 'ai';
const mcpClient = await createMCPClient({
transport: {
type: 'http',
url: 'https://your-server.com/mcp',
headers: {
Authorization: `Bearer ${process.env.MCP_API_KEY}`,
},
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: 'openai/gpt-6-astra',
tools,
stopWhen: isStepCount(10),
prompt: 'Use the available tools to answer the user question.',
});
console.log(text);
} finally {
await mcpClient.close();
}
See the Model Context Protocol Client documentation for more information.
Description from the npm listing.
- ai
- mcp
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 @ai-sdk/mcp alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@ai-sdk/mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.