Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

openapi-to-mcp

Skill by mcp-use

Builds an MCP server from an OpenAPI or Swagger spec using the mcp-use TypeScript SDK. Each spec operation becomes one tool an AI assistant can call. Aimed at developers who want an LLM to use an existing REST API.

  • Score 92
  • 11k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install openapi-to-mcp

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mcp-use/mcp-use /tmp/mcp-use && mkdir -p ~/.claude/skills && cp -r /tmp/mcp-use/skills/openapi-to-mcp ~/.claude/skills/openapi-to-mcp

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openapi-to-mcp in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through turning an existing REST API, described by an OpenAPI 3.x or Swagger 2.0 document, into an MCP server. Each operation in the spec becomes one MCP tool. Tool names, descriptions, and parameter shapes come from the spec, and parameters are turned into zod schemas.

The process covers scoping the request, loading and dereferencing the spec, scaffolding a project with create-mcp-use-app, mapping operations to tools, wiring auth from environment variables, testing in the mcp-use inspector, and deploying to Manufact or mcp-use cloud. It is intended for developers who have an HTTP API and want an LLM to call it.

Written from the project's SKILL.md and checked against it.

What it can do

  • Spec ingestionLoads an OpenAPI or Swagger document from a file path, a URL, or pasted content.
  • Operation-to-tool mappingTurns each spec operation into one MCP tool with a name, description, and schema.
  • Zod schema generationConverts OpenAPI parameters and request bodies into zod schemas with descriptions.
  • Auth wiringSupports apiKey, bearer, basic, and OAuth bearer schemes, reading secrets from env vars.
  • Project scaffoldingCreates the server project with create-mcp-use-app and a shallow file layout.
  • Live testingTests the generated server in the mcp-use inspector before deploying.
  • DeploymentDeploys the server to Manufact or mcp-use cloud with one command.

What you need

  • Node.js and npm
  • An OpenAPI 3.x or Swagger 2.0 spec
  • Credentials for the upstream API, if it requires auth
  • An account on Manufact or mcp-use cloud, for deployment

Try asking

  • Turn this openapi.yaml into an MCP server I can use from Claude
  • Wrap this Swagger doc as MCP tools for my internal API
  • Expose the pets endpoints from this spec to an LLM

Good to know

  • The skill defaults to tools-only servers. Widget-heavy servers are better served by the mcp-apps-builder skill.
  • Large specs with hundreds of operations should be filtered by tag or a hand-picked list.
  • Secrets are read from environment variables and are not stored in the spec or the conversation.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/openapi-to-mcp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.txt9 KB
  • SKILL.md20 KB
  • references/auth.md5 KB
  • references/code-templates.md17 KB
  • references/deploy.md5 KB
Show all 7 files
  • references/mapping-rules.md8 KB
  • references/testing.md11 KB

Alternatives to openapi-to-mcp

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

openapi-to-mcp: common questions

Does the skill use the API's OpenAPI spec as the source of tool definitions?

Yes. The skill states that tool names, descriptions, parameter shapes, and auth requirements come from the spec rather than being invented.

Where are API keys stored?

The skill says auth secrets come from env vars, and the spec only tells you which env vars to require. Required vars are listed in a .env.example file.

Can it expose only some endpoints?

Yes. During scoping you can choose all operations, a tag such as pets or users, or a hand-picked list.

How do I install openapi-to-mcp?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is openapi-to-mcp free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is openapi-to-mcp safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to openapi-to-mcp?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

openapi-to-mcp Install

Add to stack

Loading.