Skip to content
PluginStats

@tanstack/ai-mcp weekly downloads statistics

By tanstack (53 listings) · npm · MCP servers

Host-side Model Context Protocol client for TanStack AI: discover and run MCP server tools, resources, and prompts in any adapter's chat() loop, with generated end-to-end types.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-mcp has 278,036 recorded weekly downloads on npm, an increase of 10.0% over the past 30 days, ranking #474 of 3,247 tracked listings.

Weekly downloads
278,036
Official API · Dec 5, 2026
7-day growth
+11.5%
+28.8K weekly downloads
30-day growth
+10.0%
+25.3K weekly downloads
90-day growth
+1464%
+260.3K weekly downloads
Rank
#474
▲ 6 in 7 days

About @tanstack/ai-mcp

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/ai.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/api/readme/ai.png" /> <img src="https://tanstack.com/api/readme/ai.png" alt="TanStack AI" width="900" /> </picture> </div> <br />

@tanstack/ai-mcp

Host-side Model Context Protocol (MCP) client for TanStack AI.

Discover and run MCP server tools, resources, and prompts inside any TanStack AI chat() / agent loop — across any provider adapter — with optional generated TypeScript types (typed tool names and pool keys).

Features

  • createMCPClient({ transport }) — connect to a single MCP server (Streamable HTTP, SSE, or stdio)
  • createMCPClients({ ... }) — connect to many servers at once with auto-prefix collision avoidance
  • Auto-discovery (client.tools()) or explicit typed binding (client.tools([toolDefinition(...)]))
  • Per-client tool policy: toolFilter hides tools from the model, needsApproval asks before a tool runs
  • Automatic execution of MCP tools that require the experimental tasks flow
  • @tanstack/ai-mcp/stdio subpath — Node-only stdio transport, isolated so edge bundles stay clean
  • Bundled tanstack-ai-mcp generate CLI — introspects live servers and emits TypeScript types for createMCPClient<MyServer>()
  • [Symbol.asyncDispose] support — use await using for automatic cleanup
  • @tanstack/ai-mcp/events subpath — experimental MCP Events (SEP-3415) webhooks: createMCPEventWebhook, inMemoryMCPEventStore, createMCPEventSecret

Installation

  • A client app installs @tanstack/ai-mcp and @modelcontextprotocol/client.
  • A server app installs @modelcontextprotocol/server.
pnpm add @tanstack/ai-mcp @modelcontextprotocol/client

Quick Start

createMCPClient tries protocol 2026-07-28 first. If the server does not support that protocol, the client uses the 2025 initialize handshake.

import { createMCPClient } from '@tanstack/ai-mcp'
import { chat } from '@tanstack/ai'
import { openaiText } from '@tanstack/ai-openai'

const mcp = await createMCPClient({
  transport: { type: 'http', url: 'https://your-mcp-server.com/mcp' },
})

const stream = chat({
  adapter: openaiText('gpt-5.5'),
  messages: [{ role: 'user', content: 'What is the weather in Brooklyn?' }],
  threadId: 'thread-1',
  tools: await mcp.tools(),
})

// Tools execute lazily while the stream is consumed — close only after
// the stream is fully drained (or hand lifecycle to chat() via the `mcp` option).
for await (const chunk of stream) {
  // handle StreamChunks, or return toServerSentEventsResponse(stream) instead
}

await mcp.close()

License

MIT

Description from the npm listing.

  • ai
  • mcp
  • model-context-protocol
  • tanstack
  • tools
  • typescript
  • tanstack-intent

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

@tanstack/ai-mcp weekly downloads on npm, last 90 days: 278,036 weekly downloads as of Dec 5, 2026, +1464% over 90 days.@tanstack/ai-mcpWeekly downloads on npm · Last 90 days278,036downloads / week+1464% over 90 days050K100K150K200K250K300K350KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@tanstack/ai-mcp weekly downloads on npm, last 90 days: 278,036 weekly downloads as of Dec 5, 2026, +1464% over 90 days.

7/30/90-day growth

@tanstack/ai-mcp weekly downloads growth on npm: +11.5% over 7 days, +10.0% over 30 days, +1464% over 90 days.@tanstack/ai-mcpWeekly downloads growth on npm278,036downloads / week now7-day growth+28,752 weekly downloads+11.5%30-day growth+25,266 weekly downloads+10.0%90-day growth+260,264 weekly downloads+1464%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-mcp weekly downloads growth on npm: +11.5% over 7 days, +10.0% over 30 days, +1464% over 90 days.

Ranking history

@tanstack/ai-mcp npm ranking history: currently #474 (by weekly downloads).@tanstack/ai-mcpnpm ranking · by weekly downloads · Last 90 days#474current rank#440#460#480#500#520#540#560Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-mcp npm ranking history: currently #474 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 24, #14 (overall #474)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 2, #18 (overall #38)
MCP servers: every listing in weekly downloads order

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 (170)
Recent weekly downloads observations for @tanstack/ai-mcp
Date (UTC)Weekly downloadsChange vs. previous
278,036-31.7K
309,707+14.9K
294,820+19.8K
275,025+21.8K
253,228+3.8K
249,432-4.8K
254,265+5K
249,284+3.3K
246,005-13.1K
259,095+1.2K
257,895-1.5K
259,347+13.9K
245,480-4K
249,509—

Similar npm MCP servers plugins

All 20 @tanstack/ai-mcp alternatives

Data 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/@tanstack/ai-mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.