Svelte MCP

dev.svelte由 svelte.dev 发布官方发布者v0.1.30更新于 Nov 5, 2026

The official Svelte MCP server providing docs and autofixing tools for Svelte development

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

官方 Svelte MCP 服务器,让助手查询 Svelte 5 与 SvelteKit 文档、获取代码修复建议并生成 Playground 链接。

可以做什么
  • 列出并检索 Svelte 5 与 SvelteKit 文档章节,可按标题或文件路径查找,并附带适用场景说明
  • 检查 Svelte 组件或模块并返回问题修复建议
  • 根据代码片段生成 Svelte Playground 链接,方便用户在浏览器中试用
适用场景
适合助手编写、审查或调试 Svelte 5 与 SvelteKit 代码时使用,以便依据官方文档作答,并在交付代码前先做检查。
运行要求
可作为远程端点 mcp.svelte.dev 使用,也可通过 npx @sveltejs/mcp(需 Node.js)或安装后本地运行。未声明任何认证、环境变量或请求头。
安装前请注意
服务器指令要求助手在所有 Svelte 工作中使用它并在修复后重复调用自动修复工具,这属于建议而非必须遵守的规则。Playground 链接会把代码片段发送到 Svelte 的 Playground 服务,请勿包含密钥或私有代码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Svelte MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.svelte%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "svelte": {
      "type": "http",
      "url": "https://mcp.svelte.dev/mcp"
    }
  }
}

README

@sveltejs/mcp

The CLI version of the Svelte MCP.

You can run it directly with

bash
npx @sveltejs/mcp

or install it and then run it

bash
pnpm i @sveltejs/mcppnpm svelte-mcp

来源:packages/mcp-stdio/README.md,提交 a5a92c6

工具

4

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 f

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.

输入参数section必填

list-sections

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 stag

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.

无需输入参数。

svelte-autofixer

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

输入参数code必填asyncfilenamedesired_svelte_version必填

版本历史

4
  1. v0.1.30最新Nov 4, 2026
  2. v0.1.28Oct 26, 2026
  3. v0.1.27Oct 19, 2026
  4. v0.1.26Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分