Skip to main content
Glama

πŸ”₯ wsqlite-mcp

Version License 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/, and main.py folder 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, and config.

  • πŸ›‘οΈ Privacy First: 100% local execution via stdio or SSE.


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 config

The 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

wsqlite-mcp run

Start the server in stdio mode (default for agents).

wsqlite-mcp start

Start as an SSE server in the background.

wsqlite-mcp stop

Stop the background server.

wsqlite-mcp config

Generate and save JSON config to .agents/wsqlite-mcp.json.

wsqlite-mcp config --print

Show JSON configuration in stdout (no file creation).

wsqlite-mcp help

Show available tools and commands.


πŸ› οΈ MCP Tools

Tool

Description

get_wsqlite_architect_blueprints

Copy-pasteable expert code for models, CRUD, transactions, FTS5, migrations, pools, and more.

search_wsqlite_pattern

Search the official/community catalog for production-ready SQLite patterns.

deploy_wsqlite_scaffolding

Deploy a professional WSQLite project structure (config/, models/, repositories/, migrations/, main.py).

get_wsqlite_architect_manual

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

Available Tools

6 tools
deploy_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

    B3.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Local 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
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      -