Skip to content
Back to search

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.

Checked today

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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/spences10--mcp-svelte-docs/badge.svg)](/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

i

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)

  1. # mcp-svelte-docs
  2. A Model Context Protocol (MCP) server providing authoritative Svelte 5
  3. and SvelteKit definitions extracted directly from TypeScript
  4. declarations. Get precise syntax, parameters, and examples for all
  5. Svelte 5 concepts through a single, unified interface.
  6. ## Architecture
  7. **Definition-First Approach**: Rather than multiple specialized tools,
  8. this server provides one powerful `svelte_definition` tool that
  9. accesses 28+ comprehensive definitions covering:
  10. - **All Svelte 5 runes** ($state, $derived, $props, $effect variants)
  11. - **Modern features** (snippets, await expressions, remote functions)
  12. - **Event handling** (DOM events, custom events, component
  13. communication)
  14. - **Migration guidance** (Svelte 4 to 5 patterns and best practices)
  15. - **TypeScript interfaces** (Snippet, Snapshot types)
  16. - **Advanced patterns** (global state, common mistakes, lifecycle
  17. equivalents)
  18. ## Available Tool
  19. ### `svelte_definition`
  20. **Single, powerful tool** for all Svelte 5 and SvelteKit concepts:
  21. ```typescript
  22. svelte_definition(identifier: string, format?: "syntax"|"quick"|"full")
  23. ```
  24. **Examples:**
  25. - `svelte_definition("$state")` - Complete $state documentation
  26. - `svelte_definition("snippets", "quick")` - Snippet overview with
  27. example
  28. - `svelte_definition("onclick", "syntax")` - Just the TypeScript
  29. signature
  30. - `svelte_definition("migration-patterns")` - Svelte 4 β†’ 5 migration
  31. guide
  32. **Response Formats:**
  33. - `"syntax"` - TypeScript signature only (~50 words)
  34. - `"quick"` - Definition + minimal example (~200 words)
  35. - `"full"` - Complete documentation with examples (~500-1000 words,
  36. default)
  37. ### Available Identifiers (28+)
  38. **Core Runes:** `$state`, `$state.raw`, `$state.snapshot`, `$derived`,
  39. `$derived.by`, `$props`, `$bindable`, `$effect`, `$effect.pre`,
  40. `$effect.root`, `$effect.pending`, `$effect.tracking`
  41. **Development Tools:** `$inspect`, `$host`
  42. **Features & Patterns:** `snippets`, `onclick`, `component-events`,
  43. `migration-patterns`, `await-expressions`, `remote-functions`,
  44. `global-state`, `common-mistakes`, `lifecycle-equivalents`
  45. **Event Handling:** `custom-events`, `event-delegation`,
  46. `event-modifiers`
  47. **TypeScript Interfaces:** `snippet`, `snapshot`
  48. ## Key Features
  49. ### 🎯 **Authoritative & TypeScript-First**
  50. - **Direct from Source**: Definitions extracted from official Svelte 5
  51. TypeScript declarations
  52. - **Always Current**: Reflects the actual API, not outdated tutorials
  53. - **Type-Safe**: Includes precise parameter types, return values, and
  54. constraints
  55. ### ⚑ **Single Interface, Complete Coverage**
  56. - **One Tool**: `svelte_definition` replaces 16+ specialized tools
  57. - **28+ Definitions**: Every Svelte 5 rune, feature, and pattern
  58. covered
  59. - **Consistent Responses**: Same interface whether you need `$state`
  60. or `remote-functions`
  61. ### πŸš€ **Modern Svelte 5 & SvelteKit Support**
  62. - **Await Expressions**: Async operations directly in templates
  63. (`await-expressions`)
  64. - **Remote Functions**: Type-safe client-server communication
  65. (`remote-functions`)
  66. - **All Runes**: Complete `$effect` family, `$state` variants,
  67. `$derived.by`, `$bindable`
  68. - **Advanced Patterns**: Event handling, global state, component
  69. communication
  70. ### πŸ“š **Smart Error Recovery**
  71. - **Fuzzy Matching**: Suggests correct identifiers for typos
  72. - **Related Concepts**: Points to similar definitions when searches
  73. fail
  74. - **Migration Help**: Converts Svelte 4 patterns to Svelte 5
  75. equivalents
  76. ## Config
  77. Claude Desktop (via WSL)
  78. ```json
  79. {
  80. "mcpServers": {
  81. "mcp-svelte-docs": {
  82. "command": "wsl.exe",
  83. "args": ["bash", "-c", "npx -y mcp-svelte-docs"]
  84. }
  85. }
  86. }
  87. ```
  88. Cursor
  89. [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=mcp-svelte-docs&config=eyJjb21tYW5kIjoibnB4IC15IG1jcC1zdmVsdGUtZG9jcyJ9)
  90. Windsurf (via WSL)
  91. ```json
  92. {
  93. "mcpServers": {
  94. "mcp-svelte-docs": {
  95. "command": "wsl.exe",
  96. "args": ["bash", "-c", "npx -y mcp-svelte-docs"]
  97. }
  98. }
  99. }
  100. ```
  101. Windows (without WSL)
  102. ```json
  103. {
  104. "mcpServers": {
  105. "mcp-svelte-docs": {
  106. "command": "npx",
  107. "args": ["-y", "mcp-svelte-docs"]
  108. }
  109. }
  110. }
  111. ```
  112. macOS / Linux
  113. ```json
  114. {
  115. "mcpServers": {
  116. "mcp-svelte-docs": {
  117. "command": "npx",
  118. "args": ["-y", "mcp-svelte-docs"]
  119. }
  120. }
  121. }
  122. ```
  123. ## Contributing
  124. Contributions are welcome! Please feel free to submit a Pull Request.
  125. ## License
  126. MIT License - see the [LICENSE](LICENSE) file for details.
  127. ## Acknowledgments
  128. Built on:
  129. - [Model Context Protocol](https://github.com/modelcontextprotocol)
  130. - [Svelte](https://svelte.dev)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.