Svelte Docs

v0.0.22Search & Data Extractionstable

Enables vector similarity search and serving of Svelte documentation via the MCP protocol, with support for local caching and multiple llms.txt documentation formats.

developer-toolsdocumentationlibsqlllmmcp
Share:
122
Stars
0
Downloads
0
Weekly
0/5

What is Svelte Docs?

Svelte Docs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables vector similarity search and serving of svelte documentation via the mcp protocol, with support for local caching and multiple llms.txt documentation formats.

Enables vector similarity search and serving of Svelte documentation via the MCP protocol, with support for local caching and multiple llms.txt documentation formats.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables vector similarity search and serving of Svelte docum

Use Cases

Vector similarity documentation search
Framework documentation access
Local cached doc serving
spences10

Maintainer

LicenseMIT License
Languagetypescript
Versionv0.0.22
UpdatedApr 24, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcp-svelte-docs

Manual Installation

npx -y mcp-svelte-docs

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Svelte Docs

mcp-svelte-docs is a TypeScript MCP server that provides a single authoritative tool—svelte_definition—covering 28+ Svelte 5 and SvelteKit concepts extracted directly from official TypeScript declarations. It lets AI assistants look up precise syntax, parameter types, return values, and migration guidance for every Svelte 5 rune ($state, $derived, $props, $effect and variants), snippets, async await expressions, remote functions, event handling patterns, and TypeScript interfaces. Developers use it to ensure AI coding assistants always reference the actual current Svelte 5 API rather than outdated tutorials.

Prerequisites

  • Node.js 18+ installed
  • npx available on your system
  • An MCP-compatible client (Claude Desktop, Cursor, Windsurf, etc.)
1

Add the server to your MCP client config

No separate installation is required. Add mcp-svelte-docs to your client config and npx will download and run it automatically on first use.

{
  "mcpServers": {
    "mcp-svelte-docs": {
      "command": "npx",
      "args": ["-y", "mcp-svelte-docs"]
    }
  }
}
2

Configure for Windows (without WSL)

On native Windows, use npx directly without the wsl.exe wrapper.

{
  "mcpServers": {
    "mcp-svelte-docs": {
      "command": "npx",
      "args": ["-y", "mcp-svelte-docs"]
    }
  }
}
3

Configure for Claude Desktop on WSL

When Claude Desktop runs on Windows but Node.js is inside WSL, route through wsl.exe.

{
  "mcpServers": {
    "mcp-svelte-docs": {
      "command": "wsl.exe",
      "args": ["bash", "-c", "npx -y mcp-svelte-docs"]
    }
  }
}
4

Restart your MCP client

Restart Claude Desktop or your MCP client to load the new server. The svelte_definition tool will appear in the available tools list.

5

Use the svelte_definition tool

Query any of the 28+ available identifiers with an optional format (syntax, quick, or full). The default format is 'full' providing ~500-1000 words of documentation with examples.

Svelte Docs Examples

Client configuration

Standard macOS/Linux configuration for Claude Desktop using npx to run mcp-svelte-docs.

{
  "mcpServers": {
    "mcp-svelte-docs": {
      "command": "npx",
      "args": ["-y", "mcp-svelte-docs"]
    }
  }
}

Prompts to try

Example prompts that invoke svelte_definition across runes, migration patterns, and SvelteKit features.

- "Look up the $state rune in the Svelte docs and show me the full TypeScript signature"
- "Show me the quick reference for Svelte 5 snippets"
- "What is the Svelte 4 to 5 migration pattern for reactive declarations ($:)?"
- "Explain $effect.pre vs $effect in Svelte 5 with examples"
- "Show me the syntax-only format for the $derived.by rune"

Troubleshooting Svelte Docs

svelte_definition returns 'identifier not found'

The server provides fuzzy matching — it will suggest the correct identifier if you have a typo. Check the available identifiers list: core runes use the $ prefix (e.g., $state, $derived), while features use kebab-case (e.g., migration-patterns, await-expressions).

npx times out or hangs on first run

The first run downloads the mcp-svelte-docs package. Ensure you have internet access and that your npm registry is reachable. You can pre-install with npm install -g mcp-svelte-docs and point the config at the global binary instead.

Server not found when using Windsurf or Cursor on WSL

Use the wsl.exe wrapper form: set command to 'wsl.exe' and args to ['bash', '-c', 'npx -y mcp-svelte-docs']. This ensures the Node process runs inside WSL where your project dependencies live.

Frequently Asked Questions about Svelte Docs

What is Svelte Docs?

Svelte Docs is a Model Context Protocol (MCP) server that enables vector similarity search and serving of svelte documentation via the mcp protocol, with support for local caching and multiple llms.txt documentation formats. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Svelte Docs?

Install via npm with the command: npx -y mcp-svelte-docs. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Svelte Docs?

Svelte Docs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Svelte Docs free to use?

Yes, Svelte Docs is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-svelte-docs-server": { "command": "npx", "args": ["-y", "mcp-svelte-docs"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Svelte Docs?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides