- Jsonschema Validator Mcp
Jsonschema Validator Mcp
A comprehensive JSON Schema validation server implementing the Model Context Protocol (MCP) with support for JSON Schema Draft 2020-12, external references, schema management, and real-time streaming validation.
Overview
JSON Schema Validator MCP Server - Overview
What is it?
A Model Context Protocol (MCP) server that provides comprehensive JSON Schema validation capabilities to AI assistants like Claude and GitHub Copilot. It validates JSON data, manages schema collections, and generates schemas from sample data.
Key Capabilities
🎯 Core Functionality
- JSON Schema Draft 2020-12 validation with full specification support
- Schema Management - Store, retrieve, update, and delete schemas in organized collections
- Schema Generation - Automatically create schemas from sample JSON data
- External References - Resolve schema references from URLs, databases, or local files
🤖 AI Assistant Integration
- Claude Desktop - Direct integration via MCP configuration
- GitHub Copilot - Seamless validation within development workflow
- Real-time Validation - Instant feedback during schema development
🏗️ Deployment Options
- Python Direct - Simple
python mcp_server.pyexecution - Docker Container - Containerized deployment with volume persistence
- Database + Files - PostgreSQL storage with automatic file fallback
- File-Only Mode - Zero-configuration local file storage
8 Available Tools
| Tool | Purpose | Example Use Case |
|---|---|---|
validate_json_schema | Direct validation | Validate API response against schema |
validate_json_from_collections | Collection-based validation | Validate user data against stored schema |
get_validation_info | System capabilities | Check validator status and features |
add_update_schema | Schema management | Store new API schema definition |
delete_schema | Schema removal | Clean up outdated schemas |
get_schema | Schema retrieval | Retrieve schema for editing |
list_schemas | Collection browsing | See all available schemas |
generate_schema | Schema creation | Create schema from sample JSON |
Use Cases
👨💻 For Developers
- API Validation - Ensure JSON responses match expected schemas
- Data Quality - Validate configuration files and data structures
- Schema Development - Generate and refine schemas iteratively
- Integration Testing - Validate data contracts between services
🤖 For AI Assistants
- Code Generation - Validate generated JSON structures
- Data Processing - Ensure data transformations maintain schema compliance
- Configuration Management - Validate settings and configuration files
- Documentation - Generate examples and validate API specifications
Architecture Highlights
🔄 Smart Data Resolution
HTTP/HTTPS URLs → PostgreSQL Database → Local Files
Intelligent fallback strategy ensures reliability even when external resources are unavailable.
🏛️ Modular Design
- Validation Handlers - Core JSON validation logic
- Schema Handlers - CRUD operations for schema management
- Data Manager - Multi-source data resolution
- Database Service - PostgreSQL integration with connection pooling
What Makes It Special
✨ Beyond Basic Validation
- External Reference Support - Handles complex schema compositions
- Intelligent Schema Generation - Creates schemas from real data samples
- Multiple Storage Options - Database, files, or hybrid approaches
- Real-time Streaming - Web interface with live validation feedback
🚀 Production Ready
- Docker Support - Containerized deployment with health checks
- Database Integration - PostgreSQL with automatic table creation
- Comprehensive Testing - Full unit test coverage with mocking
- Error Handling - Graceful fallback and detailed error reporting
🔮 Future Roadmap
- DXT Package - One-command installation following Anthropic's pattern
- AI-Enhanced Features - Natural language to schema conversion
- Multi-Format Support - XML, classes, and database table schemas
- Advanced Analytics - Schema usage patterns and optimization
Resources
- Full Documentation: README.md
- Detailed Guide: PROJECT_DESCRIPTION.md
- Future Plans: ROADMAP.md
- Web Demo:
client_example.html
Ready to validate? Start with python mcp_server.py and integrate with your favorite AI assistant! 🚀
Server Config
{
"mcpServers": {
"jsonschema-validator": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"./schemas:/app/.schemas",
"jsonschema-mcp-server:1.0.0"
]
}
}
}Project Info
Created At
10 months agoUpdated At
10 months agoAuthor Name
EienWolfStar
-Language
-License
-Recommend Servers
View AllTavily Mcp
@tavily-ai
JavaScript
a year ago
Mcp Server Chatsum
@chatmcp
summarize chat message
typescript
a year ago
Crevio
2 days ago
Rollinggo Hotel Mcp
@longcreat
2 days ago
Amap Maps
@amap
高德地图官方 MCP Server
a year ago
Serper MCP Server
@garymengcom
A Serper MCP Server
Python
a year ago
Test
@modelcontextprotocol
test
6 months ago