MCP Server — spences10/mcp-svelte-docs

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

Local serverstdioTypeScript

What is the MCP Server?

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

What it actually does

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
svelte_definition

How to install the MCP Server

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

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use MCP to Type-Safe.”
  • “Use MCP to svelte definition.”

Frequently asked questions

28+ definitions cover core runes ($state, $derived, $props, $effect variants), features (snippets, onclick, component-events), migration patterns, event handling (custom-events, event-modifiers), and TypeScript interfaces (Snippet, Snapshot).