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 MCP tool findutils:graphql_to_typescript. See the REST reference →
Call it over MCP
Tool name findutils:graphql_to_typescript
· no API keys · 120 requests/min per IP
Claude Code
claude mcp add findutils --transport http https://mcp.findutils.com/ Claude Desktop — claude_desktop_config.json
{
"mcpServers": {
"findutils": {
"url": "https://mcp.findutils.com/"
}
}
} Raw JSON-RPC (any MCP client) — verified example
curl -X POST https://mcp.findutils.com/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphql_to_typescript",
"arguments": {
"schema": "type User {\n id: ID!\n name: String\n}\n\nenum Role {\n ADMIN\n USER\n}"
}
}
}' 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 a REST endpoint
The same tool answers plain HTTP at
POST /api/tools/graphql-to-typescript/execute — no key, 60 requests/min.
More Data tools
Api Docs Generator
Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples) or as an OpenAP
Bookmarks Html To Csv
Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format int
Csv To Bookmarks Html
Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.
Csv To Json
Parse CSV text into an array of objects keyed by the header row.
Csv To Sql
Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE.
Html Table To Json
Convert an HTML <table> into JSON — an array of objects keyed by the header row, or an array of row arrays.
Jq Playground
Returns the result of running a jq-style filter over a JSON document.
Json Comparer
Returns a git-style line diff of two JSON documents after both are pretty-printed with 2-space indentation.