[Home](/index.md) › [MCP servers](/mcp.md) › Svelte MCP

# Svelte MCP

MCP server

- 4 callable tools
- 4 capabilities

[Installation guide](https://svelte.dev/docs/mcp/overview)

## Overview

Svelte MCP is a server published by the Svelte team that gives AI agents Svelte 5 and SvelteKit documentation and static analysis of generated Svelte code. It is hosted remotely at mcp.svelte.dev and can also run locally from the @sveltejs/mcp package.

### Capabilities

- Look up current Svelte 5 and SvelteKit documentation
- List the available Svelte and SvelteKit documentation sections
- Check generated Svelte components and modules for common mistakes and get suggested fixes
- Generate an ephemeral Svelte Playground link for a code snippet

## Works with

The products your agent can work with through this server.

- [SvelteKit](/tools/sveltekit.md): Full-stack Svelte framework

## Tools

The callable functions your agent uses to work with this server.

### `get-documentation`

Retrieves full documentation content for Svelte 5 or SvelteKit sections.

### `list-sections`

Lists all available Svelte 5 and SvelteKit documentation sections in a structured format.

### `playground-link`

Generates a Playground link given a Svelte code snippet.

### `svelte-autofixer`

Given a svelte component or module returns a list of suggestions to fix any issues it has.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Svelte MCP to Claude Code

Run this in your terminal:

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

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Svelte MCP to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=svelte-2&config=eyJ1cmwiOiJodHRwczovL21jcC5zdmVsdGUuZGV2L21jcCJ9)

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

### Add Svelte MCP to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

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

### Add Svelte MCP to Codex

Run this in your terminal:

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

Or add it to `~/.codex/config.toml`:

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

If the server uses OAuth, sign in with `codex mcp login svelte-2`.

### Add Svelte MCP to Claude

Add it as a custom connector with this URL:

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

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Svelte MCP to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

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

[Read the installation guide](https://svelte.dev/docs/mcp/overview)

## Sources

Documentation and source code reviewed on 12 November 2026.

- [svelte.dev/docs/ai/tools](https://svelte.dev/docs/ai/tools)
- [svelte.dev/docs/ai/mcp](https://svelte.dev/docs/ai/mcp)
- [svelte.dev/docs/ai/mcp/llms.txt](https://svelte.dev/docs/ai/mcp/llms.txt)
- [svelte.dev/docs/ai/tools/llms.txt](https://svelte.dev/docs/ai/tools/llms.txt)
- [github.com/sveltejs/ai-tools](https://github.com/sveltejs/ai-tools)
