Datapack MCP Server
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., "@Datapack MCP ServerValidate this recipe JSON for Minecraft 1.21.11"
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.
Datapack MCP Server
This project was created using GitHub Copilot Chat's Agent mode. Please use with caution and verify the functionality thoroughly.
MCP (Model Context Protocol) Server for validating Minecraft datapack JSON files using Spyglass.
This server allows AI agents to validate Minecraft datapack JSON files (recipes, advancements, loot tables, predicates, etc.) against the official Minecraft data formats.
Features
✅ Validates datapack JSON files using Spyglass' mcdoc type system
🎯 Supports all datapack JSON types (recipes, advancements, loot tables, predicates, etc.)
🔄 Supports any Minecraft version or pack format
🚀 Easy to use with MCP-compatible AI agents
Related MCP server: mcp-jsonschema
Installation
Using npx (Recommended)
You can run this server directly from GitHub without installing:
npx github:sharo-jef/datapack-mcp-serverLocal Installation
git clone https://github.com/sharo-jef/datapack-mcp-server.git
cd datapack-mcp-server
npm install
npm run buildUsage
With Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"datapack-validator": {
"command": "npx",
"args": ["-y", "github:sharo-jef/datapack-mcp-server"]
}
}
}Or if you have it installed locally:
{
"mcpServers": {
"datapack-validator": {
"command": "node",
"args": [
"--experimental-strip-types",
"/path/to/datapack-mcp-server/src/index.ts"
]
}
}
}With Other MCP Clients
Any MCP-compatible client can connect to this server using stdio transport.
Tool: validate_datapack_json
Validates Minecraft datapack JSON files.
Parameters
type(required): The type of datapack fileSupported types:
advancement,loot_table,predicate,item_modifier,recipe,text_component,chat_type,damage_type,dialog,dimension,dimension_type,worldgen/biome,worldgen/carver,worldgen/configured_feature,worldgen/placed_feature,worldgen/density_function,worldgen/noise,worldgen/noise_settings,worldgen/structure,worldgen/structure_set,worldgen/template_pool,tags/block,tags/item,tags/entity_type,tags/function
content(required): The JSON content to validate (as a string, must be valid JSON parseable by JSON.parse)version(optional): Minecraft version (e.g.,1.21.11)packFormat(optional): Data pack format number (e.g.,48for 1.21.4-1.21.11)Prefer
packFormatoverversionwhen available - it is more precise as multiple Minecraft versions can share the same pack format
Note: Either version or packFormat must be specified.
Example Usage
// Example request from an AI agent
{
"type": "recipe",
"content": "{\"type\":\"minecraft:crafting_shaped\",\"pattern\":[\"###\",\"# #\",\"###\"],\"key\":{\"#\":{\"item\":\"minecraft:stick\"}},\"result\":{\"item\":\"minecraft:chest\"}}",
"version": "1.21.11"
}Response
Valid JSON:
✓ Valid recipe JSON for Minecraft 1.21.11Invalid JSON:
✗ Invalid recipe JSON:
error 1:1 Unknown property 'invalid_field'
error 5:10 Expected string, got numberDevelopment
Build
npm run buildWatch Mode
npm run devRun Locally
npm startTest
npm testTechnical Details
This server uses:
Spyglass: For JSON validation against Minecraft's mcdoc type system
MCP SDK: For Model Context Protocol support (@modelcontextprotocol/sdk)
TypeScript: Native execution in Node.js v20.10.0+
The validation logic is based on misode/misode.github.io's Spyglass integration.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This project includes code based on misode/misode.github.io, which is also licensed under the MIT License.
Credits
Spyglass - The validation engine
misode - For mcmeta data and Spyglass integration code
Model Context Protocol - MCP specification
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
MCP server (stdio): validate JSON against JSON Schema (draft-07 / 2020-12) via the AgentForge API
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceValidates OpenAPI documents, JSON Schemas, and JSON payloads. Also compares OpenAPI specs and displays breaking changes.-
- AlicenseNot gradedqualityCmaintenanceValidates JSON values against JSON Schema (draft-07). Enables schema validation for structured data.15MIT
- AlicenseNot gradedqualityAmaintenanceA local-first MCP server for safely creating, inspecting, validating, testing, and packaging Minecraft Java Edition datapacks with guarded file access and deterministic builds.71MIT
- AlicenseAqualityCmaintenanceEnables reading, validating, comparing, and cleaning up Minecraft mod configuration files in .cfg, .toml, and .json formats.6MIT
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/sharo-jef/datapack-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server