wsqlite-mcp
This MCP server turns AI agents into WSQLite architects by providing expert patterns, validation, and project scaffolding.
Search production-ready SQLite patterns (CRUD, async, batch, transactions, relationships, query builder, FTS5, migrations, pools, soft delete, pagination).
Retrieve copy-pasteable architect blueprints for WSQLite features.
Get an expert manual for building high-performance SQLite-backed systems.
Deploy a professional WSQLite project structure (config/, models/, repositories/, migrations/, main.py).
Validate Pydantic model definitions for WSQLite compatibility (primary key, imports, FTS5 config).
Generate migration files from Pydantic model definitions.
Manage the server via CLI: run (stdio), start/stop (SSE), config.
Provides tools for designing, searching, and deploying SQLite-backed service architectures, including patterns for CRUD, transactions, FTS5, migrations, connection pooling, and project scaffolding.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wsqlite-mcp search for a pattern for async batch inserts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π₯ wsqlite-mcp
Transform your AI Agents into expert WSQLite Architects.
wsqlite-mcp is a professional Model Context Protocol (MCP) server that bridges the gap between AI Agents (Claude, Gemini, OpenCode) and WSQLite. It empowers agents to search, design, and deploy high-performance SQLite-backed services following strict industry-standard patterns.
β¨ Key Features
π Expert Pattern Catalog: Query production-ready patterns across all WSQLite features (CRUD, Async, Batch, Transactions, Relationships, Query Builder, FTS5, Migrations, Pools, Soft Delete, Pagination).
ποΈ Strict Architecture Enforcement: Guides AI to output clean code using mandatory
config/,models/,repositories/,migrations/, andmain.pyfolder structures.π Architect's Manual: Built-in expertise for Monolith-to-SQLite refactoring, schema design, connection pooling, and atomicity patterns.
π» Unified CLI: Manage your MCP service with simple commands:
run,start,stop, andconfig.π‘οΈ Privacy First: 100% local execution via
stdioorSSE.
Related MCP server: MCP Database Manager
π Quick Start
1. Installation
Clone the repository and run the automated installer, or install via pip:
pip install -e .2. Integration
Get your agent-specific configuration block and installation commands by running:
wsqlite-mcp configThe CLI will dynamically detect your Python environment and provide exact copy-paste commands for Gemini CLI (e.g. gemini mcp add ...) and JSON blocks for Claude Desktop.
π οΈ CLI Usage
Command | Description |
| Start the server in |
| Start as an SSE server in the background. |
| Stop the background server. |
| Generate and save JSON config to |
| Show JSON configuration in stdout (no file creation). |
| Show available tools and commands. |
π οΈ MCP Tools
Tool | Description |
| Copy-pasteable expert code for models, CRUD, transactions, FTS5, migrations, pools, and more. |
| Search the official/community catalog for production-ready SQLite patterns. |
| Deploy a professional WSQLite project structure ( |
| Expert manual for building high-performance SQLite-backed systems. |
π Project Structure
src/wsqlite_mcp/: Core server logic and tools.src/wsqlite_mcp/catalog.py: Pattern catalog synchronization with local fallbacks.src/wsqlite_mcp/templates.py: Professional boilerplate definitions.examples/: Sample implementations and use cases.
π License
MIT License - Crafted with β€οΈ by William Rodriguez (wisrovi).
π€ Autor & AfiliaciΓ³n Oficial
William Steve Rodriguez Villamizar (Wisrovi)
Cargo: Principal AI Engineer & Applied AI Solutions Architect | Scientific Researcher
π§ Email: wisrovi.rodriguez@gmail.com
π Portal Oficial: wisrovi.dev
πΌ LinkedIn: wisrovi-rodriguez
π ORCID: 0009-0005-0710-1861
π¦ PyPI: pypi.org/user/wisrovi/
π GitHub: @wisrovi
Available Tools
6 toolsdeploy_wsqlite_scaffoldingC
Deploys a professional WSQLite project structure following wisrovi standards.
Inputs: target_dir (required), project_name, scaffold_type. Returns: result
generate_migration_from_modelsC
Generate a migration file from Pydantic model definitions.
Parses model definitions and creates a migration that creates tables matching the model schemas. Returns the migration code as a string.
Inputs: models_code (required), db_path, migration_name. Returns: result
get_wsqlite_architect_blueprintsA
Complete reference with read/write/update examples for every WSQLite feature.
Inputs: no named parameters. Returns: result
get_wsqlite_architect_manualB
Expert manual for building high-performance SQLite-backed systems (wisrovi standard).
Inputs: no named parameters. Returns: result
search_wsqlite_patternB
Search for production-ready SQLite patterns in official catalog.
Inputs: query (required). Returns: result
validate_model_schemaA
Validate a Pydantic model definition for WSQLite compatibility.
Checks for common issues:
Missing primary key
Invalid field descriptions
Missing required imports
FTS5 configuration correctness
Inputs: model_code (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
Most tools have distinct purposes: validation, migration generation, pattern search, scaffolding deployment, and reference. However, 'get_wsqlite_architect_blueprints' and 'get_wsqlite_architect_manual' have overlapping descriptions as reference materials, causing slight ambiguity.
Tool names follow a consistent verb_noun pattern in snake_case (validate, generate, search, deploy, get). The 'generate_migration_from_models' is slightly longer than others, and the two 'get_wsqlite_architect_*' tools share a prefix, but overall the naming is predictable and readable.
Six tools is well-scoped for a development-oriented server, covering validation, migration, search, scaffolding, and documentation. Each tool fills a clear role without redundancy.
The toolset covers the core workflow of model validation and migration generation, plus project scaffolding and reference lookup. Missing tools for applying migrations or direct model CRUD, but these gaps are not critical for a development assistant.
Maintenance
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for managing and searching multi-tenant knowledge bases backed by SQLite with FTS5, enabling AI agents to persist and retrieve content via full-text search.132MIT
- FlicenseNot gradedqualityDmaintenanceSelf-documenting MCP server enabling AI agents to autonomously create, manage, and query SQLite databases with enforced metadata requirements for discoverability.-
- AlicenseNot gradedqualityDmaintenanceLocal MCP server for persistent, searchable agent memory using SQLite FTS5, replacing flat MEMORY.md files with efficient full-text search and workspace context caching.GPL 3.0
- FlicenseNot gradedqualityDmaintenanceA secure MCP server that exposes a SQLite database to AI agents with Role-Based Access Control, supporting authentication, customer/order/user management, and audit logging.-