mcp-svelte-docs
π MCP server that lets you search and access Svelte documentation with built-in caching
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/spences10/mcp-svelte-docs with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/spences10/mcp-svelte-docs'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/spences10--mcp-svelte-docs)HTML
<a href="/listings/spences10--mcp-svelte-docs"><img src="/api/listings/spences10--mcp-svelte-docs/badge.svg" alt="findsafeskills safety rating" /></a>Install
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md Β· README Β· 175 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # mcp-svelte-docs
- 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.
- ## Architecture
- **Definition-First Approach**: Rather than multiple specialized tools,
- this server provides one powerful `svelte_definition` tool that
- accesses 28+ comprehensive definitions covering:
- - **All Svelte 5 runes** ($state, $derived, $props, $effect variants)
- - **Modern features** (snippets, await expressions, remote functions)
- - **Event handling** (DOM events, custom events, component
- communication)
- - **Migration guidance** (Svelte 4 to 5 patterns and best practices)
- - **TypeScript interfaces** (Snippet, Snapshot types)
- - **Advanced patterns** (global state, common mistakes, lifecycle
- equivalents)
- ## Available Tool
- ### `svelte_definition`
- **Single, powerful tool** for all Svelte 5 and SvelteKit concepts:
- ```typescript
- svelte_definition(identifier: string, format?: "syntax"|"quick"|"full")
- ```
- **Examples:**
- - `svelte_definition("$state")` - Complete $state documentation
- - `svelte_definition("snippets", "quick")` - Snippet overview with
- example
- - `svelte_definition("onclick", "syntax")` - Just the TypeScript
- signature
- - `svelte_definition("migration-patterns")` - Svelte 4 β 5 migration
- guide
- **Response Formats:**
- - `"syntax"` - TypeScript signature only (~50 words)
- - `"quick"` - Definition + minimal example (~200 words)
- - `"full"` - Complete documentation with examples (~500-1000 words,
- default)
- ### Available Identifiers (28+)
- **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`
- ## Key Features
- ### π― **Authoritative & TypeScript-First**
- - **Direct from Source**: Definitions extracted from official Svelte 5
- TypeScript declarations
- - **Always Current**: Reflects the actual API, not outdated tutorials
- - **Type-Safe**: Includes precise parameter types, return values, and
- constraints
- ### β‘ **Single Interface, Complete Coverage**
- - **One Tool**: `svelte_definition` replaces 16+ specialized tools
- - **28+ Definitions**: Every Svelte 5 rune, feature, and pattern
- covered
- - **Consistent Responses**: Same interface whether you need `$state`
- or `remote-functions`
- ### π **Modern Svelte 5 & SvelteKit Support**
- - **Await Expressions**: Async operations directly in templates
- (`await-expressions`)
- - **Remote Functions**: Type-safe client-server communication
- (`remote-functions`)
- - **All Runes**: Complete `$effect` family, `$state` variants,
- `$derived.by`, `$bindable`
- - **Advanced Patterns**: Event handling, global state, component
- communication
- ### π **Smart Error Recovery**
- - **Fuzzy Matching**: Suggests correct identifiers for typos
- - **Related Concepts**: Points to similar definitions when searches
- fail
- - **Migration Help**: Converts Svelte 4 patterns to Svelte 5
- equivalents
- ## Config
- Claude Desktop (via WSL)
- ```json
- {
- "mcpServers": {
- "mcp-svelte-docs": {
- "command": "wsl.exe",
- "args": ["bash", "-c", "npx -y mcp-svelte-docs"]
- }
- }
- }
- ```
- Cursor
- [](https://cursor.com/en/install-mcp?name=mcp-svelte-docs&config=eyJjb21tYW5kIjoibnB4IC15IG1jcC1zdmVsdGUtZG9jcyJ9)
- Windsurf (via WSL)
- ```json
- {
- "mcpServers": {
- "mcp-svelte-docs": {
- "command": "wsl.exe",
- "args": ["bash", "-c", "npx -y mcp-svelte-docs"]
- }
- }
- }
- ```
- Windows (without WSL)
- ```json
- {
- "mcpServers": {
- "mcp-svelte-docs": {
- "command": "npx",
- "args": ["-y", "mcp-svelte-docs"]
- }
- }
- }
- ```
- macOS / Linux
- ```json
- {
- "mcpServers": {
- "mcp-svelte-docs": {
- "command": "npx",
- "args": ["-y", "mcp-svelte-docs"]
- }
- }
- }
- ```
- ## Contributing
- Contributions are welcome! Please feel free to submit a Pull Request.
- ## License
- MIT License - see the [LICENSE](LICENSE) file for details.
- ## Acknowledgments
- Built on:
- - [Model Context Protocol](https://github.com/modelcontextprotocol)
- - [Svelte](https://svelte.dev)
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If itβs helped, pass it on.