Scaffolds and manages TanStack Router and Start applications with support for various build tools and add-ons.
Also known as TanStack/cli
- Stars
- 1,302
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- —
- Last commit
- Nov 12, 2026
- License
- MIT
What is TanStack CLI MCP?
TanStack CLI scaffolds and manages TanStack Router and Start applications with support for various build tools and add-ons.
Summary generated from the project's README
About TanStack CLI MCP server
Scaffolding and managing TanStack Router and Start applications is the primary function of this tool. Developers use it to initialize full-stack SSR frameworks or type-safe single-page applications. The CLI supports choosing between Vite or Rsbuild as build tools for React and Solid projects and allows for the integration of specific add-ons like Clerk, Drizzle, or TanStack Query.
This server operates via command line interface commands, such as npx @tanstack/cli, to create new projects or add features to existing ones. It is designed to be agent-friendly by providing JSON output for introspection, which helps AI clients discover available libraries and documentation details. Users can manage telemetry settings through specific commands to control what anonymous usage data is shared during development.
What you can do with it
- 1Initialize a new full-stack applicationCreate a new TanStack Start project with default settings.
- 2Build a single-page applicationSet up a type-safe routing SPA without server-side rendering.
- 3Extend an existing projectAdd specific tools like Clerk or Drizzle to a current codebase.
- 4Discover library documentation via JSONSearch for specific technical details like loaders within the router library using machine-readable output.
Written from the project's README. Every use case is checked against a quote from it.
Automated checks
Ran Nov 13, 2026Full report →Not verified yet. A server needs a score of 80, no serious finding, and enough data for us to check. How checks work · What to fix for more points
- Source repository linked and reachablePass
- Open source license (OSI)Pass
- Commit or release in the last yearPass
- Package name not close to a popular packageNot checked
- Remote endpoint uses HTTPSNot checked
- Destructive tools are labelledNot checked
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesNot checked
README
View on GitHubBecome a Sponsor!
TanStack CLI
Create and manage TanStack Router and Start applications.
npx @tanstack/cli create my-app
Features
- TanStack Start - Full-stack SSR framework (default)
- TanStack Router - Type-safe routing (
--router-onlyfor SPA) - Vite or Rsbuild - Choose the build tool for React and Solid projects
- Add-ons - Auth, database, deployment, monitoring, and more
- CLI Introspection - Agent-friendly discovery via JSON CLI output
Quick Start
# Create TanStack Start app (recommended)
npx @tanstack/cli create my-app
# Create a minimal one-route Start app without selection prompts
npx @tanstack/cli create my-app --blank -y
# Create Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-only
# Create with Rsbuild
npx @tanstack/cli create my-app --build-tool rsbuild -y
# With add-ons
npx @tanstack/cli create my-app --add-ons clerk,drizzle,tanstack-query
# Add to existing project
npx @tanstack/cli add clerk drizzle
# List available add-ons
npx @tanstack/cli create --list-add-ons
# Agent-friendly introspection
npx @tanstack/cli create --addon-details tanstack-query --json
npx @tanstack/cli libraries --json
npx @tanstack/cli search-docs "loaders" --library router --framework react --json
Documentation
Telemetry
TanStack CLI sends anonymous usage telemetry by default.
- Sent: command usage, durations, selected framework/build tool/package manager/add-on ids, and coarse result metadata
- Never sent: project names, file paths, target directories, raw search queries, raw template URLs/paths, add-on config values, env vars, or raw error messages
- Disabled automatically in
CI, or whenDO_NOT_TRACK=1orTANSTACK_CLI_TELEMETRY_DISABLED=1
Manage it with:
tanstack telemetry status
tanstack telemetry disable
tanstack telemetry enable
Get Involved
TanStack Ecosystem
- TanStack Query - Async state & caching
- TanStack Router - Type-safe routing
- TanStack Start - Full-stack SSR
- TanStack Form - Type-safe forms
- TanStack Table - Headless datagrids
- TanStack Store - Reactive state
- TanStack Virtual - Virtualized rendering
TanStack CLI MCP questions
How can I create a TanStack Start application?
You can create a TanStack Start application by running the command npx @tanstack/cli create my-app.
Can I create a single-page application without SSR?
Yes, you can create a Router-only SPA by using the --router-only flag.
How do I add new features like Clerk or Drizzle to my project?
You can add features to an existing project using the add command, for example: npx @tanstack/cli add clerk drizzle.
Does the CLI collect private project information?
No, the CLI never sends project names, file paths, target directories, raw search queries, or environment variables via telemetry.