SDK · Docs · Scalar · Postman · MCP

Generate SDKs, docs and MCP servers from your OpenAPI spec

Specemit is a command-line tool. It reads an OpenAPI, Swagger or Postman file and writes a TypeScript SDK, Blume docs, a Scalar reference, a Postman collection and an MCP server to one folder in your repository, on your machine or in CI.

Run Specemit, then answer its questions about your spec, the outputs and the output folder.
npx specemit
  1. specemit generate
  2. Where is your OpenAPI spec?./openapi.yaml
  3. What should Specemit generate?sdk, docs, scalar, postman, mcp
  4. Where should Specemit write the output?./specemit
  5. Validating specification
  6. Package name for the SDK?swagger-petstore-openapi-3-0-sdk
  7. Generating sdk, docs, scalar, postman, mcp
  8. generateWrote ./specemit + sdk/README.md + sdk/client.ts … + mcp/tsconfig.jsonManifest: specemit/specemit.manifest.json
  9. Save these answers to specemit.config.ts?Yes
  10. Done. Saved specemit.config.ts.
Reads
OpenAPI 3.x
Also Swagger 2.0 and Postman v2.x collections, as JSON or YAML, from a file, a URL or stdin.
Writes
5 outputs
SDK, docs, Scalar, Postman and MCP, each in its own folder, plus a manifest.
Runs on
Node or Bun
Node.js 22.19 or newer, or Bun 1.3.10 or newer, locally or in CI.
Re-runs
Same bytes
The same spec gives identical files. Only files Specemit wrote are replaced.

[01 / 05 / Outputs]

Five outputs, one command each

Each target writes its own folder inside the output folder (./specemit by default) and records its files in the manifest. Run one, or several at once with generate.

  1. 01sdk/

    TypeScript SDK

    A typed client for every operation, with request and response models and its own package.json.

    npx specemit sdk ./openapi.yaml
    • --client fetch|axios|node|xhr|angular
    • --language typescript|javascript
    • --package-name <name>
  2. 02docs/

    Documentation

    Markdown and MDX pages for Blume: an overview, SDK setup, and a page per tag and operation with parameters, examples and the SDK call.

    npx specemit docs ./openapi.yaml
    • --title <text>
    • --base-path <route>
    • --no-blume-config
  3. 03scalar/

    Scalar reference

    An interactive API reference that works offline: static viewer files, the pinned Scalar bundle and your normalized openapi.json.

    npx specemit scalar ./openapi.yaml
    • --no-server
  4. 04postman/

    Postman collection

    A Postman v2.1 collection with requests grouped by tag or path and examples taken from your spec.

    npx specemit postman ./openapi.yaml
    • --folders tags|paths
    • --examples example|schema
    • --include-auth
  5. 05mcp/

    MCP server

    A standalone MCP server project with one tool per selected operation, over stdio or Streamable HTTP.

    npx specemit mcp ./openapi.yaml
    • --transport stdio|streamable-http|both
    • --tag <tag>
    • --read-only

[02 / 05 / Workflow]

Generate, preview, then own it

The output is a plain folder in your repository. Review it in a pull request like any other change, and regenerate when the spec changes.

  1. 01

    Generate

    Point Specemit at a file, a URL or stdin. It validates the spec once and writes every target you choose in one step.

    npx specemit generate ./openapi.yaml -t sdk -t docs -t scalar -t postman -t mcp
  2. 02

    Preview

    Open one local site with Docs, API Reference, SDK, Scalar, MCP and Postman views. It only reads the output folder.

    npx specemit preview
  3. 03

    Own it

    Commit the folder and version it like the rest of your code. The manifest lists every file and hash, so the same spec regenerates the same bytes.

    • specemit/
    • specemit.manifest.json
    • sdk/
    • docs/
    • scalar/
    • postman/
    • mcp/

[03 / 05 / Preview]

Read every output before you commit it

One local, view-only site for the output folder. These are its six views for the Swagger Petstore example.

npx specemit preview
Docs view of the generated Swagger Petstore documentation: the API overview with an API readiness table of operations, resource groups, models, servers and authentication.
Docslocalhost:4400/
Running specemit on the Swagger Petstore specification: it asks where the specification is, what to generate and where to write it, writes the files, then specemit preview serves the Docs, SDK, API Reference, Scalar, MCP and Postman views in light and dark.

[04 / 05 / Comparison]

What changes when generation is one command

Specemit replaces a handful of single-purpose generators with one CLI whose output you can review, version and regenerate.

Inputs

UsuallyOne tool per spec format, often OpenAPI 3 only
With SpecemitSwagger 2.0, OpenAPI 3.0 and 3.1, and Postman v2.x, from a file, a URL or stdin

Outputs

UsuallyA separate generator for the SDK, the docs, the reference and the collection
With SpecemitSDK, docs, Scalar, Postman and MCP from one validated document, in one run

Ownership

UsuallyGenerated files with no record of where they came from
With SpecemitOne folder you commit, with a manifest of the source hash, API version, CLI version and every file

Re-runs

UsuallyRegenerate everything and diff by hand
With SpecemitIdentical bytes for the same spec; only files Specemit wrote are replaced, and stray files stop the run

Automation

UsuallyInteractive tools that need a person at the keyboard
With SpecemitA config file for unattended runs, JSON output on request and documented exit codes

MCP

UsuallyWrite an MCP server by hand after the SDK exists
With SpecemitA standalone MCP server project, or serve the same tools locally to try them first

[05 / 05 / FAQ]

Questions before the first run