# Svelte MCP

> Svelte MCP is an MCP server for developer tools. Official Svelte docs and code-fixing MCP server, run via npx or a hosted URL. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Website:** https://svelte.dev/docs/mcp/overview
- **Repository:** https://github.com/sveltejs/ai-tools/tree/HEAD/packages/mcp-stdio
- **MCP Registry name:** dev.svelte/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

This is one of four pieces in the Svelte team's AI tooling, alongside a small always-injected instruction prompt, lazy-loaded skills and parallel subagents. The server's job is to pull context from the official Svelte documentation and apply static analysis to catch common mistakes that generated code makes.

It can run locally over stdio with `npx @sveltejs/mcp`, or after installing the package with pnpm and running `svelte-mcp`. The registry also lists a hosted streamable-HTTP endpoint at mcp.svelte.dev. The pages describe it as offering tools, prompts and resources, but individual tool names are not listed.

## Features

- **Official docs context:** Pulls from the Svelte documentation rather than model memory.
- **Static-analysis fixes:** Flags common generated-code pitfalls.
- **Local or hosted:** Use the npm package over stdio or the remote URL.
- **Part of a four-piece kit:** Works with instructions, skills and subagents or on its own.

## Good for

- Give a coding agent accurate Svelte documentation while it writes components
- Have generated Svelte code checked for common mistakes
- Add Svelte help to an editor agent without a custom setup

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mcp https://mcp.svelte.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.svelte.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.svelte.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --url https://mcp.svelte.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
url = "https://mcp.svelte.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp https://mcp.svelte.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.svelte.dev/mcp
```

Enter a Name (for example "Svelte MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}
```

## FAQ

### How do I run Svelte MCP locally?

Run npx @sveltejs/mcp, or install the package with pnpm and run svelte-mcp.

### Is there a hosted version?

Yes, a streamable-HTTP endpoint at https://mcp.svelte.dev/mcp is listed in the registry.

### Who maintains Svelte MCP?

The Svelte team; the documentation calls these the officially maintained AI tools.

### How do I add Svelte MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://mcp.svelte.dev/mcp

### What are the best alternatives to Svelte MCP?

The closest alternatives to Svelte MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/svelte-mcp
