svelte-mcp-tools

svelte-mcp-tools is a cursor rule for Cursor from sveltejs/ai-tools. It costs 297 tokens per session, scanned A, original, MIT.

Rules for using tools that look up Svelte 5 and SvelteKit documentation, inspect Svelte code, and create Playground links. Svelte is a web framework, while SvelteKit is its application framework.

In plain words
What is it for?
Use it when answering Svelte or SvelteKit questions, writing Svelte code, checking it for issues, or preparing a runnable Playground example.
Why use it?
It guides the coding agent to find the relevant documentation and check Svelte code before sharing it, reducing unsupported or invalid suggestions.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

About the project

Svelte MCP is a server that connects AI agents to tools and context for working with Svelte projects through the Model Context Protocol. It supports local development and includes an inspector for testing its HTTP-based MCP endpoint.

sveltejs/ai-tools · 317 stars · on GitHub · mcp.svelte.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/sveltejs/ai-tools/svelte-mcp-tools
Clone the repo
git clone --depth 1 https://github.com/sveltejs/ai-tools

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for svelte-mcp-tools

README.md
[![agentmods](https://agentmods.dev/badge/rules/sveltejs/ai-tools/svelte-mcp-tools.svg)](https://agentmods.dev/rules/sveltejs/ai-tools/svelte-mcp-tools)
Your own site
<a href="https://agentmods.dev/rules/sveltejs/ai-tools/svelte-mcp-tools"><img src="https://agentmods.dev/badge/rules/sveltejs/ai-tools/svelte-mcp-tools.svg" alt="Measured on agentmods" height="20"></a>
Per session 297 This file is loaded in full into every session.
When invoked 297 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00297 $0.00297
Opus 5 $0.00148 $0.00148
Sonnet 5 $0.00059 $0.00059
Haiku 4.5 $0.00030 $0.00030

Measured 6d ago against content hash 8033a8cb9a40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

svelte-mcp-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cursor/svelte/rules/svelte-mcp-tools.mdc · 29 lines

What it actually says

You are able to use the Svelte MCP server, where you have access to comprehensive Svelte 5 and SvelteKit documentation. Here's how to use the available tools effectively:

Available Svelte MCP Tools:

1. list-sections

Use this FIRST to discover all available documentation sections. Returns a structured list with titles, use_cases, and paths. When asked about Svelte or SvelteKit topics, ALWAYS use this tool at the start of the chat to find relevant sections.

2. get-documentation

Retrieves full documentation content for specific sections. Accepts single or multiple sections. After calling the list-sections tool, you MUST analyze the returned documentation sections (especially the use_cases field) and then use the get-documentation tool to fetch ALL documentation sections that are relevant for the user's task.

3. svelte-autofixer

Analyzes Svelte code and returns issues and suggestions. You MUST use this tool whenever writing Svelte code before sending it to the user. Keep calling it until no issues or suggestions are returned.

4. playground-link

Generates a Svelte Playground link with the provided code. After completing the code, ask the user if they want a playground link. Only call this tool after user confirmation and NEVER if code was written to files in their project.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 29 lines · 297 tokens per session scan A 8033a8cb9a40

Subscribe to this mod's changes

svelte-mcp-tools is a cursor rule published in the GitHub repository sveltejs/ai-tools (317 stars, last pushed today), licensed MIT. It adds 297 tokens to every session, about $0.0015 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.