MCP MCP Server

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

Local serverstdioTypeScript

What is the MCP MCP server?

🔍 MCP server that lets you search and access Svelte documentation with built-in caching. The mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 2 defined tools rather than through you.

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.

Its toolset

Everything the assistant can do here goes through one of these:

  • Type-Safe — Includes precise parameter types, return values, and
  • svelte_definition — The svelte_definition tool exposed by this server

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at mcp-svelte-docs on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of knowledge and memory servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — Type-Safe, svelte_definition — is a fair guide to whether it matches your workflow. It is maintained by spences10; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
Type-SafeIncludes precise parameter types, return values, and
svelte_definitionThe svelte_definition tool exposed by this server.

How to install the MCP 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).