Graphql To Typescript

Data REST API MCP

Convert a GraphQL SDL schema into TypeScript type definitions and return the generated code with counts of emitted types, enums, and inputs. Object and interface types become interfaces (or type aliases), enums become TypeScript enums, input types are included by default. Non-null fields (!) are required; nullable fields become optional and accept null. Built-in scalars map to string, number, and boolean.

This page documents the HTTP endpoint POST /api/tools/graphql-to-typescript/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/graphql-to-typescript/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/graphql-to-typescript/execute \
  -H "Content-Type: application/json" \
  -d '{
    "schema": "type User {\n  id: ID!\n  name: String\n}\n\nenum Role {\n  ADMIN\n  USER\n}"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/graphql-to-typescript

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
schema string yes GraphQL schema in SDL (type, input, enum definitions).
use_interfaces boolean no Emit "interface X {}" instead of "type X = {}". Default: true. Default: true.
add_exports boolean no Prefix every declaration with "export". Default: true. Default: true.
use_readonly boolean no Mark every field readonly. Default: false. Default: false.
generate_input_types boolean no Also emit GraphQL input types. Default: true. Default: true.

Example arguments (verified)

{
  "schema": "type User {\n  id: ID!\n  name: String\n}\n\nenum Role {\n  ADMIN\n  USER\n}"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:graphql_to_typescript after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Graphql To Typescript →

More Data tools