svelte-llm-mcp

MCP.Pizza Chef: khromov

Assistants often answer Svelte questions out of habits picked up from older versions. This service keeps current Svelte 5 and SvelteKit documentation available at a web address your assistant can read while it writes, so the answer matches today's way of doing things rather than a two-year-old blog post. The same documentation is also published as plain text files you can hand to any model. Adding it means pasting one address into your app's settings.

Coding

Use This MCP server To

Get Svelte answers that match the current version Check the right syntax before I write a component Look up a SvelteKit feature without leaving my editor Rewrite older Svelte code in the modern style Confirm how data loading works in SvelteKit today

README

svelte-llm

LLM presets and MCP for Svelte 5 and SvelteKit. Visit the site at svelte-llm.stanislav.garden.

MCP Endpoint

This service provides an MCP (Model Context Protocol) endpoint for use with AI assistants:

  • Streamable HTTP (Claude Desktop and most other clients): https://svelte-llm.stanislav.garden/mcp/mcp
  • SSE (Older clients that don't support Streamable): https://svelte-llm.stanislav.garden/mcp/sse

Setup

  • Create a .env file with the content:
    GITHUB_TOKEN=
    DB_URL=postgres://admin:admin@localhost:5432/db
    
  • Create a Classic GitHub token. It must have public_repo permissions.
  • Enter this in the .env file.
  • Run docker-compose up
  • Run:
nvm use
npm i
npm run dev

You can also visit http://localhost:5173/admin to see all the "hidden" endpoints (default password = "secret")

Debug MCP

NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_OPTIONS="--insecure-http-parser" npx @modelcontextprotocol/inspector

http://127.0.0.1:6274

You can also use GitHub Copilot in Agent mode to try the agent locally, see .vscode/mcp.json for info on how that works.

Misc

OG image from https://dynamic-og-image-generator.vercel.app/

svelte-llm-mcp FAQ

Which apps does this work in?
Claude Desktop and most current apps use the streamable address; older apps that need the alternative style have a second address available.
Do I need a key?
Not for the hosted address. The GitHub token in the readme is only needed if you run your own copy of the service.
Can I use this to get Svelte 5 answers instead of old ones?
Yes — that is the reason it exists. It serves the current Svelte 5 and SvelteKit documentation on request.
How hard is the setup?
Very easy. You paste one web address into your app's settings; there is nothing to download or run locally.
Is there an option without any setup at all?
Yes. The same documentation is published as plain text files on the project's website that you can paste into any chat.
Does it cover SvelteKit as well as Svelte?
Yes, both Svelte 5 and SvelteKit documentation are included.