AgentHubAgentHub

openapi-to-mcp

SkillSkillsMP

io.github.mcp-use/mcp-use/openapi-to-mcp · vmain

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. 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. Covers spec ingestion (file path, URL, or pasted), operation-to-tool mapping, auth wiring (apiKey, bearer, basic, OAuth bearer), scaffolding with `create-mcp-use-app`, tool generation with proper zod schemas, live testing in the mcp-use inspector, and deploying to Manufact / mcp-use cloud.

概览

openapi-to-mcp 是一个Agent Skill,收录自 SkillsMP。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。

安装

选择你的平台查看安装方式

# 通用 CLI(Cursor / Claude Code / Codex 等均支持)
npx skills add mcp-use/mcp-use@openapi-to-mcp

使用方式

安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。

相关资源

统一 Manifest

{
  "id": "io.github.mcp-use/mcp-use/openapi-to-mcp",
  "type": "skill",
  "version": "main",
  "displayName": "openapi-to-mcp",
  "description": "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. 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. Covers spec ingestion (file path, URL, or pasted), operation-to-tool mapping, auth wiring (apiKey, bearer, basic, OAuth bearer), scaffolding with `create-mcp-use-app`, tool generation with proper zod schemas, live testing in the mcp-use inspector, and deploying to Manufact / mcp-use cloud.",
  "author": {
    "name": "mcp-use",
    "url": "https://github.com/mcp-use"
  },
  "repository": {
    "url": "https://github.com/mcp-use/mcp-use",
    "source": "github",
    "subfolder": "skills/openapi-to-mcp"
  },
  "homepage": "https://skillsmp.com/skills/mcp-use-mcp-use-skills-openapi-to-mcp-skill-md",
  "distribution": {
    "packages": [
      {
        "registryType": "source",
        "identifier": "mcp-use/mcp-use@openapi-to-mcp",
        "version": "main",
        "runtimeHint": "npx skills add"
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "codex",
    "vscode"
  ],
  "keywords": [
    "stars:10081"
  ],
  "provenance": {
    "origin": "skillsmp",
    "originalId": "mcp-use-mcp-use-skills-openapi-to-mcp-skill-md",
    "originalUrl": "https://skillsmp.com/skills/mcp-use-mcp-use-skills-openapi-to-mcp-skill-md",
    "isOfficial": false,
    "status": "active"
  }
}
openapi-to-mcp — Agent Skill 安装与配置 · AgentHub