Basic information
About Svelte Docs MCP Server
Svelte Docs lets you efficiently query and retrieve Svelte documentation, streamlining access to framework-specific resources for developers.
Svelte Docs is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by spences10. It exposes 1 tool, including svelte_definition. Supported transport: stdio, streamable-http. Runtime: TypeScript. License: MIT. The repository has 124 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, documentation, libsql, llm.
Setup
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "npx",
"args": [
"-y",
"mcp-svelte-docs"
]
}
}
}
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "npx",
"args": [
"-y",
"mcp-svelte-docs"
]
}
}
}
{
"servers": {
"mcp-svelte-docs": {
"command": "npx",
"args": [
"-y",
"mcp-svelte-docs"
]
}
}
}
Svelte Docs MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-svelte-docs": {
"command": "npx",
"args": [
"-y",
"mcp-svelte-docs"
]
}
}
}
Svelte Docs MCP Server tools
- svelte_definition — Get authoritative Svelte 5 definitions extracted from TypeScript declarations. Returns precise syntax, parameters, and variants for runes ($state, $derived, $props, $effect), features (snippets, onclick), and patterns (component-events). Use "syntax" format for quick reference (~50 words), "quick" for definition + example (~200 words), or "full" for complete documentation (~500-1000 words). Replaces 13+ specialized tools with a single, consistent interface.
Overview
What is Svelte Docs?
An MCP server providing authoritative Svelte 5 and SvelteKit definitions extracted from TypeScript declarations. It delivers precise syntax, parameters, and examples for all Svelte 5 concepts through a single unified tool.
How to use Svelte Docs?
Install and configure via your MCP client (Claude Desktop, Cursor, Windsurf). The server exposes one tool, svelte_definition, which takes an identifier and optional format ("syntax", "quick", or "full"). Configuration examples are provided for WSL, Windows, macOS, and Linux using the command npx -y mcp-svelte-docs.
Key features of Svelte Docs
- Definitions extracted directly from official Svelte 5 TypeScript declarations.
- Single
svelte_definitiontool covers 28+ identifiers. - Supports runes, snippets, event handling, migration guidance, and TypeScript interfaces.
- Response formats: syntax (TypeScript signature), quick (definition + example), full (complete documentation).
- Smart error recovery with fuzzy matching and related concept suggestions.
- Includes migration help from Svelte 4 to Svelte 5.
Use cases of Svelte Docs
- Quickly look up Svelte 5 rune syntax and parameters while coding.
- Get migration guidance for converting Svelte 4 patterns to Svelte 5.
- Obtain concise TypeScript signatures for Svelte 5 features and event handlers.
- Explore advanced patterns like remote functions and global state in SvelteKit.
- Provide a consistent, authoritative reference for AI assistants working with Svelte 5.
Frequently asked questions
1 What identifiers are available?
28+ definitions cover core runes ($state, $derived, $props, $effect variants), features (snippets, onclick, component-events), migration patterns, event handling (custom-events, event-modifiers), and TypeScript interfaces (Snippet, Snapshot).
2 How does the svelte_definition tool work?
Call svelte_definition(identifier, format?) where identifier is a supported name (e.g., "$state", "snippets"). Optional format parameter sets response verbosity: "syntax", "quick", or "full" (default).
3 What are the runtime requirements?
The server runs on Node.js via npx. Configuration examples are provided for WSL, Windows (without WSL), macOS, and Linux.
4 Does the server support Svelte 4?
It does not directly support Svelte 4 syntax, but includes a migration-patterns identifier that provides guidance and equivalents for converting Svelte 4 patterns to Svelte 5.
5 Where do the definitions come from?
Definitions are extracted directly from the official Svelte 5 TypeScript declarations, ensuring they reflect the actual API rather than outdated tutorials.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In