Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

10 AI SDK Generators, From Open-Source CLIs to Platforms

AI SDK generators read your OpenAPI spec and produce client libraries in several languages, and most now generate an MCP server so AI agents can call your API too. Small teams with one or two languages can start with an open-source CLI; teams shipping many languages, docs and agent access usually save time with a hosted platform.

The best-known name in this category isn't on this list. Stainless, a well-known SDK generator, now greets visitors with a note that it has joined Anthropic. If your SDKs came from it, check its status before relying on it; if they didn't, it's still a useful reminder of how fast this corner of developer tooling is moving.

What changed in SDK generation this year

Three years ago an SDK generator had one job: read a spec, write a typed client for TypeScript, Python, Go and friends, and regenerate it when the API changed. That job hasn't gone away. What's new is the second customer. Your API is now called by AI agents and coding assistants as well as by developers, and they want different things.

So the output list has grown. MCP server generation has become a standard add-on: several of the platforms below list MCP servers right next to SDKs. Some go further and produce plugins for AI coding tools, or score how well an agent can read your spec. Docs platforms have moved the other way, bundling SDKs with the reference pages they already built from the same spec.

The practical result is that you're no longer just choosing a code generator. You're choosing which part of your API's public face one vendor owns: libraries, docs, agent access, or all three.

Hosted platforms that generate and maintain SDKs

Fern

Docs, SDKs and a command-line tool generated from your API definition, pitched at developers and AI agents alike.

liblab

For API teams wanting one pipeline: it produces SDKs, docs, Terraform providers and MCP servers from an OpenAPI spec.

Speakeasy

Generates idiomatic, type-safe SDKs, Terraform providers and a CLI, now sitting beside a newer AI control plane product line.

APIMatic

An API spec goes in; out come SDKs, developer portals, MCP servers and context plugins for AI coding tools.

Sideko

A small platform that keeps SDKs, docs and MCP servers in sync, and lets you customise the generated SDK with AI.

Docs suites, API platforms and open-source CLIs

Scalar

Docs-led: hand it one OpenAPI document and it returns API reference pages, hosted MCP servers and SDKs.

Redocly

Teams polishing their spec first will like this docs platform, which grades agent-readiness and also publishes an MCP server and SDKs.

Postman

The familiar API workspace, with an SDK Generator built in and AI credits spread across its plans.

Kubb

Open-source code generator turning an OpenAPI spec into typed clients, hooks and MCP code, run from your own repo.

Orval

Open-source command-line tool for developers who want type-safe API clients from a spec, with MCP listed among its targets.

The bill multiplies by language

Start your budget with one number: how many languages you'll publish. Per-language or per-SDK pricing is common among the hosted generators, so a plan that looks reasonable for TypeScript alone can double or triple once Python and Go join. On their own pricing pages this month, the entry paid tiers of the four hosted SDK and docs platforms that show a monthly figure run from a little over $100 to about $400 a month, before extra languages.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

The rest are harder to pin down. Fern shows no paid figure, Speakeasy's pricing page now bills by usage for its AI products, and at least one platform charges by the call for MCP generation rather than a flat fee. Postman's low entry plan is a general API workspace subscription, so don't compare it like for like. Kubb and Orval are open source: no licence bill, but your engineers' time is the cost, and it isn't small once you're maintaining several clients.

A sensible rule: if you publish one or two languages and have engineers who enjoy owning tooling, open source wins on cost. Past three languages, or with no one keen to babysit a generator in CI, a hosted platform usually pays for itself in the hours it saves.

A one-hour test with your own spec

  1. Run your real OpenAPI file through a spec linter first. Missing operation IDs, vague schemas and inconsistent naming produce ugly SDKs in every tool, and you'll blame the wrong thing.
  2. Generate a TypeScript and a Python client from two candidates: one hosted platform, one open-source CLI.
  3. Open the code and look at three things: how it handles pagination, how errors come back, and how auth is configured. That's where generated clients feel hand-written or clumsy.
  4. Write a ten-line script against your sandbox that lists, creates and fails on purpose. Count how often you had to read the generated source to make it work.
  5. Change one field in the spec, regenerate and read the diff. A small change should give a small, tidy diff and an obvious version bump.
  6. If agent access matters, generate the MCP server too and ask an AI assistant to complete one real task with it.

If you're still choosing where the spec itself lives and how it's edited, this list of Swagger alternatives covers the design and editing side before generation even starts.

Four questions to ask before you sign

Who owns the repo? Some platforms push to a repository you control, others host the code. You want the generated SDK in your own GitHub organisation, published under your own package names, so you can walk away.

Can you customise without forking? Every team ends up wanting a helper method or a friendlier name. Ask how custom code survives the next regeneration, and get a demo, not a promise.

Does it fit your docs choice? If you already like your reference docs, an SDK-first generator keeps that separation clean. If your docs are the weak spot, a suite that does both may be simpler. Teams comparing hosted developer hubs should also look at these ReadMe alternatives.

What happens to agents? If customers already ask how to connect your API to an assistant, treat MCP output as a must-have, not a bonus.

Do you make AI SDK generators or API tooling for agents? Tool makers can ask to be considered for a featured place on this list.

Where I'd start

One language, a sharp team and a tight budget: an open-source CLI wired into CI. Several languages and a public API with paying customers: an SDK-first hosted platform. Weak docs and no one to own them: a docs suite that also outputs SDKs. And whichever route you take, fix the spec first. Every generator here is only as good as the file you feed it.

Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.

Frequently asked questions

Do I need an OpenAPI spec before I can use an SDK generator?

Yes, in practice. These tools read a machine-readable API description, and OpenAPI is the format all of them accept. If you don't have one, generating it from your framework's routes or writing it by hand comes first, and it's worth doing well.

Is an MCP server a replacement for an SDK?

No. An SDK is code a developer imports into their own app. An MCP server exposes your API as tools an AI assistant can call. Many API companies now want both, which is why the two are often generated from the same spec.

Should generated SDK code be checked into version control?

It should. Keeping the generated code in its own repository lets you review every regeneration as a normal pull request, spot breaking changes and roll back if a release goes wrong.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.