SvelteLS.MCP

SvelteLS.MCP

An MCP server that wraps the Svelte Language Server to provide IDE-like tools for Claude Code and other MCP clients. It enables advanced Svelte development features including symbol navigation, diagnostics, refactoring, and component-specific analysis.

Category
Visit Server

README

SvelteLS.MCP

MCP server that wraps the Svelte Language Server, exposing its LSP capabilities as MCP tools for Claude Code.

Architecture

Claude Code <--MCP/stdio--> SvelteLS.MCP <--LSP/stdio--> svelteserver

Setup

npm install
npm run build

Usage

node dist/index.js [path-to-svelte-project]

The project path is optional. If omitted, use the load_project tool at runtime to set it.

Claude Code MCP config

Windows

{
  "mcpServers": {
    "svelte-ls": {
      "command": "cmd",
      "args": ["/c", "node", "F:\\Shared\\SvelteLS.MCP\\dist\\index.js", "F:\\path\\to\\svelte\\project"]
    }
  }
}

macOS / Linux

{
  "mcpServers": {
    "svelte-ls": {
      "command": "node",
      "args": ["/path/to/SvelteLS.MCP/dist/index.js", "/path/to/svelte/project"]
    }
  }
}

Tools

Navigation

  • find_definition - Go to definition of a symbol
  • find_references - Find all references to a symbol
  • get_hover - Get hover documentation and type info
  • go_to_implementation - Find implementations of an interface/abstract method
  • go_to_type_definition - Jump to the type definition of a symbol
  • find_document_symbols - List all symbols in a file
  • find_workspace_symbols - Search symbols across the workspace

Diagnostics

  • get_diagnostics - Get errors, warnings, and diagnostics for a file

Editing

  • rename_symbol - Rename a symbol across the workspace
  • format_document - Format a file or line range

Code Actions

  • get_code_actions - List available quick fixes and refactorings
  • apply_code_action - Apply a code action by title

IntelliSense

  • get_completion - Get completion suggestions at a position
  • get_signature_help - Get method signature overloads and parameter info

Call Hierarchy

  • incoming_calls - Find all callers of a function/method
  • outgoing_calls - Find all calls from a function/method

Lifecycle

  • load_project - Load a Svelte project by its root directory
  • restart_lsp - Restart the Svelte language server

Svelte-specific

  • get_compiled_code - Get compiled JS/CSS output for a Svelte component
  • get_component_references - Find all usages of a Svelte component
  • get_file_references - Find all files that import a given file

Environment Variables

  • SVELTELS_TIMEOUT - LSP request timeout in ms (default: 30000)
  • SVELTELS_SERVER_PATH - Override path to the svelteserver entry script

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured