# Openapi To MCP (agent skill)

> Openapi To MCP is an agent skill (a SKILL.md file) from mcp-use/mcp-use. Build and deploy an MCP server from an OpenAPI / Swagger spec using the mcp-use TypeScript SDK. It works with Claude Code and has 10,726 GitHub stars across a repository of 4 listed skills.

Build and deploy an MCP server from an OpenAPI / Swagger spec using the mcp-use TypeScript SDK. Use this skill whenever the user wants to "turn this OpenAPI spec into an MCP server", "make this API usable from Claude/ChatGPT", "wrap this Swagger doc as MCP tools", "expose this REST API to an LLM", "generate MCP tools from a spec", or pastes/attaches an openapi.yaml, openapi.json, or swagger.json and asks for a Claude-compatible version.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/mcp-use/mcp-use |
| Skill path | skills/openapi-to-mcp/SKILL.md |
| Skill name | openapi-to-mcp |
| GitHub stars | 10,726 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 4 |
| Plugin marketplace | mcp-use |
| Official | yes |
| Works with | Claude Code |
| Category | Security |
| Last commit | Oct 6, 2026 |

## When it triggers

- Trigger even if the user doesn't say "MCP" — if they describe an existing HTTP API (REST endpoints, an internal service, a third-party API they have a key for) and want an LLM to call it, this is the right skill.
- "turn this OpenAPI spec into an MCP server"
- "make this API usable from Claude/ChatGPT"
- "wrap this Swagger doc as MCP tools"
- "expose this REST API to an LLM"
- "generate MCP tools from a spec"
- "MCP"

## Add this skill

### Claude Code

```sh
/plugin marketplace add mcp-use/mcp-use
/plugin   # browse mcp-use and install the plugin that contains openapi-to-mcp
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/mcp-use/mcp-use.git
cp -r mcp-use/skills/openapi-to-mcp .agents/skills/openapi-to-mcp   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/mcp-use/mcp-use.git
cp -r mcp-use/skills/openapi-to-mcp .cursor/skills/openapi-to-mcp   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/mcp-use-openapi-to-mcp
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
