Open History to see the last commit
1---
2id: mcp-overview
3title: MCP Server
4---
5
6The TanStack CLI includes a Model Context Protocol (MCP) server that enables AI assistants to:
7- Create TanStack Start projects with add-ons
8- Search and fetch TanStack documentation
9- Explore the TanStack ecosystem (partners, libraries)
10
11## Claude Desktop Setup
12
13Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):
14
15```json
16{
17 "mcpServers": {
18 "tanstack": {
19 "command": "npx",
20 "args": ["@tanstack/cli", "mcp"]
21 }
22 }
23}
24```
25
26Restart Claude Desktop. Then try:
27
28> "Create a TanStack Start project called 'my-app' with Clerk auth and Drizzle ORM"
29
30Or:
31
32> "How do I use loaders in TanStack Router?"
33
34## Manual Start
35
36```bash
37# Stdio (default, for MCP clients)
38tanstack mcp
39
40# HTTP/SSE
41tanstack mcp --sse
42```
43
44## Tools
45
46### Project Creation
47
48| Tool | Description |
49|------|-------------|
50| `listTanStackAddOns` | Get available add-ons for project creation |
51| `getAddOnDetails` | Get detailed info about a specific add-on |
52| `createTanStackApplication` | Create a new TanStack Start project |
53
54### Documentation & Ecosystem
55
56| Tool | Description |
57|------|-------------|
58| `tanstack_list_libraries` | List TanStack libraries with metadata |
59| `tanstack_doc` | Fetch a documentation page by library and path |
60| `tanstack_search_docs` | Search documentation via Algolia |
61| `tanstack_ecosystem` | Browse ecosystem partners by category or library |
62
63See [Tools Reference](./tools.md) for parameters and examples.