schema-lint-mcp
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., "@schema-lint-mcp validate schema.sql using sql-rules.json"
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.
Schema Lint MCP
An MCP server that validates schema files against lint rules using Claude or Gemini AI.
Installation
Clone this repository
Install dependencies:
npm installBuild the project:
npm run build
Related MCP server: Drizzle Sentinel MCP
Configure with Claude Code
Add this to your Claude Code settings JSON file:
{
"mcpServers": {
"schema-lint": {
"command": "node",
"args": ["/path/to/schema-lint-mcp/dist/index.js"],
"env": {
"ANTHROPIC_API_KEY": "your-anthropic-api-key-here",
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
}Or use environment variables:
{
"mcpServers": {
"schema-lint": {
"command": "node",
"args": ["/path/to/schema-lint-mcp/dist/index.js"],
"env": {
"ANTHROPIC_API_KEY": "${env:ANTHROPIC_API_KEY}",
"GEMINI_API_KEY": "${env:GEMINI_API_KEY}"
}
}
}
}Usage
Once configured, you can use the validate_schema tool in Claude Code:
// Using Claude (default)
validate_schema(schemaPath: "/path/to/schema.json", rulesPath: "/path/to/rules.json")
// Using Gemini
validate_schema(schemaPath: "/path/to/schema.json", rulesPath: "/path/to/rules.json", provider: "gemini")Example Files
The examples/ directory contains sample schemas and rule sets:
Schema Files
schema.json- Example JSON schemaschema.sql- Example SQL schema with tables and relationships
Rule Sets
rules.json- Basic JSON schema validation rulessql-rules.json- General SQL best practicesschema-rules.json- Database schema structure and naming conventions (inspired by Bytebase)migration-rules.json- Database migration safety and compatibility rules (inspired by Bytebase)
Rule Categories
Schema Rules focus on:
Naming conventions (tables, columns, indexes)
Table structure requirements (primary keys, constraints)
Column definitions (types, defaults, nullability)
Index optimization
Documentation (comments)
Migration Rules focus on:
Backward compatibility
DDL safety (avoiding table locks, data loss)
DML safety (WHERE clauses, row limits)
Performance considerations
Migration hygiene (separation of concerns)
Available Tools
1 toolvalidate_schemaC
Validate a schema file against lint rules
Inputs: rulesPath (required), schemaPath (required), provider.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The validate_schema tool has a unique and clear purpose.
The single tool name follows the verb_noun pattern consistently (validate_schema). There is no inconsistency within the set.
The server has exactly one tool, which is borderline for usability. It feels thin but could be acceptable given the narrow scope of schema validation.
The surface only provides validation, with no ability to inspect or configure lint rules. This is a significant gap for a schema linting server, as users cannot discover available rules or customize behavior.
Maintenance
Related MCP Connectors
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Convert, lint and generate LLM tool schemas for OpenAI, Anthropic, Gemini and MCP
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
Review your AI agent's database changes on your schema, with plain-language risk, before they run.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMonitor AI output schemas and API contracts for breaking changes — validate LLM JSON responses against defined schemas on a schedule1-
- AlicenseNot gradedqualityCmaintenanceEnables database governance for Drizzle ORM projects by inspecting schemas, linting migrations for unsafe operations, detecting schema drift, and explaining query plans with performance checks.MIT
- AlicenseNot gradedqualityBmaintenanceGives AI coding assistants, IDEs, and CI full PostgreSQL schema intelligence from an offline snapshot, enabling linting, query validation, migration safety analysis, and foreign key graph exploration without ever exposing database credentials.36BSD 2-Clause "Simplified"
- AlicenseNot gradedqualityBmaintenanceEnables deterministic linting of locale files across JSON, Laravel PHP, gettext, and YAML, with no LLM or network, verifying translations for missing keys, placeholders, plural forms, glossary consistency, and stale entries.10 npmMIT