Feedback

Basic information

Transport
streamable-http
Runtime
TypeScript
Version
1.0.0
Category
Author
sveltejs
Quality
10
Views
1.1K

About Svelte MCP Server

Access Svelte documentation, code analysis, and autofix tools for Svelte 5 & SvelteKit. Improve projects with smart migration and playground links.

Svelte is a MCP server in the Databases category listed in the AddMCP.net directory, published by sveltejs. It exposes 4 tools, including get-documentation, list-sections, playground-link, svelte-autofixer. Supported transport: streamable-http. Runtime: TypeScript. License: MIT. The repository has 181 GitHub stars. Source code is hosted on github.com. Related topics: databases, developer-tools, mcp, official, server.

Connection details

https://mcp.svelte.dev/mcp

Setup

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

Svelte MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "svelte": {
            "url": "https://mcp.svelte.dev/mcp",
            "env": null
        }
    }
}

Svelte MCP Server tools

  • get-documentation — Retrieves full documentation content for Svelte 5 or SvelteKit sections. Supports flexible search by title (e.g., "$state", "routing") or file path (e.g., "cli/overview"). Can accept a single section name or an array of sections. Before running this, make sure to analyze the users query, as well as the output from list-sections (which should be called first). Then ask for ALL relevant sections the user might require. For example, if the user asks to build anything interactive, you will need to fetch all relevant runes, and so on. Before calling this tool, try to implement Svelte components using your own knowledge and the `svelte-autofixer` tool, since calling this tool is token intensive.
  • list-sections — $2f
  • playground-link — Generates a Playground link given a Svelte code snippet. Once you have the final version of the code you want to send to the user, ALWAYS ask the user if it wants a playground link to allow it to quickly check the code in the playground before calling this tool. NEVER use this tool if you have written the component to a file in the user project. The playground accept multiple files so if are importing from other files just include them all at the root level.
  • svelte-autofixer — Given a svelte component or module returns a list of suggestions to fix any issues it has. This tool MUST be used whenever the user is asking to write svelte code before sending the code back to the user

Overview

What is Svelte?

The official Svelte MCP server provides a Model Context Protocol interface for the Svelte documentation ecosystem, supporting embeddings via a Voyage API key.

How to use Svelte?

Install dependencies with pnpm i, copy .env.example to .env, set VOYAGE_API_KEY, and run pnpm dev. For local inspection use pnpm run inspect with Streamable HTTP transport at http://localhost:5173/mcp.

Key features of Svelte

  • Official Svelte MCP server
  • Supports embeddings with Voyage API key
  • Uses Streamable HTTP transport
  • Includes a database inspector via Drizzle Studio
  • Elicitation and sampling available on the same POST stream

Frequently asked questions

1 What transport does Svelte use?

Streamable HTTP.

2 How do I set up embeddings for Svelte?

Set the VOYAGE_API_KEY environment variable in .env

3 Does Svelte support `server.log` or `list-changed` notifications?

No – the SSE channel is shut down immediately to prevent timeout logs on Vercel, so these notifications are not sent.

4 What runtime dependencies does Svelte require?

Node.js and pnpm for development; the server runs locally via pnpm dev.

5 Where can I inspect the server locally?

Use the MCP inspector (pnpm run inspect) at http://localhost:6274/ with the URL http://localhost:5173/mcp.

Videos

Tutorials, guides, and showcases related to Svelte MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬