Vibeleaderboard
Index / tool

@sveltejs/mcp — Svelte AI Tools

github.com/sveltejs/ai-tools
Visit github.com
Category
Developer Tools
Rank
No. 1153Tools index
Pricing
Open Source
Type
TOOL
Interfaces
MCP
Builder
sveltejs
GitHub
344 stars
Latest release
@sveltejs/mcp@0.1.31
Date

About

The official Svelte Model Context Protocol server, published as a monorepo containing the MCP server, a remote deployment app, plugins, skills, and supporting packages. Development setup uses pnpm and expects a Voyage API key for embeddings support.

What it does

This is the Svelte team's own bridge between coding assistants and the framework. An assistant connected to it can browse the official documentation by section, pull the current text of any section, run its generated components through a static checker that flags common Svelte 5 mistakes, and produce a shareable playground link holding the code. It runs two ways: as a hosted endpoint the Svelte team operates, or as a local command-line program that also exposes the documentation lookup and the checker directly in the terminal.

Why it's ranked here

The case is provenance plus a feedback loop. It lives under the Svelte organisation, is MIT licensed, and ships setup instructions for nine clients, from Claude Code and Cursor to Codex and the GitHub coding agent. The checker matters more than the docs lookup: it gives a model a concrete list of issues to fix and re-check, which plain documentation retrieval does not. Against that, the published package is still pre-1.0 and the hosted version deliberately drops part of the protocol.

What's good

The checker targets specific mistakes models make with newer Svelte, such as importing runes, assigning state inside effects, reaching for stores where runes fit, and using the old class directive. It accepts a target major version of 4 or 5 and an async mode, so advice can match the project. The playground link stores nothing on a server; the code lives in the URL. The hosted setup page states the team does not log, store or inspect submitted code. The local program doubles as a plain terminal tool, useful outside any assistant.

Tradeoffs

The README says the hosted server closes its streaming channel immediately to avoid timeout noise on Vercel, so server logging and list-changed notifications are unavailable there. The server's built-in instructions tell the model it must be used for any Svelte work, which is assertive for a tool your assistant reads. When a tracking hook is wired in, it records the connecting client's name on initialisation. Self-hosting the remote app needs a Voyage API key for embeddings and a database, which is more than a docs server usually asks for.

How to use it well

Use it when an assistant writes Svelte 5 components and you want it to catch its own outdated patterns before you review them. The hosted endpoint is the quick path; the local package suits offline work or teams that prefer code to stay on the machine. Ask the model to run the checker after each component and loop until it reports nothing. It does not cover SvelteKit routing design, testing, or general TypeScript errors, so keep a normal linter and type check in the loop.

Technical notes+

packages/mcp-server/src/mcp/index.ts builds a tmcp McpServer with a Valibot JSON-schema adapter, registers tools, resources and prompts, and calls an optional ctx.custom.track hook on initialize and discover with the client name. packages/mcp-server/src/mcp/handlers/tools/index.ts exports four tools: get_documentation, list_sections, svelte_autofixer and playground_link. packages/mcp-stdio/src/index.ts is a sade CLI (bin svelte-mcp) whose default command attaches a StdioTransport, plus list-sections, get-documentation and svelte-autofixer subcommands; the autofixer treats its argument as a path if it exists on disk, otherwise as code. packages/mcp-server/src/mcp/autofixers/visitors/index.ts types autofixers as zimmerframe visitors over estree and svelte-eslint-parser nodes, re-exporting eight rules including assign-in-effect, imported-runes, use-runes-instead-of-store and class-directive-to-clsx. The root package.json is private and runs vitest; documentation/docs/30-mcp/30-remote-setup.md lists the client configurations.

Observed

License
MIT
Language
TypeScript
Interfaces
MCP server (hosted HTTP endpoint and local stdio) plus a CLI
Packaging
npm package @sveltejs/mcp with a svelte-mcp binary
MCP tools
list-sections, get-documentation, svelte-autofixer, playground-link
Autofixer targets
Svelte major version 4 or 5, optional async mode
Hosted transport limit
Streaming channel closed immediately; no server logging or list-changed notifications (README)
Self-hosting requirement
Voyage API key for embeddings
Test runner
Vitest, declared in the root package.json

Read from README.md, package.json, LICENSE, packages/mcp-stdio/package.json, packages/mcp-stdio/src/index.ts, packages/mcp-server/src/index.ts, packages/mcp-server/src/mcp/index.ts, packages/mcp-server/src/mcp/handlers/tools/index.ts, documentation/docs/30-mcp/40-tools.md, documentation/docs/30-mcp/30-remote-setup.md, packages/mcp-server/src/mcp/autofixers/visitors/index.ts.

Tags

sveltemcpai-agentsdocumentationfrontendtooling

Tech Stack

Node.jsTypeScript

Comments (0)

No comments yet

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.