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.
git clone [email protected]:shinokada/flowbite-svelte-mcp.git
cd flowbite-svelte-mcp
pnpm install
# Build the project (TypeScript compilation + data copy)
pnpm run build
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).
Locate your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonEdit 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"]
}
}
}
Restart Claude Desktop.
Test it! Ask Claude:
| 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 |
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
# 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
tmcp (TypeScript MCP SDK)https://flowbite-svelte.com/llm/
ā (copy:llm script)
src/data/llm/
ā (build ā postbuild)
build/data/llm/
ā (runtime)
MCP Tools ā Claude/Client
We store documentation files locally (instead of fetching remotely) for:
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.
Solution: Run pnpm install to ensure all dependencies are installed.
Solutions:
claude_desktop_config.json is correct and absoluteContributions are welcome! Please feel free to submit a Pull Request.