schema-lint-mcp
Click on "Install 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-mcpvalidate 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: Lintbase
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)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceDetects schema mismatches between data producers and consumers through static analysis, supporting extraction, comparison, code generation, and automated validation with watch mode for MCP tools, APIs, and service contracts.Last updated1126MIT
- AlicenseAqualityBmaintenanceDevelopers are constantly feeding context files to AI tools like Cursor, Windsurf, Copilot Workspace, and Claude Code. If your agent doesn't understand your real database schema, it writes code that fails in production. LintBase acts as the bridge. It connects directly to your database, reads the ground truth of your live documents, and generates structured context optimized for AI. š¤ Stops AILast updated32MIT
- AlicenseAqualityCmaintenanceAnalyzes database migrations for risks like lock contention and data loss before they run. Supports Flyway and Liquibase formats, providing risk scores and rollback generation.Last updated615MIT
- Flicense-qualityBmaintenanceMonitor AI output schemas and API contracts for breaking changes ā validate LLM JSON responses against defined schemas on a scheduleLast updated
Related MCP Connectors
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Monitor MCP servers, API contracts and AI outputs for schema drift. Alerts on breaking changes.
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rebelice/schema-lint-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server