mcp-schema-lint
MCP ServerFreeCLI linter for MCP tool/resource schemas
Capabilities6 decomposed
mcp schema validation against specification
Medium confidenceValidates tool and resource schema definitions against the Model Context Protocol specification using a schema parser that checks structural conformance, required fields, type correctness, and naming conventions. The linter parses JSON/YAML schema files and compares them against MCP's official schema definitions to catch malformed or non-compliant schemas before deployment.
Purpose-built linter specifically for MCP schema validation rather than generic JSON schema validation, with deep understanding of MCP's tool/resource structure, parameter types, and context protocol requirements
More targeted than generic JSON schema validators (like ajv) because it understands MCP-specific constraints like tool naming, parameter cardinality, and resource definition patterns
batch schema linting across multiple files
Medium confidenceProcesses multiple schema files in a single CLI invocation, recursively scanning directories or processing file globs to validate entire schema repositories. The linter aggregates results across files and produces consolidated reports showing which files pass/fail validation with detailed error locations.
Implements directory-aware batch validation with aggregated reporting specifically for MCP schema collections, rather than validating schemas individually
More efficient than running single-file validation in a loop because it aggregates results and can potentially parallelize validation across files
detailed error reporting with location information
Medium confidenceGenerates human-readable error messages that pinpoint exactly where schema violations occur, including file paths, line numbers, column positions, and contextual snippets of the problematic schema. Errors are categorized by type (missing required field, type mismatch, naming convention violation, etc.) to help developers quickly understand and fix issues.
Provides MCP-specific error categorization and contextual reporting rather than generic validation errors, with understanding of which schema violations are critical vs. warnings
More helpful than generic schema validator error messages because it understands MCP semantics and can explain why a particular schema structure violates MCP requirements
cli integration with exit codes and output formats
Medium confidenceExposes schema validation as a command-line tool with configurable output formats (text, JSON, TAP) and standard exit codes (0 for success, non-zero for failures) that integrate seamlessly with shell scripts, CI/CD systems, and build pipelines. Supports flags for controlling verbosity, output destination, and validation strictness.
Implements MCP-aware CLI with standard Unix exit codes and multiple output formats specifically designed for CI/CD integration, rather than being a library-only tool
More CI/CD-friendly than programmatic validation libraries because it provides native CLI interface with standard exit codes and structured output formats
schema naming convention enforcement
Medium confidenceValidates that tool names, resource names, parameter names, and other identifiers in MCP schemas follow MCP's naming conventions (e.g., snake_case for parameters, specific patterns for tool names). Checks against a configurable set of naming rules that align with MCP best practices and protocol requirements.
Enforces MCP-specific naming conventions rather than generic identifier validation, with understanding of which identifiers are exposed to clients vs. internal
More targeted than generic linters because it understands MCP's specific naming requirements for tools, resources, and parameters
type system validation for parameters and responses
Medium confidenceValidates that parameter and response types in tool schemas conform to MCP's supported type system (string, number, boolean, object, array, etc.) and that type definitions are properly structured. Checks for type mismatches, unsupported types, and malformed type declarations that would cause runtime failures.
Validates types against MCP's specific type system rather than generic JSON schema type validation, with understanding of MCP's type constraints and requirements
More precise than generic JSON schema validators because it understands MCP's type system semantics and constraints
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with mcp-schema-lint, ranked by overlap. Discovered automatically through the match graph.
mcp-lint
Lint MCP server tool schemas for cross-client compatibility + runtime preflight for agent tool calls
@toolspec/core
MCP tool schema linting and quality scoring engine
modality-mcp-kit
Modality MCP Kit - Schema conversion utilities for MCP tool development with multi-library support
mcp-tool-lint
Static linter for MCP tool definitions — catch quality defects before deployment
@mcp-contracts/core
Snapshot, diff, and classify MCP tool schema changes
@mcp-contracts/cli
CLI tool for capturing and diffing MCP tool schemas
Best For
- ✓MCP server developers building custom tools and resources
- ✓Teams implementing MCP integrations who need pre-deployment validation
- ✓CI/CD pipelines requiring automated schema compliance checks
- ✓Large MCP server projects with dozens of tool/resource schemas
- ✓Monorepos containing multiple MCP implementations
- ✓CI/CD pipelines requiring batch validation before deployment
- ✓Individual developers debugging schema issues
- ✓Teams reviewing schema validation failures in code review
Known Limitations
- ⚠Only validates structural conformance to MCP spec, not semantic correctness of tool behavior
- ⚠Does not validate that referenced parameters actually exist in tool implementations
- ⚠Limited to MCP specification version it was built against — may not catch breaking changes in newer MCP versions
- ⚠No support for custom schema extensions beyond standard MCP definitions
- ⚠Performance degrades with very large numbers of files (1000+) without parallel processing
- ⚠No built-in deduplication of errors across similar schema patterns
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Package Details
About
CLI linter for MCP tool/resource schemas
Categories
Alternatives to mcp-schema-lint
Are you the builder of mcp-schema-lint?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →