lolosqltools
Validates, formats, and generates SQL objects following BSG Institute standardization rules, integrated with Claude Code.
README
██╗ ██████╗ ██╗ ██████╗ ███████╗ ██████╗ ██╗ ████████╗ ██████╗ ██████╗ ██╗ ███████╗
██║ ██╔═══██╗██║ ██╔═══██╗██╔════╝██╔═══██╗██║ ╚══██╔══╝██╔═══██╗██╔═══██╗██║ ██╔════╝
██║ ██║ ██║██║ ██║ ██║███████╗██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ███████╗
██║ ██║ ██║██║ ██║ ██║╚════██║██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ╚════██║
███████╗╚██████╔╝███████╗╚██████╔╝███████║╚██████╔╝███████╗ ██║ ╚██████╔╝╚██████╔╝███████╗███████║
╚══════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝
MCP server that validates, formats, and generates SQL objects following BSG Institute standardization rules — integrated with Claude Code.
Tools
| Tool | Description |
|---|---|
validate_object_name |
Validates names for tables, views, SPs, functions, triggers, fields, and constraints |
validate_sql_object |
Full structural validation with compliance score (0–100) |
check_performance_patterns |
Detects anti-patterns: missing TRY/CATCH, SELECT *, implicit cursors, etc. |
check_audit_fields |
Verifies mandatory audit fields (Estado, UsuarioCreacion, FechaCreacion, etc.) |
generate_template |
Generates a complete BSG-compliant SQL template for any object type |
format_sql |
Applies BSG formatting: keyword casing, leading-comma columns, clause indentation |
suggest_alias |
Generates PascalCase-based table aliases with conflict detection |
generate_production_request |
Generates a formatted production deployment request email |
generate_access_request |
Generates a formatted database access request email |
get_rules |
Returns BSG standardization rules filtered by object type and/or topic |
Requirements
- Node.js 18 or higher
- Claude Code (CLI)
Installation
Windows (PowerShell)
- Clone or download this repository
- Run the installer:
.\install.ps1
Custom install path:
.\install.ps1 -InstallPath "D:\tools\lolosqltools"
- Restart Claude Code
Manual installation
npm install
npm run build
Then register the MCP in ~/.claude/.mcp.json:
{
"mcpServers": {
"lolosqltools": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
Restart Claude Code.
CLAUDE.md instructions
Add this block to your ~/.claude/CLAUDE.md to make Claude use LOLOSQLTOOLS automatically:
## LOLOSQLTOOLS MCP instructions for CLAUDE.md
The `lolosqltools` MCP is ALWAYS available. For any SQL object (table, view, SP, function, trigger), you MUST use it:
| Situation | Tool |
|---|---|
| Create a new SQL object | `generate_template` first, then deliver to user |
| Validate an object name | `validate_object_name` |
| Review an existing SQL block | `validate_sql_object` + `check_performance_patterns` |
| Format SQL | `format_sql` |
| Suggest a table alias | `suggest_alias` |
| Verify audit fields | `check_audit_fields` |
| Generate production deployment email | `generate_production_request` |
| Generate access request | `generate_access_request` |
| User asks about a BSG rule | `get_rules` |
**Critical rule**: NEVER generate SQL manually without consulting this MCP first.
Development
npm run dev # Run with tsx (no build needed)
npm run build # Compile TypeScript → dist/
npm start # Run compiled output
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.