Back to Directory/Developer Tools

Svelte MCP

The official Svelte MCP server providing docs and autofixing tools for Svelte development

Developer ToolsTypeScriptv0.1.26

@sveltejs/mcp

Repo for the official Svelte MCP server.

Dev setup instructions

pnpm i
cp apps/mcp-remote/.env.example apps/mcp-remote/.env
pnpm dev
  1. Set the VOYAGE_API_KEY for embeddings support

[!NOTE] Currently to prevent having a bunch of Timeout logs on vercel we shut down the SSE channel immediately. This means that we can't use server.log and we are not sending list-changed notifications. We can use elicitation and sampling since those are sent on the same stream of the POST request

Local dev tools

MCP inspector
pnpm run inspect

Then visit http://localhost:6274/

Database inspector
pnpm run db:studio

https://local.drizzle.studio/

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @sveltejs/mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "dev-svelte-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@sveltejs/mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@sveltejs/mcpnpm

Compatible MCP Clients

Svelte MCP works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More