home / mcp / svelte docs mcp server

Svelte Docs MCP Server

🔍 MCP server that lets you search and access Svelte documentation with built-in caching

Installation
Add the following to your MCP client configuration file.

Configuration

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

This MCP server provides authoritative, TypeScript-first definitions for Svelte 5 and SvelteKit, delivered through a single, unified tool. You can query comprehensive runes, patterns, and migration guidance to design and implement Svelte 5 features with confidence across client and server boundaries.

How to use

Use the svelte_definition tool to retrieve precise definitions and examples for Svelte 5 concepts. You can request a full, quick, or signature-only view depending on how much detail you need. The interface is designed to be consistent across all runes, including state, derived state, props, events, and advanced patterns. Start by choosing an identifier you want to understand and optionally specify the format to tailor the response.

How to install

Prerequisites: ensure you have a modern Node.js installed and a working shell environment. You will run the MCP server via a local command or through a WSL integration depending on your operating system.

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

Additional setup notes

If you are on Windows without WSL, use the direct local command shown below to start the MCP server. Use the exact command and arguments as written to ensure compatibility with your environment.

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

Configuration paths and environment

The server configuration supports multiple environment-specific startup commands. Use the provided blocks to run the MCP server in your preferred environment, keeping the same server name for consistency.

Usage patterns and capabilities

Leverage the single, centralized tool to cover all Svelte 5 concepts, including the entire runes family and modern features like await expressions and remote functions. The tool provides authoritative, type-safe documentation and migration guidance, with fuzzy error recovery that helps you locate the correct definitions even if you mis-type an identifier.

Available tools

svelte_definition

Single, powerful tool for all Svelte 5 and SvelteKit concepts, providing definitions, parameters, and examples across 28+ runes and features.