npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcpflow.io/mcp-mcp-svelte-docs

v1.0.2

Published

🔍 MCP 服务器,可让您使用内置缓存搜索和访问 Svelte 文档。

Downloads

7

Readme

mcp-svelte-docs

此包由 MCPFlow 打包并发布到npm仓库。

🔍 MCP 服务器,可让您使用内置缓存搜索和访问 Svelte 文档。

安装与使用

直接使用npx运行:

npx @mcpflow.io/mcp-mcp-svelte-docs

或者先安装后使用:

# 安装
npm install @mcpflow.io/mcp-mcp-svelte-docs

# 使用
npx @mcpflow.io/mcp-mcp-svelte-docs

使用方法

请参考原始仓库的使用说明。

工具函数

search_docs

参数:

原始信息

原始README

mcp-svelte-docs

A Model Context Protocol (MCP) server that provides efficient access to Svelte documentation with advanced caching, search capabilities, and optimised content delivery. This server integrates directly with Svelte's official documentation, offering both full and compressed variants suitable for different LLM context window sizes.

Features

  • 📚 Complete Svelte documentation access through MCP Resources
  • 🔍 Advanced search capabilities:
    • Document type filtering (API, Tutorial, Example, Error)
    • Section hierarchy awareness
    • Intelligent relevance scoring based on:
      • Term frequency
      • Section importance
      • Document type relevance
      • Exact phrase matching
    • Context-aware result excerpts
    • Related search suggestions
  • 💾 Efficient caching with LibSQL
  • 🔄 Automatic content freshness checks
  • 📦 Support for package-specific documentation (Svelte, Kit, CLI)
  • 📏 Smart content chunking for large documents
  • 🗜️ Compressed variants for smaller context windows
  • 🏗️ Built on the Model Context Protocol

Configuration

This server requires configuration through your MCP client. Here are examples for different environments:

Cline Configuration

Add this to your Cline MCP settings:

{
	"mcpServers": {
		"svelte-docs": {
			"command": "npx",
			"args": ["-y", "mcp-svelte-docs"],
			"env": {
				"LIBSQL_URL": "file:local.db",
				"LIBSQL_AUTH_TOKEN": "your-auth-token-if-using-remote-db"
			}
		}
	}
}

Claude Desktop with WSL Configuration

For WSL environments, add this to your Claude Desktop configuration:

{
	"mcpServers": {
		"svelte-docs": {
			"command": "wsl.exe",
			"args": [
				"bash",
				"-c",
				"LIBSQL_URL=file:local.db LIBSQL_AUTH_TOKEN=your-token npx -y mcp-svelte-docs"
			]
		}
	}
}

Environment Variables

The server supports the following environment variables:

  • LIBSQL_URL (optional): URL for the LibSQL database. Defaults to file:local.db
  • LIBSQL_AUTH_TOKEN (optional): Auth token for remote LibSQL database

API

The server implements both MCP Resources and Tools:

Resources

Access documentation through these URIs:

  • svelte-docs://docs/llms.txt - Documentation index
  • svelte-docs://docs/llms-full.txt - Complete documentation
  • svelte-docs://docs/llms-small.txt - Compressed documentation
  • svelte-docs://docs/{package}/llms.txt - Package-specific documentation
    • Supported packages: svelte, kit, cli

Tools

search_docs

Enhanced search functionality with advanced filtering and context awareness.

Parameters:

  • query (string, required): Search keywords or natural language query
  • doc_type (string, optional): Filter by documentation type
    • Values: 'api', 'tutorial', 'example', 'error', 'all'
    • Default: 'all'
  • context (number, optional): Number of surrounding paragraphs (0-3)
    • Default: 1
  • include_hierarchy (boolean, optional): Include section hierarchy
    • Default: true

Example Usage:

// API Reference Search
{
  "query": "bind:value directive",
  "doc_type": "api",
  "context": 1
}

// Tutorial Search
{
  "query": "routing sveltekit",
  "doc_type": "tutorial",
  "context": 2,
  "include_hierarchy": true
}

get_next_chunk

Retrieve subsequent chunks of large documents.

Parameters:

  • uri (string, required): Document URI
  • chunk_number (number, required): Chunk number to retrieve (1-based)

Development

Setup

  1. Clone the repository
  2. Install dependencies:
pnpm install
  1. Build the project:
pnpm build
  1. Run in development mode:
pnpm dev

Publishing

  1. Update version in package.json
  2. Build the project:
pnpm build
  1. Publish to npm:
pnpm publish

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see the LICENSE file for details.

Acknowledgments