home / mcp / tailwind svelte assistant mcp server
MCP server that assists with builiding sveltekit tailwind apps
Configuration
View docs{
"mcpServers": {
"caullenomdahl-tailwind-svelte-assistant": {
"url": "https://server.smithery.ai/@CaullenOmdahl/tailwind-svelte-assistant/mcp"
}
}
}You set up and run the Tailwind Svelte Assistant MCP Server to access complete SvelteKit and Tailwind CSS documentation through a secure, high-performance MCP endpoint. This server combines authoritative documentation with robust security, fast in-memory access, and clear error handling so you can quickly search, render, and integrate snippets into your projects.
You connect your MCP client to the server using the provided HTTP endpoint or run the server locally in stdio (direct process) mode. In HTTP mode, your client interacts with a remote MCP URL to retrieve full documentation and snippets for SvelteKit and Tailwind CSS. In stdio mode, you launch the server locally and communicate over standard input/output, which is useful for development and embedded integrations. Use the HTTP endpoint for production deployments and the stdio option for local development or constrained environments.
Prerequisites you need before installation: Node.js 20+ for ES modules support, npm or yarn, and Git for cloning or managing dependencies.
Option 1 โ Install via Smithery (recommended):
npx -y @smithery/cli install @CaullenOmdahl/tailwind-svelte-assistant --client claudeThis installs the MCP server, configures it for the Claude Desktop client, and sets up all required dependencies.
Option 2 โ Install via direct URL (for MCP clients that support a remote URL):
https://server.smithery.ai/@CaullenOmdahl/tailwind-svelte-assistant/mcpAdd this to your MCP client configuration to connect via HTTP transport.
{
"mcpServers": {
"tw_svelte_assistant": {
"url": "https://server.smithery.ai/@CaullenOmdahl/tailwind-svelte-assistant/mcp",
"transport": "http"
}
}
}The server supports secure defaults and can be customized through the ServerConfig interface. Typical options include file size limits, cache duration, and content base paths. Use the following example as a guide to configure your environment. In most cases you can start with the defaults and adjust only what you need.
const CONFIG = {
maxFileSize: 3 * 1024 * 1024, // 3MB max file size for full docs
cacheTimeout: 5 * 60 * 1000, // 5 minutes cache timeout
contentBasePath: './content',
svelteFullDocsPath: './content/docs/svelte-sveltekit-full.txt',
tailwindFullDocsPath: './content/docs/tailwind-docs-full.txt',
// ... other paths
};Documentation updates are handled automatically with a script that downloads and updates the full Svelte and Tailwind docs and regenerates content.
Security features include input validation, path sanitization, strict length checks, and audit logging to monitor for anomalies. The server uses an in-memory LRU cache to speed up responses for frequently requested content and enforces file size limits to prevent resource exhaustion.
A set of tools and endpoints provide complete documentation access, search capabilities, and component snippets. Access tools to fetch complete docs, search within docs, or retrieve snippets as described in the tooling section.
Fetch complete Svelte & SvelteKit documentation (1MB, 100% coverage) in a single response.
Fetch complete Tailwind CSS documentation (2.1MB, 100% coverage) including all 249 files.
Search within Svelte documentation with a query and optional limit, returning matching sections.
Search within Tailwind documentation with a query and optional limit.
Fetch a Svelte component snippet by category and name.
List available snippet categories.
List all snippets within a specific category.
Retrieve a specific SvelteKit topic (legacy access).
Retrieve specific Tailwind information (legacy access).
List available Tailwind topics (legacy access).