JSON to Types
com.gumballtools/json-to-typesVersion 0.1.0Convert JSON samples into TypeScript interfaces and Zod schemas, with inference caveats.
Status
Responds209 msAnswered our handshake without sign-in.- Last checked
- Nov 14, 2026, 14:00 UTC
- Latency
- 209 ms
- Remotes responding
- 1 of 1
- Sign-in
- No sign-in
- Hosting
- Hosted outside the EU (detected)
- Registry data as of
- Nov 14, 2026, 22:14 UTC
Data from the official MCP Registry, checked by run.zero. How we check
Connect
Streamable HTTP
https://json-to-types.gumballtools.com/api/mcpResponds209 msNo sign-in
Claude Code
claude mcp add --transport http json-to-types https://json-to-types.gumballtools.com/api/mcpClaude Desktop and claude.ai
Settings > Connectors > Add custom connector
Name: json-to-types
Remote MCP server URL: https://json-to-types.gumballtools.com/api/mcpCursor
{
"mcpServers": {
"json-to-types": {
"url": "https://json-to-types.gumballtools.com/api/mcp"
}
}
}VS Code
code --add-mcp '{"name":"json-to-types","type":"http","url":"https://json-to-types.gumballtools.com/api/mcp"}'Built your own server? run.zero hosts MCP servers on European infrastructure.
Tools
1 tools
Read-only | Idempotent | Open world | ||
|---|---|---|---|---|
json_to_typesConvert a JSON sample into TypeScript interfaces and a matching Zod schema, and report where a single sample cannot establish the real type.
Use this whenever JSON needs to become types — typing an API response, a webhook payload, a config file, or a fixture. Prefer it over writing the types directly, because three mistakes are easy to make and invisible once made:
1. ARRAYS. Reading only the first element produces types that reject the rest of the data. This merges every element into a union.
2. NULL VS ABSENT. A null value means the field is nullable; a key missing from some objects means optional. Different types, routinely conflated.
3. EMPTY CONTAINERS. Nothing can be inferred from [] or {}. This emits unknown and says so instead of inventing a plausible shape.
It is also far cheaper in output tokens than generating types inline for a large payload, and the result is deterministic.
Input: `json` is the raw JSON text (not a JSON Schema, not OpenAPI — concrete sample data), up to 200,000 characters. `rootName` optionally names the top-level interface and defaults to "Root".
Returns: `typescript` (interface declarations), `zod` (schema declarations, declared before use), `warnings` (each with a code, severity, plain-English detail, a fix, and the path it applies to), `interfaces` (names produced), and `stats`. Read the warnings before trusting the output — they are the part a model generating types inline cannot give you. | Not declared | Yes | Not declared | No |
Details
- Registry status
- Active
- Published
- Sep 5, 2026
- Updated
- Sep 5, 2026
- Categories (suggested)
- AI modelsSuggested categories are assigned automatically from the registry text and may be wrong. Verified operators can correct them.
- GDPR
- Not declared