About AI
AI is an MCP server published by TanStack in the Agents category: 🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid. Conduid read 11 tools from its source: exposePreview, getGuitars, getSchemaInfo, get_snippet, get_temperature, queryTable and 5 more. It is published to npm as @tanstack/ai-mcp and starts with npx.
The TanStack/ai monorepo this package is published from has 3.4K stars and 426 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is @tanstack/ai@1.8.0 (20 Nov 2026): Minor Changes 2210 4b00243 - Add '3mf' to Model3DFormat for 3D print results. It follows @tanstack/ai-solid@1.1.1 (20 Nov 2026), and the 5 most recent releases go back to @tanstack/ai-svelte@1.1.1 (20 Nov 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include ai-sdk, chatbot, function-calling, multimodal, react and solidjs.
Install
claude mcp add ai-4a5a -- npx -y @tanstack/ai-mcpnpx -y @tanstack/ai-mcpgit clone https://github.com/TanStack/aiTools (11)
exposePreviewExpose a port a dev server is listening on inside the sandbox and return a public preview URL (a Cloudflare quick tunnel) to show the user. Call this AFTER the server is up. The dev server must allow all hosts (e.g. Vite `server.allowedHosts: true`) so it accepts the tunnel hostname.| Parameter | Type | Description |
|---|---|---|
| port * | number | The port the dev server is listening on, e.g. 5173. |
getGuitarsGet all products from the databasegetSchemaInfoGet schema information for one or all database tables. Returns column names and types. Use this to understand what data is available before querying.| Parameter | Type | Description |
|---|---|---|
| table | string | Specific table to get schema for. If omitted, returns all table schemas. |
get_snippetGet the full implementation details of a snippet, including its code. Use this after search_snippets to see how a snippet works before using it.| Parameter | Type | Description |
|---|---|---|
| name * | string | The snippet name (without snippet_ prefix) |
get_temperatureGet the current temperature for a specific location| Parameter | Type | Description |
|---|---|---|
| location * | string | The city or location to get the temperature for |
| unit | string | The temperature unit (optional, defaults to fahrenheit) |
queryTableQuery an in-memory database table. Supports filtering rows by exact-match conditions on columns, selecting specific columns, ordering by a column, and limiting results. Available tables: customers (id, name, email, city, joined), products (id, name, category, price, stock), purchases (id, customer_id, product_id, quantity, total, purchased_at).| Parameter | Type | Description |
|---|---|---|
| columns | array | Columns to return. If omitted, all columns are returned. |
| limit | number | Maximum number of rows to return |
| orderBy | string | Column name to sort results by |
| orderDirection | string | Sort direction, defaults to asc |
| table * | string | The table to query |
| where | object | Filter conditions as key-value pairs (exact match). Example: { "city": "New York" } |
read_fileRead a UTF-8 file and return its full content.| Parameter | Type | Description |
|---|---|---|
| path * | string |
register_snippetSave working TypeScript code as a reusable snippet for future use. Only register code that has been tested and works correctly. The snippet becomes available as a callable tool immediately.| Parameter | Type | Description |
|---|---|---|
| code * | string | The TypeScript code. Receives `input` variable, can call external_* and snippet_* functions, should return a value. |
| dependsOn | array | Names of other snippets this snippet calls |
| description * | string | Clear description of what the snippet does |
| inputSchema * | string | JSON Schema as a JSON string describing the input parameter, e.g. {"type":"object","properties":{"a":{"type":"number"}},"required":["a"]} |
| name * | string | Unique snippet name in snake_case (e.g., fetch_github_stats) |
| outputSchema * | string | JSON Schema as a JSON string describing the return value, e.g. {"type":"object","properties":{"result":{"type":"number"}}} |
| usageHints * | array | Hints about when to use this snippet, e.g. "Use when user asks about..." |
run_shellRun a shell command and return its stdout, stderr, and exit code.| Parameter | Type | Description |
|---|---|---|
| command * | string | The command line to run. |
search_snippetsSearch the snippet library for reusable snippets. Use this to find snippets that can help accomplish a task. Returns matching snippets with their descriptions.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results (default: 5) |
| query * | string | Search query describing what you want to accomplish |
write_fileWrite UTF-8 content to a file, creating or overwriting it.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| path * | string |
Security checks
From the TanStack/ai monorepo, not this package alone.
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
2 checks have not been run yet.
Releases
From the TanStack/ai monorepo.
README
The repository's README runs to about 1.4K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README