Schema Lint
БесплатноНе проверенValidates schema files against customizable lint rules using Claude or Gemini AI, supporting JSON and SQL schemas with rules for naming, structure, and migratio
Описание
Validates schema files against customizable lint rules using Claude or Gemini AI, supporting JSON and SQL schemas with rules for naming, structure, and migration safety.
README
An MCP server that validates schema files against lint rules using Claude or Gemini AI.
Installation
- Clone this repository
- Install dependencies:
npm install - Build the project:
npm run build
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)
Установка Schema Lint
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/rebelice/schema-lint-mcpFAQ
Schema Lint MCP бесплатный?
Да, Schema Lint MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Schema Lint?
Нет, Schema Lint работает без API-ключей и переменных окружения.
Schema Lint — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Schema Lint в Claude Desktop, Claude Code или Cursor?
Открой Schema Lint на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Schema Lint with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
