Skip to content
Temp edited this page Dec 6, 2025 · 7 revisions

SQLite MCP Server Wiki

Last Updated: December 6, 2025 - Production/Stable v2.6.4

Docker Pulls License Version Status Type Checking GitHub Stars


πŸ€– Can't find what you're looking for? Try our AI-Powered Wiki Search - Ask questions in natural language and get instant answers with source attribution. Example: "How do I prevent SQL injection attacks?"


πŸ” Overview

The SQLite MCP Server transforms SQLite into a powerful, AI-ready database engine. It combines standard relational operations with advanced analytics, text and vector search, geospatial capabilities, and intelligent workflow automation. By layering business intelligence tools, semantic resources, and guided prompts on top of SQLite, it enables both developers and AI assistants to interact with data more naturally and effectively.

This makes it not just a database interface, but a workflow-aware assistant for developers and AI systems.


πŸ†• What's New in v2.6.4

πŸŽ›οΈ Tool Filtering - Selectively enable/disable tools via SQLITE_MCP_TOOL_FILTER environment variable:

  • Address MCP client tool limits (Windsurf's 100-tool limit, Cursor stability)
  • Reduce token overhead by exposing only needed tools
  • Group-based filtering (-vector, -stats) and individual tool control (+vacuum_database)

See Tool Filtering for complete documentation and Changelog for version history.


πŸ“‹ Wiki Navigation

πŸš€ Getting Started

🎯 Core Features

πŸ” Advanced Features

βš™οΈ Configuration

  • Tool-Filtering - πŸ†• v2.6.4: Selectively enable/disable tools for client compatibility

πŸ€– Intelligence & Automation

πŸ“š Usage & Support


⭐ Key Features Summary

73 Total Tools Across 14 Categories (all tested and verified βœ…):

  • 🎯 JSON Helper Tools (6) - v2.6.0+: Parameter serialization, auto-normalization, JSONB binary storage
  • πŸ“Š Core Database (15) - Essential CRUD operations, schema management, and database administration
  • πŸ“ Advanced Text Processing (8) - Regex, fuzzy matching, phonetic, similarity, normalization, validation
  • πŸ“ˆ Statistical Analysis (8) - Descriptive stats, percentiles, time series analysis
  • πŸ” Full-Text Search (3) - FTS5 search, indexing, and content management
  • πŸ’Ύ Backup & Restore (5) - Database backup, restore, and migration tools
  • βš™οΈ PRAGMA Operations (5) - Database configuration and optimization
  • πŸ“‹ Virtual Tables (6) - CSV import/export and virtual table management
  • πŸ“Š Enhanced Virtual Tables (4) - Smart CSV/JSON import with automatic schema inference
  • 🧠 Semantic/Vector Search (6) - Embeddings and similarity search
  • 🌍 Geospatial (SpatiaLite) (7) - Spatial data analysis and operations
  • ⚑ Performance Optimization (4) - Vector indexing and ANN search optimization
  • πŸ€– MCP Resources (7) - Dynamic database meta-awareness resources
  • πŸ”’ Security & Validation (5) - SQL injection protection and JSON validation

πŸŽ›οΈ Tool Filtering (v2.6.4+)

Reduce tool count for MCP clients with limits:

# Reduce to ~40 tools (Windsurf-compatible)
SQLITE_MCP_TOOL_FILTER="-vector,-stats,-spatial,-text"

# Read-only mode
SQLITE_MCP_TOOL_FILTER="-write_query,-create_table"

# Core + JSON only (~14 tools)
SQLITE_MCP_TOOL_FILTER="-fts,-vector,-virtual,-spatial,-text,-stats,-admin,-misc"

See Tool Filtering for complete documentation.


πŸš€ Quick Try

Run instantly with Docker (creates a project-local database):

docker run -i --rm \
  -v $(pwd):/workspace \
  writenotenow/sqlite-mcp-server:latest \
  --db-path /workspace/sqlite_mcp.db

With tool filtering for Windsurf:

docker run -i --rm \
  -e SQLITE_MCP_TOOL_FILTER="-vector,-stats,-spatial,-text" \
  -v $(pwd):/workspace \
  writenotenow/sqlite-mcp-server:latest \
  --db-path /workspace/sqlite_mcp.db

πŸ“š Additional Resources


πŸ“ Note: MCP Resources (7) and Prompts (7) are separate from the tool count - they provide metadata and workflow guidance but don't count toward the 73-tool limit.

πŸŽ›οΈ Tool Filtering: The server exposes 73 tools by default. Use SQLITE_MCP_TOOL_FILTER to reduce tool count for clients with limits. See Tool Filtering for details.

Clone this wiki locally