Price Per TokenPrice Per Token
Tailwind Svelte Assistant

Tailwind Svelte Assistant

by caullenomdahl

GitHub 8 1,848 uses Remote
0

About

Tailwind Svelte Assistant provides complete LLM-optimized documentation and code snippets for SvelteKit and Tailwind CSS frontend development. It indexes 100% of official documentation including 1.04 MB of Svelte/SvelteKit content and 2.1 MB of Tailwind CSS docs across 249 files, enabling contextual search and on-demand retrieval. Key features include: - Intelligent full-text search within comprehensive framework documentation with contextual results - Ready-to-use Svelte component snippets pre-configured with Tailwind CSS utility classes - LRU content caching with configurable timeouts and async operations for high-performance retrieval - Security-hardened file operations with path traversal protection, input sanitization, and audit logging - TypeScript-native implementation with modular architecture and comprehensive error classification

README

Tailwind Svelte Assistant MCP Server

[](https://smithery.ai/server/@CaullenOmdahl/tailwind-svelte-assistant)

A secure, high-performance Model Context Protocol (MCP) server that provides complete SvelteKit and Tailwind CSS documentation (100% coverage) and code snippets with enhanced security, proper TypeScript implementation, and comprehensive error handling.

✨ What's New (v0.1.1)

📚 Complete Documentation Coverage

  • 100% Svelte/SvelteKit Coverage: Official LLM-optimized documentation (1.04 MB)
  • 100% Tailwind CSS Coverage: Complete documentation via Repomix extraction (2.1 MB, 249 files)
  • Intelligent Search: Search within complete documentation with context
  • 12.5x-25x Improvement: From 4-8% coverage to 100% coverage
  • 🚀 Key Improvements (v0.1.1)

    🔒 Security Enhancements

  • Path Traversal Protection: Comprehensive input sanitization prevents directory traversal attacks
  • Input Validation: Strict parameter validation with pattern matching and length limits
  • Secure File Operations: Bounded file access with path validation and size limits
  • Audit Logging: Structured security event logging for monitoring
  • 🏗️ Architecture Improvements

  • Modular Design: Separated concerns into dedicated services and utilities
  • TypeScript Excellence: Full type safety with proper interfaces and no any types
  • ES Modules: Modern JavaScript module system with proper imports
  • Error Handling: Comprehensive error classification and safe error messaging
  • ⚡ Performance Optimizations

  • Content Caching: LRU cache with configurable timeout for improved response times
  • File Size Limits: Prevents resource exhaustion with configurable limits
  • Async Operations: Non-blocking file operations for better concurrency
  • Memory Management: Automatic cache cleanup and garbage collection
  • 📁 Project Structure

    src/
    ├── index.ts                 # Main server with security hardening
    ├── types.ts                 # TypeScript type definitions
    ├── services/
    │   └── fileService.ts       # Secure file operations with caching
    └── utils/
        ├── security.ts          # Input validation and path sanitization
        └── errorHandler.ts      # Comprehensive error handling
    

    🚀 Quick Start

    Install via Smithery (Recommended)

    The easiest way to install this MCP server is through Smithery:

    npx -y @smithery/cli install @CaullenOmdahl/tailwind-svelte-assistant --client claude
    

    This will automatically:

  • Install the server
  • Configure it for Claude Desktop
  • Set up all required dependencies
  • Install via Direct URL

    For other MCP clients, use the direct server URL:

    https://server.smithery.ai/@CaullenOmdahl/tailwind-svelte-assistant/mcp
    

    Add this to your MCP client configuration:

    {
      "mcpServers": {
        "tailwind-svelte-assistant": {
          "url": "https://server.smithery.ai/@CaullenOmdahl/tailwind-svelte-assistant/mcp",
          "transport": "http"
        }
      }
    }
    

    🛠️ Manual Installation & Setup

    Prerequisites

  • Node.js 20+ (required for ES modules support and dependencies)
  • npm or yarn
  • Git (for cloning repository)
  • Install Dependencies

    npm install
    

    Build the Server

    npm run build
    

    Development Mode

    npm run watch
    

    🔧 Configuration

    The server uses secure defaults but can be configured via the ServerConfig interface:

    const CONFIG: ServerConfig = {
      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

    Documentation is automatically downloaded and updated:

    # Update all documentation (Svelte + Tailwind)
    npm run update-content
    

    This script:

  • Downloads official Svelte LLM-optimized docs (svelte.dev/llms-full.txt)
  • Extracts complete Tailwind docs from GitHub via Repomix
  • Updates component snippet timestamps
  • Generates content summary
  • Sources:

  • Svelte/SvelteKit: Official LLM-optimized text file (100% coverage)
  • Tailwind CSS: GitHub repository via Repomix extraction (249 MDX files)
  • Snippets: Local curated component examples (43 files)
  • 🛡️ Security Features

    Input Validation

  • Pattern Matching: Only alphanumeric, hyphens, underscores, and dots allowed
  • Length Limits: Configurable maximum input lengths
  • Path Sanitization: Removes directory traversal attempts
  • Bounds Checking: Ensures file access stays within allowed directories
  • Error Handling

  • Safe Error Messages: No sensitive information exposed to clients
  • Structured Logging: JSON-formatted audit logs
  • Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81