Datapack MCP Server

Datapack MCP Server

Validates Minecraft datapack JSON files (recipes, advancements, loot tables, etc.) against official Minecraft data formats using Spyglass.

Category
Visit Server

README

Datapack MCP Server

[!WARNING] 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

Installation

Using npx (Recommended)

You can run this server directly from GitHub without installing:

npx github:sharo-jef/datapack-mcp-server

Local Installation

git clone https://github.com/sharo-jef/datapack-mcp-server.git
cd datapack-mcp-server
npm install
npm run build

Usage

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 file
    • Supported 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., 48 for 1.21.4-1.21.11)
    • Prefer packFormat over version when 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.11

Invalid JSON:

āœ— Invalid recipe JSON:

error 1:1 Unknown property 'invalid_field'
error 5:10 Expected string, got number

Development

Build

npm run build

Watch Mode

npm run dev

Run Locally

npm start

Test

npm test

Technical Details

This server uses:

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured