Skip to content

shadcn-vue

4.30 / 5 composite score · 84.0% API recall · 50 questions evaluated

Vue Docs MCP provides deep access to the official shadcn-vue documentation, covering the copy-paste component library built on reka-ui primitives: 64 documented components, the npx shadcn-vue@latest add CLI, components.json configuration, theming via Tailwind CSS variables, framework-specific installation guides (Vite, Nuxt, Astro, Laravel), form-library integration recipes (vee-validate, TanStack Form), and the custom-registry workflow.

Activation

shadcn-vue is not enabled by default. Call set_framework_preferences to activate it:

set_framework_preferences(shadcn_vue=true)

Tools

Semantic search over shadcn-vue documentation. Uses the standard 6-step retrieval pipeline: embed query, hybrid search (dense + BM25), resolve HyPE hits, expand cross-references, rerank, and reconstruct into readable markdown.

ParameterTypeDefaultDescription
querystringDeveloper question or topic (max 2000 chars)
scopestring"all"Documentation section to search within
max_resultsinteger3Number of sections to return (1-20)

Scope values: all, components, installation, forms, dark-mode, registry

shadcn_vue_api_lookup

Fast exact-match API reference lookup with fuzzy fallback. Returns type signatures, descriptions, and usage examples directly from the documentation. Component names work in both kebab-case (alert-dialog) and PascalCase (AlertDialog).

ParameterTypeDefaultDescription
api_namestringComponent name to look up (e.g. Button, data-table, Sidebar)

Find related APIs, concepts, and documentation pages for a given API or topic.

ParameterTypeDefaultDescription
topicstringComponent or concept to explore

Resources

URIDescription
shadcn-vue://topicsFull table of contents
shadcn-vue://topics/{section}TOC for a specific section (e.g. shadcn-vue://topics/components)
shadcn-vue://pages/{path}Raw markdown of any doc page (e.g. shadcn-vue://pages/components/button)
shadcn-vue://api/indexComplete component index
shadcn-vue://api/entities/{name}Details for a specific component (e.g. shadcn-vue://api/entities/Button)
shadcn-vue://scopesAll valid search scope values

Prompts

PromptParametersDescription
debug_shadcn_vue_issuesymptom, code_snippet (optional)Systematic debugging workflow
compare_shadcn_vue_apisitems (comma-separated)Side-by-side comparison (e.g. Dialog, Sheet, Drawer)
migrate_shadcn_vue_patternfrom_pattern, to_patternMigration guide between patterns

Coverage

AreaWhat's indexed
ComponentsAll 64 official components: Button, Dialog, DataTable, Sidebar, Combobox, Calendar, Sonner, Stepper, Chart, Resizable, ...
CLInpx shadcn-vue@latest init / add / diff / remove plus the JavaScript API
Configurationcomponents.json schema (tailwind, aliases, iconLibrary, framework)
ThemingTailwind v4 CSS variables, OKLCH palette, dark-mode integration
Framework setupVite, Nuxt, Astro, Laravel installation guides
Formsvee-validate and TanStack Form integration with <Form>, <FormField>, <FormControl>, <FormMessage>
Dark modeuseColorMode patterns per framework
RegistryCustom registry schema, hosting, and consumption flow
Migrationv3 → v4 (Tailwind v4 + theme cleanup)

Benchmarks vs Context7

Evaluated on 50 shadcn-vue questions scored by an LLM judge (Gemini, temperature 0) across 5 dimensions on a 1-5 scale.

Methodology

Each question has a ground-truth answer with expected API names and documentation paths. Both providers receive the same question and return documentation context. The judge scores the retrieved context on relevance, completeness, correctness, API coverage, and conciseness. See the eval/ directory in the repository for the full evaluation framework.

Overall Scores

MetricVue Docs MCPContext7
Relevance4.304.96
Completeness4.124.82
Correctness4.144.88
API Coverage4.064.76
Conciseness4.864.92
Composite4.304.87

Retrieval and Cost

MetricVue Docs MCPContext7
Path Recall82.0%98.0%
API Recall84.0%93.0%
Avg Response Tokens4,4071,005
Avg Latency0.78s1.62s
P95 Latency1.03s1.95s
Cost per Query (user-facing)Free$0.002

Notes on Fairness

  • Context7 is a general-purpose service covering 9000+ libraries. Vue Docs MCP is purpose-built for the Vue ecosystem.
  • shadcn-vue's docs are intentionally thin on prose — each component page is mostly an install snippet plus a code example, since the project's philosophy is that you copy-paste source you can read directly. This caps the absolute composite score for both providers; the relative numbers are the meaningful comparison.
  • The evaluation framework is open source in the eval/ directory. Run make eval-compare to reproduce.