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

flowbite-svelte-mcp

v0.3.2

Published

MCP server for Flowbite-Svelte documentation (LLM)

Readme

Flowbite-Svelte MCP Server

This is a Model Context Protocol (MCP) server for Flowbite-Svelte documentation.
It exposes tools to find components, query component docs, list components, and do full-text search, via stdio transport.

Features

  • 🔍 Find Components - Search for components by name or category
  • 📚 Get Documentation - Retrieve full component documentation
  • 📋 List All Components - Get a complete list of available components
  • 🔎 Full-Text Search - Search across all documentation

Getting Started

Installation

git clone [email protected]:shinokada/flowbite-svelte-mcp.git
cd flowbite-svelte-mcp
pnpm install

Setup

# Build the project (TypeScript compilation + data copy)
pnpm run build

Usage

This server uses stdio transport, so it's compatible with MCP clients that launch via stdin/stdout (e.g. Claude Desktop, ChatGPT Desktop, MCP Inspector).

Claude Desktop

  1. Locate your configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Edit the file. If it doesn't exist, create it. Add your server configuration:

    {
      "mcpServers": {
        "flowbite-svelte": {
          "command": "node",
          "args": ["/ABSOLUTE/PATH/TO/flowbite-svelte-mcp/build/server.js"]
        }
      }
    }
  3. Restart Claude Desktop.

  4. Test it! Ask Claude:

    • "Search the flowbite-svelte docs for how to use an Accordion, then give me the component details."
    • "How do I use the flowbite-svelte checkbox component?"
    • "What components are available in flowbite-svelte?"

Available Tools

| Tool Name | Description | | ------------------ | ------------------------------------------------------------------ | | findComponent | Find a Flowbite-Svelte component and its documentation path | | getComponentList | Returns a list of all available components with categories | | getComponentDoc | Returns the full documentation (markdown) for a specific component | | searchDocs | Full-text search over all Flowbite-Svelte documentation |

Development

Project Structure

flowbite-svelte-mcp/
├── src/
│   ├── data/
│   │   ├── components.json      # Component registry
│   │   └── llm/                 # Documentation files (generated)
│   ├── tools/                   # MCP tool implementations
│   └── server.ts                # MCP server entry point
├── build/                       # Compiled output (generated)
├── scripts/
│   ├── copyLlmData.ts          # Copy docs from flowbite-svelte.com
│   ├── postbuild.ts            # Copy data to build directory
│   └── generateComponentRegistry.ts
└── package.json

Scripts

# Copy LLM documentation from flowbite-svelte.com.
pnpm run copy:llm

# Generate component registry
pnpm run gen:registry

# Build the project (TypeScript compilation + data copy)
pnpm run build

# Start the server (for manual testing/debugging) (Executed by Claude, rarely by developer)
pnpm run start 

# Testing
pnpm test              # Run all tests
pnpm test:watch        # Run tests in watch mode
pnpm test:coverage     # Run tests with coverage report

# Linting and formatting
pnpm run lint
pnpm run lint:fix
pnpm run format
pnpm run format:check

Technical Details

Architecture

  • Framework: Built with tmcp (TypeScript MCP SDK)
  • Transport: Stdio transport for MCP client communication
  • Schema Validation: Zod with JSON Schema adapter
  • Documentation Source: Local files copied from flowbite-svelte.com

Data Flow

https://flowbite-svelte.com/llm/
          ↓ (copy:llm script)
src/data/llm/
          ↓ (build → postbuild)
build/data/llm/
          ↓ (runtime)
MCP Tools → Claude/Client

Why Local Files?

We store documentation files locally (instead of fetching remotely) for:

  • Performance - No network latency
  • 🔌 Offline Support - Works without internet
  • 🎯 Reliability - No external service dependencies
  • 📦 Self-Contained - Everything bundled together
  • 🔒 Security - Reduces external attack surface and eliminates need for runtime network permissions/calls.

Testing

The project includes a comprehensive test suite using Vitest:

# Run all tests
pnpm test

# Watch mode (auto-rerun on changes)
pnpm test:watch

# Coverage report
pnpm test:coverage

See tests/README.md for more details on the test suite.

Troubleshooting

Build fails with missing modules

Solution: Run pnpm install to ensure all dependencies are installed.

Tools not working in Claude Desktop

Solutions:

  1. Check that the path in claude_desktop_config.json is correct and absolute
  2. Restart Claude Desktop after making configuration changes
  3. Check Claude Desktop logs for errors

Contributing

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

License

MIT

Links


Made with ❤️ for the Flowbite-Svelte community