Quicktype MCP server for generating models from JSON

Quicktype MCP server for generating models from JSON

quicktype-mcp•byascemon

An MCP server that generates type-safe models from JSON input for multiple programming languages, with built-in JSON validation and formatting tools.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Generates a model from a JSON string, with a configurable class name and target language.
  • •Lists the supported languages available for model generation.
  • •Fixes and formats invalid JSON input.
  • •Dart output includes fromJson and toJson serialization methods, while Kotlin output uses kotlinx.serialization annotations.

BEST FOR

  • •Developers who want to turn sample JSON into typed model classes without writing them by hand.
  • •Working with complex or nested JSON that needs null-safe models with serialization methods.
  • •Cleaning up malformed JSON before generating models from it.

ABOUT QUICKTYPE-MCP

Quicktype MCP server for generating models from JSON is cataloged as an MCP server attributed to ascemon. An MCP server that generates type-safe models from JSON input for multiple programming languages, with built-in JSON validation and formatting tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Quicktype MCP server for generating models from JSON are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which programming languages can models be generated for?

Models can be generated for Dart, Kotlin, TypeScript, Swift, Python, Java, and Go; the README's detailed examples cover Dart and Kotlin.

What runtime requirements does the server have?

It requires Python 3.10 or higher and an internet connection to access the quicktype.io API.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0fff83d87977 · 采集于 2026-11-13 11:39:50 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Quicktype MCP Server

An MCP (Model Context Protocol) server specifically designed for generating models from JSON. This tool simplifies the process of creating type-safe models for various programming languages including Dart, Kotlin.

Features

  • Generate models for multiple programming languages
  • Automatic JSON validation and fixing
  • Generates null-safe models
  • Handles complex nested JSON structures
  • Includes serialization/deserialization methods

Prerequisites

  • Python 3.10 or higher
  • Internet connection (to access the quicktype.io API)

Usage as MCP Server

This tool is designed to be used as an MCP server that other applications can connect to. The server exposes a simple API for generating models from JSON input.

API

The server exposes the following endpoint:

  • generate_model: Generates a model from JSON input

Parameters:

  • json_input: The JSON string to generate a model from
  • class_name: The name of the generated class (default: Model)
  • language: The programming language to generate code for (dart, kotlin, typescript, swift, python, java, go)
{
  "quicktype-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/quicktype-mcp",
      "run",
      "main.py",
    ]
  }
}

Available MCP Tools

  1. generate_model: Generate models from JSON

    • Parameters:
      • json_input: The JSON string to generate a model from
      • class_name: The name of the generated class (default: "Model")
      • language: The programming language to generate code for (dart, kotlin)
  2. list_languages: List all supported languages

  3. fix_json: Fix and format invalid JSON input

Supported Languages

The server currently supports generating models for the following languages:

Dart (with built-in serialization)

For Dart, the generated models include built-in serialization methods (fromJson and toJson):

// To parse this JSON data, do
//
//     final model = modelFromJson(jsonString);

import 'dart:convert';

class Model {
  int? id;
  String? name;

  Model({
    this.id,
    this.name,
  });

  factory Model.fromJson(Map<String, dynamic> json) => Model(
    id: json["id"],
    name: json["name"],
  );

  Map<String, dynamic> toJson() => {
    "id": id,
    "name": name,
  };
}

Kotlin (with kotlinx.serialization)

For Kotlin, the generated models use kotlinx.serialization annotations:

// To parse the JSON, install kotlin's serialization plugin and do:
//
// val json = Json { allowStructuredMapKeys = true }
// val model = json.decodeFromString(Model.serializer(), jsonString)

import kotlinx.serialization.*
import kotlinx.serialization.json.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.encoding.*

@Serializable
data class Model(
    val id: Int? = null,
    val name: String? = null
)

The Kotlin generator produces code that:

  • Uses kotlinx.serialization annotations for automatic serialization/deserialization
  • Handles nullable types properly with Kotlin's null safety features
  • Converts snake_case JSON keys to camelCase Kotlin properties
  • Uses @SerialName annotations when the property name differs from the JSON key
  • Supports nested objects, lists, and complex data structures

Troubleshooting

If you encounter issues with the server not running, make sure:

  1. You have an active internet connection
  2. All dependencies are installed
  3. The correct Python version is being used (3.10+)

For issues with the generated models:

  1. Ensure your JSON is valid
  2. Try simplifying complex JSON structures if you encounter errors
  3. Check that the class name follows the naming conventions for the target language

Features of Generated Models

  • Null Safety: All fields are properly marked as nullable when appropriate
  • JSON Serialization: Includes serialization/deserialization methods
  • Nested Objects: Properly handles nested objects with their own classes
  • Lists and Maps: Correctly handles collections and their generic types
  • Type Safety: Uses appropriate types for JSON values

License

This project is licensed under the MIT License - see the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Quicktype MCP server for generating models from JSON from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/quicktype-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools