The MCP Svelte Docs Server provides comprehensive documentation and guidance for Svelte 5 and SvelteKit development through specialized tools.
Access detailed documentation for Svelte 5 core runes:
$state
,$derived
,$props
, and$effect
Learn about Svelte 5 features like snippets (replacing slots), event handling, component events, and global state management strategies
Explore modern async features including await expressions, boundaries, and SvelteKit remote functions for type-safe client-server communication
Get Svelte 4 to Svelte 5 migration guidance with searchable patterns using the
pattern
parameter for specific areas like "reactive", "props", or "events"Identify and avoid common mistakes in Svelte 5 development with filtering by categories such as "state", "props", or "events" using the
category
parameterAccess comprehensive overviews of all Svelte 5 features and runes
Control documentation detail with the optional
includeExamples
parameter (defaults to true) to choose between documentation with or without code examples
Provides efficient access to Svelte documentation with advanced search capabilities, caching, and optimized content delivery. Supports package-specific documentation for Svelte, Kit, and CLI.
mcp-svelte-docs
A Model Context Protocol (MCP) server that provides a comprehensive reference guide for Svelte 5 and SvelteKit, helping LLMs provide accurate guidance when users are working with Svelte. It includes detailed documentation for:
- Svelte 5 core features (runes, components, events)
- Modern async patterns (await expressions, loading states)
- SvelteKit remote functions (type-safe client-server communication)
- Migration patterns from Svelte 4 to Svelte 5
- Common mistakes and best practices
- Advanced patterns for state management and data flow
Available Tools
This MCP server provides 16 specialized tools for Svelte 5 and SvelteKit development:
Core Svelte 5 Runes
svelte5_state
- Documentation for$state
rune (reactive state)svelte5_derived
- Documentation for$derived
rune (computed values)svelte5_props
- Documentation for$props
rune (component properties)svelte5_effect
- Documentation for$effect
rune (side effects)
Svelte 5 Features
svelte5_snippets
- Documentation for snippets (replacement for slots)svelte5_events
- Event handling patterns in Svelte 5svelte5_component_events
- Component event patterns and best practicessvelte5_global_state
- Global state management patterns
Modern Async Features ✨ NEW
svelte5_await_expressions
- Await expressions for async operations (experimental)sveltekit_remote_functions
- Remote functions for type-safe client-server communication (experimental)
Migration & Guidance
svelte5_migration
- Migration patterns from Svelte 4 to Svelte 5svelte5_mistakes
- Common mistakes and how to avoid themsvelte5_overview
- General overview of Svelte 5 featuressvelte5_runes_overview
- Comprehensive overview of all runes
Tool Parameters
All tools support an optional includeExamples
parameter:
includeExamples: true
(default) - Include code examples and demonstrationsincludeExamples: false
- Return documentation without code examples for concise reference
Key Features
🚀 Experimental Async Support
- Await Expressions: Use
await
directly in components,$derived
, and markup - Boundaries: Error handling and loading states with
<svelte:boundary>
- Synchronized Updates: Consistent UI updates during async operations
- Performance Patterns: Avoid waterfalls, optimize concurrent requests
⚡ Remote Functions
- Type-safe Communication: Full TypeScript support between client and server
- Four Function Types: Query (read), Form (submit), Command (execute), Prerender (static)
- Optimistic Updates: Immediate UI feedback with server synchronization
- Progressive Enhancement: Works with and without JavaScript
📚 Comprehensive Documentation
- Real-world Examples: Patterns from core maintainer projects
- Migration Guidance: Step-by-step Svelte 4 to 5 migration
- Error Prevention: Common mistakes and corrections
- Best Practices: Production-ready patterns and recommendations
Config
Claude Desktop (via WSL)
Cursor
Windsurf (via WSL)
Windows (without WSL)
macOS / Linux
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see the LICENSE file for details.
Acknowledgments
Built on:
Tools
Enables vector similarity search and serving of Svelte documentation via the MCP protocol, with support for local caching and multiple llms.txt documentation formats.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation contextLast updated -16219MIT License
- -securityAlicense-qualityAn MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context. Uses Ollama or OpenAI to generate embeddings. Docker files includedLast updated -2923MIT License
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -
- AsecurityAlicenseAqualityA documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.Last updated -349MIT License
Appeared in Searches
- A server for handling vector memory operations
- MCP integration with LangChain documentation
- A server or tool using RAG for documentation scraping, storage, and retrieval with SSE support
- Retrieve the latest documentation of libraries in word embeddings form for LLMs
- Official Documentation for Tailwind CSS