Svelte MCP — Claude Code MCP server: features and setup
The official Svelte MCP server gives agents access to Svelte docs and autofixing tools. Use it when you want an agent to consult the docs or work on Svelte code.
claude mcp add --transport http mcp https://mcp.svelte.dev/mcpWhat Svelte MCP does
Svelte MCP connects an agent to Svelte documentation and autofixing tools. That helps when you want an agent to look up Svelte guidance or fix issues in Svelte code. The description does not list the individual autofixing tools.
In Claude Code, add the server over HTTP with claude mcp add --transport http mcp https://mcp.svelte.dev/mcp. For local use, the @sveltejs/mcp CLI can run through npx -y @sveltejs/mcp. You can also install it with pnpm i @sveltejs/mcp and start it with pnpm svelte-mcp. The local option requires npx or pnpm to run.
What it helps with
- look up Svelte documentation through an agent
- ask an agent to autofix Svelte code
- connect Svelte MCP to Claude Code over HTTP
- run Svelte MCP locally from its CLI
Example prompts for the agent
- Look up how this Svelte feature works in the documentation.
- Check this Svelte code and apply the available autofixes.
- Tell me how to add Svelte MCP to Claude Code over HTTP.
How to install Svelte MCP
1Platform CLI: remote server
claude mcp add --transport http mcp https://mcp.svelte.dev/mcp2Platform CLI
claude mcp add mcp-stdio -- npx -y @sveltejs/mcp1Platform CLI: remote server
codex mcp add mcp-stdio --url https://mcp.svelte.dev/mcp2Platform CLI
codex mcp add mcp-stdio -- npx -y @sveltejs/mcpConfig file
{
"mcpServers": {
"mcp-stdio": {
"url": "https://mcp.svelte.dev/mcp"
}
}
}{
"mcpServers": {
"mcp-stdio": {
"command": "npx",
"args": [
"-y",
"@sveltejs/mcp"
]
}
}
}Config file
{
"servers": {
"mcp-stdio": {
"type": "http",
"url": "https://mcp.svelte.dev/mcp"
}
}
}{
"servers": {
"mcp-stdio": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sveltejs/mcp"
]
}
}
}1Platform CLI: remote server
gemini mcp add -t http mcp-stdio https://mcp.svelte.dev/mcp2Platform CLI
gemini mcp add mcp-stdio npx -y @sveltejs/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Svelte MCP
How do I install Svelte MCP in Claude Code?
Add the server over HTTP with claude mcp add --transport http mcp https://mcp.svelte.dev/mcp.
What does Svelte MCP do?
It gives an agent access to Svelte documentation and autofixing tools for Svelte development.
How do I run Svelte MCP locally?
Run the package with npx -y @sveltejs/mcp. Alternatively, install it with pnpm i @sveltejs/mcp, then start it with pnpm svelte-mcp.