Connects Claude to Svelte 5 and SvelteKit documentation through a single `svelte_definition` tool that queries 28+ definitions extracted from official TypeScript declarations. You can pull syntax for any Svelte 5 rune ($state, $derived, $effect variants), get migration patterns from Svelte 4, or grab examples for modern features like snippets and await expressions. Supports three response formats from quick syntax to full documentation with examples. Reach for this when building Svelte apps and you need authoritative API references without leaving your AI chat, especially for the newer Svelte 5 runes and patterns.
A Model Context Protocol (MCP) server providing authoritative Svelte 5 and SvelteKit definitions extracted directly from TypeScript declarations. Get precise syntax, parameters, and examples for all Svelte 5 concepts through a single, unified interface.
Definition-First Approach: Rather than multiple specialized tools,
this server provides one powerful svelte_definition tool that
accesses 28+ comprehensive definitions covering:
svelte_definitionSingle, powerful tool for all Svelte 5 and SvelteKit concepts:
svelte_definition(identifier: string, format?: "syntax"|"quick"|"full")
Examples:
svelte_definition("$state") - Complete $state documentationsvelte_definition("snippets", "quick") - Snippet overview with
examplesvelte_definition("onclick", "syntax") - Just the TypeScript
signaturesvelte_definition("migration-patterns") - Svelte 4 → 5 migration
guideResponse Formats:
"syntax" - TypeScript signature only (~50 words)"quick" - Definition + minimal example (~200 words)"full" - Complete documentation with examples (~500-1000 words,
default)Core Runes: $state, $state.raw, $state.snapshot, $derived,
$derived.by, $props, $bindable, $effect, $effect.pre,
$effect.root, $effect.pending, $effect.tracking
Development Tools: $inspect, $host
Features & Patterns: snippets, onclick, component-events,
migration-patterns, await-expressions, remote-functions,
global-state, common-mistakes, lifecycle-equivalents
Event Handling: custom-events, event-delegation,
event-modifiers
TypeScript Interfaces: snippet, snapshot
svelte_definition replaces 16+ specialized tools$state
or remote-functionsawait-expressions)remote-functions)$effect family, $state variants,
$derived.by, $bindableClaude Desktop (via WSL)
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "wsl.exe",
"args": ["bash", "-c", "npx -y mcp-svelte-docs"]
}
}
}
Cursor
Windsurf (via WSL)
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "wsl.exe",
"args": ["bash", "-c", "npx -y mcp-svelte-docs"]
}
}
}
Windows (without WSL)
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "npx",
"args": ["-y", "mcp-svelte-docs"]
}
}
}
macOS / Linux
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "npx",
"args": ["-y", "mcp-svelte-docs"]
}
}
}
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see the LICENSE file for details.
Built on:
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp