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.
npx specemit- specemit generate
- Where is your OpenAPI spec?./openapi.yaml
- What should Specemit generate?sdk, docs, scalar, postman, mcp
- Where should Specemit write the output?./specemit
- Validating specification
- Package name for the SDK?swagger-petstore-openapi-3-0-sdk
- Generating sdk, docs, scalar, postman, mcp
- generateWrote ./specemit + sdk/README.md + sdk/client.ts … + mcp/tsconfig.jsonManifest: specemit/specemit.manifest.json
- Save these answers to specemit.config.ts?Yes
- 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.
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>
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
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
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
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.
- 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 - 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 - 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

localhost:4400/[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.
| Feature | Usually | With Specemit |
|---|---|---|
| Inputs | One tool per spec format, often OpenAPI 3 only | Swagger 2.0, OpenAPI 3.0 and 3.1, and Postman v2.x, from a file, a URL or stdin |
| Outputs | A separate generator for the SDK, the docs, the reference and the collection | SDK, docs, Scalar, Postman and MCP from one validated document, in one run |
| Ownership | Generated files with no record of where they came from | One folder you commit, with a manifest of the source hash, API version, CLI version and every file |
| Re-runs | Regenerate everything and diff by hand | Identical bytes for the same spec; only files Specemit wrote are replaced, and stray files stop the run |
| Automation | Interactive tools that need a person at the keyboard | A config file for unattended runs, JSON output on request and documented exit codes |
| MCP | Write an MCP server by hand after the SDK exists | A standalone MCP server project, or serve the same tools locally to try them first |
Outputs
Ownership
Re-runs
Automation
MCP
[05 / 05 / FAQ]
