mcp
Svelte MCP
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Deployment
https://mcp.svelte.dev/mcpPackage Details
@sveltejs/mcp
MCP Tools (4/4)
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.
Lists all available Svelte 5 and SvelteKit documentation sections in a structured format. Each section includes a "use_cases" field that describes WHEN this documentation would be useful. You should carefully analyze the use_cases field to determine which sections are relevant for the user's query. The use_cases contain comma-separated keywords describing project types (e.g., "e-commerce", "blog"), features (e.g., "authentication", "forms"), components (e.g., "slider", "modal"), development stages (e.g., "deployment", "testing"), or "always" for fundamental concepts. Match these use_cases against the user's intent - for example, if building an e-commerce site, fetch sections with use_cases containing "e-commerce", "product listings", "shopping cart", etc. If building a slider, look for "slider", "carousel", "animation", etc. Returns sections as "* title: [section_title], use_cases: [use_cases], path: [file_path]". Always run list-sections FIRST for any Svelte query, then analyze ALL use_cases to identify relevant sections, and finally use get_documentation to fetch ALL relevant sections at once.
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.
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
MCP Prompts (1/1)
Use this Prompt to ask for any svelte related task. It will automatically instruct the LLM on how to best use the autofixer and how to query for documentation pages.
MCP Resources (10/175)
svelte://cli/overview.mdproject setup, creating new svelte apps, scaffolding, cli tools, initializing projects
svelte://cli/faq.mdproject setup, initializing new svelte projects, troubleshooting cli installation, package manager configuration
svelte://cli/sv-create.mdproject setup, starting new sveltekit app, initializing project, creating from playground, choosing project template
svelte://cli/sv-add.mdproject setup, adding features to existing projects, integrating tools, testing setup, styling setup, authentication, database setup, deployment adapters
svelte://cli/sv-check.mdcode quality, ci/cd pipelines, error checking, typescript projects, pre-commit hooks, finding unused css, accessibility auditing, production builds
svelte://cli/sv-migrate.mdmigration, upgrading svelte versions, upgrading sveltekit versions, modernizing codebase, svelte 3 to 4, svelte 4 to 5, sveltekit 1 to 2, adopting runes, refactoring deprecated apis
svelte://cli/devtools-json.mddevelopment setup, chrome devtools integration, browser-based editing, local development workflow, debugging setup
svelte://cli/drizzle.mddatabase setup, sql queries, orm integration, data modeling, postgresql, mysql, sqlite, server-side data access, database migrations, type-safe queries
svelte://cli/eslint.mdcode quality, linting, error detection, project setup, code standards, team collaboration, typescript projects
svelte://cli/lucia.mdauthentication, login systems, user management, registration pages, session handling, auth setup