Schemas & MCPMCP Server .tsStrict Schema

Convert OpenAPI 3.x to MCP Server

Bridge internal REST APIs to Claude, Cursor, and AI agents privately — sanitize <=64-char tool names, resolve $ref bodies, and emit TypeScript MCP stubs.

100% Browser-Local — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tabUpdated: 2026-11-24
  • 0 bytes uploaded
  • Sanitizes <=64-char MCP names
  • Read-only GET filter option

Select OpenAPI YAML / JSON

OpenAPI 3.x YAML/JSON · Zod v4 schemas · GET-only filter.yaml · .yml · .json

Zero upload limits · Runs in browser RAM

Benchmark & Expected Output

Instant MCP server TypeScript

Before (Input)
openapi: 3.0.3
info:
  title: Orders API
  version: 1.0.0
paths:
  /orders:
    get:
      operationId: listOrders
      summary: List recent customer orders
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
    post:
      operationId: createOrder
      summary: Create a new order
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [sku, qty]
              properties:
                sku:
                  type: string
                qty:
                  type: integer
After (Output)
MCP server tool definitions & Zod input schemas from OpenAPI
OpenAPI / MCP · Format specs
PropertyOpenAPI / MCP
File extension.ts
MIME typeapplication/yaml
Structure typeTyped Schema
EncodingUTF-8 Text
Nesting supportYes
LLM token efficiencyMedium
Schema / typedYes
Best forExposing existing REST APIs cleanly as LLM agent tools inside Claude Desktop, Cursor, Antigravity, and MCP servers.
How it works

How to use OpenAPI to MCP locally in your browser

Turn OpenAPI YAML/JSON specs into Model Context Protocol (MCP) TypeScript tool definitions and Zod v4 input schemas locally.

01

Load OpenAPI 3.x spec

Drop or paste internal .yaml, .yml, or .json API specifications.

02

Configure MCP server

Set server identifier, enable Zod v4 input schemas, or filter to GET-only endpoints.

03

Export MCP TypeScript

Copy or download ready-to-wire McpServer.tool(...) definitions locally.

Next step

Continue your data pipeline

Related tools

Related data & AI tools

Format specs

Formats · Guides · Compare

FAQ

Frequently asked questions

Are proprietary OpenAPI specs uploaded to generate MCP code?

Never. YAML/JSON parsing, $ref resolution, and TypeScript generation run strictly in browser RAM.

How are invalid or long operationId names handled?

Every tool name is sanitized to ^[a-zA-Z0-9_-]{1,64}$ with diagnostics if truncated or deduped.

Can I build a safe read-only MCP server?

Yes. Check Include GET endpoints only to skip mutating POST, PUT, PATCH, and DELETE endpoints.