[{"data":1,"prerenderedAt":811},["ShallowReactive",2],{"doc-seo-\u002Fdocs\u002Fguide\u002Fgetting-started":3,"content-query-ExH75ZFJTz":6},{"title":4,"description":5},"Installation & CLI","Install OpenAPI MCP via npm, Bun, or standalone binary, connect an MCP client, and run CLI checks in CI.",{"_path":7,"_dir":8,"_draft":9,"_partial":9,"_locale":10,"title":4,"description":5,"badge":11,"body":12,"_type":805,"_id":806,"_source":807,"_file":808,"_stem":809,"_extension":810},"\u002Fdocs\u002Fguide\u002Fgetting-started","guide",false,"","Guide",{"type":13,"children":14,"toc":797},"root",[15,48,55,126,131,179,185,194,230,238,254,260,281,418,425,520,526,531,626,791],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20,23,30,32,38,40,46],{"type":21,"value":22},"text","OpenAPI MCP is published on npm as ",{"type":16,"tag":24,"props":25,"children":27},"code",{"className":26},[],[28],{"type":21,"value":29},"@dimassetoid\u002Fopenapi-mcp",{"type":21,"value":31}," (requires Node.js ",{"type":16,"tag":24,"props":33,"children":35},{"className":34},[],[36],{"type":21,"value":37},">= 18.20.0",{"type":21,"value":39}," or Bun ",{"type":16,"tag":24,"props":41,"children":43},{"className":42},[],[44],{"type":21,"value":45},">= 1.4.3",{"type":21,"value":47},") and as standalone binaries with no runtime dependency.",{"type":16,"tag":49,"props":50,"children":52},"h2",{"id":51},"install-via-npm-or-bun",[53],{"type":21,"value":54},"Install via npm or Bun",{"type":16,"tag":56,"props":57,"children":61},"pre",{"className":58,"code":59,"language":60,"meta":10,"style":10},"language-bash shiki shiki-themes github-light github-dark","npm install -g @dimassetoid\u002Fopenapi-mcp\n# or\nbun add -g @dimassetoid\u002Fopenapi-mcp\n","bash",[62],{"type":16,"tag":24,"props":63,"children":64},{"__ignoreMap":10},[65,94,104],{"type":16,"tag":66,"props":67,"children":70},"span",{"class":68,"line":69},"line",1,[71,77,83,89],{"type":16,"tag":66,"props":72,"children":74},{"style":73},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[75],{"type":21,"value":76},"npm",{"type":16,"tag":66,"props":78,"children":80},{"style":79},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[81],{"type":21,"value":82}," install",{"type":16,"tag":66,"props":84,"children":86},{"style":85},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[87],{"type":21,"value":88}," -g",{"type":16,"tag":66,"props":90,"children":91},{"style":79},[92],{"type":21,"value":93}," @dimassetoid\u002Fopenapi-mcp\n",{"type":16,"tag":66,"props":95,"children":97},{"class":68,"line":96},2,[98],{"type":16,"tag":66,"props":99,"children":101},{"style":100},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[102],{"type":21,"value":103},"# or\n",{"type":16,"tag":66,"props":105,"children":107},{"class":68,"line":106},3,[108,113,118,122],{"type":16,"tag":66,"props":109,"children":110},{"style":73},[111],{"type":21,"value":112},"bun",{"type":16,"tag":66,"props":114,"children":115},{"style":79},[116],{"type":21,"value":117}," add",{"type":16,"tag":66,"props":119,"children":120},{"style":85},[121],{"type":21,"value":88},{"type":16,"tag":66,"props":123,"children":124},{"style":79},[125],{"type":21,"value":93},{"type":16,"tag":17,"props":127,"children":128},{},[129],{"type":21,"value":130},"To run without installing globally:",{"type":16,"tag":56,"props":132,"children":134},{"className":58,"code":133,"language":60,"meta":10,"style":10},"npx @dimassetoid\u002Fopenapi-mcp serve\n# or\nbunx @dimassetoid\u002Fopenapi-mcp serve\n",[135],{"type":16,"tag":24,"props":136,"children":137},{"__ignoreMap":10},[138,156,163],{"type":16,"tag":66,"props":139,"children":140},{"class":68,"line":69},[141,146,151],{"type":16,"tag":66,"props":142,"children":143},{"style":73},[144],{"type":21,"value":145},"npx",{"type":16,"tag":66,"props":147,"children":148},{"style":79},[149],{"type":21,"value":150}," @dimassetoid\u002Fopenapi-mcp",{"type":16,"tag":66,"props":152,"children":153},{"style":79},[154],{"type":21,"value":155}," serve\n",{"type":16,"tag":66,"props":157,"children":158},{"class":68,"line":96},[159],{"type":16,"tag":66,"props":160,"children":161},{"style":100},[162],{"type":21,"value":103},{"type":16,"tag":66,"props":164,"children":165},{"class":68,"line":106},[166,171,175],{"type":16,"tag":66,"props":167,"children":168},{"style":73},[169],{"type":21,"value":170},"bunx",{"type":16,"tag":66,"props":172,"children":173},{"style":79},[174],{"type":21,"value":150},{"type":16,"tag":66,"props":176,"children":177},{"style":79},[178],{"type":21,"value":155},{"type":16,"tag":49,"props":180,"children":182},{"id":181},"install-as-a-standalone-binary",[183],{"type":21,"value":184},"Install as a Standalone Binary",{"type":16,"tag":17,"props":186,"children":187},{},[188],{"type":16,"tag":189,"props":190,"children":191},"strong",{},[192],{"type":21,"value":193},"Linux & macOS:",{"type":16,"tag":56,"props":195,"children":197},{"className":58,"code":196,"language":60,"meta":10,"style":10},"curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FShironim\u002Fopenapi-mcp\u002Fmaster\u002Fscripts\u002Finstall.sh | sh\n",[198],{"type":16,"tag":24,"props":199,"children":200},{"__ignoreMap":10},[201],{"type":16,"tag":66,"props":202,"children":203},{"class":68,"line":69},[204,209,214,219,225],{"type":16,"tag":66,"props":205,"children":206},{"style":73},[207],{"type":21,"value":208},"curl",{"type":16,"tag":66,"props":210,"children":211},{"style":85},[212],{"type":21,"value":213}," -fsSL",{"type":16,"tag":66,"props":215,"children":216},{"style":79},[217],{"type":21,"value":218}," https:\u002F\u002Fraw.githubusercontent.com\u002FShironim\u002Fopenapi-mcp\u002Fmaster\u002Fscripts\u002Finstall.sh",{"type":16,"tag":66,"props":220,"children":222},{"style":221},"--shiki-default:#D73A49;--shiki-dark:#F97583",[223],{"type":21,"value":224}," |",{"type":16,"tag":66,"props":226,"children":227},{"style":73},[228],{"type":21,"value":229}," sh\n",{"type":16,"tag":17,"props":231,"children":232},{},[233],{"type":16,"tag":189,"props":234,"children":235},{},[236],{"type":21,"value":237},"Windows (PowerShell):",{"type":16,"tag":56,"props":239,"children":243},{"className":240,"code":241,"language":242,"meta":10,"style":10},"language-powershell shiki shiki-themes github-light github-dark","irm https:\u002F\u002Fraw.githubusercontent.com\u002FShironim\u002Fopenapi-mcp\u002Fmaster\u002Fscripts\u002Finstall.ps1 | iex\n","powershell",[244],{"type":16,"tag":24,"props":245,"children":246},{"__ignoreMap":10},[247],{"type":16,"tag":66,"props":248,"children":249},{"class":68,"line":69},[250],{"type":16,"tag":66,"props":251,"children":252},{},[253],{"type":21,"value":241},{"type":16,"tag":49,"props":255,"children":257},{"id":256},"connect-to-an-mcp-client",[258],{"type":21,"value":259},"Connect to an MCP Client",{"type":16,"tag":17,"props":261,"children":262},{},[263,265,271,273,279],{"type":21,"value":264},"Add ",{"type":16,"tag":24,"props":266,"children":268},{"className":267},[],[269],{"type":21,"value":270},"openapi-mcp",{"type":21,"value":272}," to ",{"type":16,"tag":24,"props":274,"children":276},{"className":275},[],[277],{"type":21,"value":278},".mcp.json",{"type":21,"value":280}," or your MCP client configuration:",{"type":16,"tag":56,"props":282,"children":286},{"className":283,"code":284,"language":285,"meta":10,"style":10},"language-json shiki shiki-themes github-light github-dark","{\n  \"mcpServers\": {\n    \"openapi-mcp\": {\n      \"command\": \"openapi-mcp\",\n      \"args\": [\"serve\", \"--root\", \"\u002Fpath\u002Fto\u002Frepo\"]\n    }\n  }\n}\n","json",[287],{"type":16,"tag":24,"props":288,"children":289},{"__ignoreMap":10},[290,299,312,324,348,391,400,409],{"type":16,"tag":66,"props":291,"children":292},{"class":68,"line":69},[293],{"type":16,"tag":66,"props":294,"children":296},{"style":295},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[297],{"type":21,"value":298},"{\n",{"type":16,"tag":66,"props":300,"children":301},{"class":68,"line":96},[302,307],{"type":16,"tag":66,"props":303,"children":304},{"style":85},[305],{"type":21,"value":306},"  \"mcpServers\"",{"type":16,"tag":66,"props":308,"children":309},{"style":295},[310],{"type":21,"value":311},": {\n",{"type":16,"tag":66,"props":313,"children":314},{"class":68,"line":106},[315,320],{"type":16,"tag":66,"props":316,"children":317},{"style":85},[318],{"type":21,"value":319},"    \"openapi-mcp\"",{"type":16,"tag":66,"props":321,"children":322},{"style":295},[323],{"type":21,"value":311},{"type":16,"tag":66,"props":325,"children":327},{"class":68,"line":326},4,[328,333,338,343],{"type":16,"tag":66,"props":329,"children":330},{"style":85},[331],{"type":21,"value":332},"      \"command\"",{"type":16,"tag":66,"props":334,"children":335},{"style":295},[336],{"type":21,"value":337},": ",{"type":16,"tag":66,"props":339,"children":340},{"style":79},[341],{"type":21,"value":342},"\"openapi-mcp\"",{"type":16,"tag":66,"props":344,"children":345},{"style":295},[346],{"type":21,"value":347},",\n",{"type":16,"tag":66,"props":349,"children":351},{"class":68,"line":350},5,[352,357,362,367,372,377,381,386],{"type":16,"tag":66,"props":353,"children":354},{"style":85},[355],{"type":21,"value":356},"      \"args\"",{"type":16,"tag":66,"props":358,"children":359},{"style":295},[360],{"type":21,"value":361},": [",{"type":16,"tag":66,"props":363,"children":364},{"style":79},[365],{"type":21,"value":366},"\"serve\"",{"type":16,"tag":66,"props":368,"children":369},{"style":295},[370],{"type":21,"value":371},", ",{"type":16,"tag":66,"props":373,"children":374},{"style":79},[375],{"type":21,"value":376},"\"--root\"",{"type":16,"tag":66,"props":378,"children":379},{"style":295},[380],{"type":21,"value":371},{"type":16,"tag":66,"props":382,"children":383},{"style":79},[384],{"type":21,"value":385},"\"\u002Fpath\u002Fto\u002Frepo\"",{"type":16,"tag":66,"props":387,"children":388},{"style":295},[389],{"type":21,"value":390},"]\n",{"type":16,"tag":66,"props":392,"children":394},{"class":68,"line":393},6,[395],{"type":16,"tag":66,"props":396,"children":397},{"style":295},[398],{"type":21,"value":399},"    }\n",{"type":16,"tag":66,"props":401,"children":403},{"class":68,"line":402},7,[404],{"type":16,"tag":66,"props":405,"children":406},{"style":295},[407],{"type":21,"value":408},"  }\n",{"type":16,"tag":66,"props":410,"children":412},{"class":68,"line":411},8,[413],{"type":16,"tag":66,"props":414,"children":415},{"style":295},[416],{"type":21,"value":417},"}\n",{"type":16,"tag":419,"props":420,"children":422},"h3",{"id":421},"single-spec-vs-monorepo",[423],{"type":21,"value":424},"Single Spec vs. Monorepo",{"type":16,"tag":426,"props":427,"children":428},"ul",{},[429,486],{"type":16,"tag":430,"props":431,"children":432},"li",{},[433,438,440,446,448,454,456,462,463,469,470,476,478,484],{"type":16,"tag":189,"props":434,"children":435},{},[436],{"type":21,"value":437},"Single spec",{"type":21,"value":439},": If your spec lives at the workspace root, ",{"type":16,"tag":24,"props":441,"children":443},{"className":442},[],[444],{"type":21,"value":445},"api\u002F",{"type":21,"value":447},", or ",{"type":16,"tag":24,"props":449,"children":451},{"className":450},[],[452],{"type":21,"value":453},"docs\u002F",{"type":21,"value":455}," as ",{"type":16,"tag":24,"props":457,"children":459},{"className":458},[],[460],{"type":21,"value":461},"openapi.yml",{"type":21,"value":371},{"type":16,"tag":24,"props":464,"children":466},{"className":465},[],[467],{"type":21,"value":468},"openapi.yaml",{"type":21,"value":447},{"type":16,"tag":24,"props":471,"children":473},{"className":472},[],[474],{"type":21,"value":475},"openapi.json",{"type":21,"value":477},", OpenAPI MCP detects it automatically. You can also pin a path with ",{"type":16,"tag":24,"props":479,"children":481},{"className":480},[],[482],{"type":21,"value":483},"--spec api\u002Fopenapi.yml",{"type":21,"value":485},".",{"type":16,"tag":430,"props":487,"children":488},{},[489,494,496,502,504,510,512,518],{"type":16,"tag":189,"props":490,"children":491},{},[492],{"type":21,"value":493},"Multiple specs",{"type":21,"value":495},": In a monorepo, omit ",{"type":16,"tag":24,"props":497,"children":499},{"className":498},[],[500],{"type":21,"value":501},"--spec",{"type":21,"value":503}," and let agents read ",{"type":16,"tag":24,"props":505,"children":507},{"className":506},[],[508],{"type":21,"value":509},"openapi:\u002F\u002Fspecs\u002Fcatalog",{"type":21,"value":511},", then pass ",{"type":16,"tag":24,"props":513,"children":515},{"className":514},[],[516],{"type":21,"value":517},"spec_path",{"type":21,"value":519}," on individual tool or resource requests.",{"type":16,"tag":49,"props":521,"children":523},{"id":522},"cli-reference-local-ci",[524],{"type":21,"value":525},"CLI Reference (Local & CI)",{"type":16,"tag":17,"props":527,"children":528},{},[529],{"type":21,"value":530},"Use the CLI directly in pre-commit hooks or CI pipelines to validate specs and block breaking changes:",{"type":16,"tag":56,"props":532,"children":534},{"className":58,"code":533,"language":60,"meta":10,"style":10},"# Fail on validation errors or warnings\nopenapi-mcp check --root . --spec openapi.yml --strict\n\n# Fail if any breaking change is introduced\nopenapi-mcp diff openapi.yml openapi-v2.yml --fail-on-breaking\n",[535],{"type":16,"tag":24,"props":536,"children":537},{"__ignoreMap":10},[538,546,583,592,600],{"type":16,"tag":66,"props":539,"children":540},{"class":68,"line":69},[541],{"type":16,"tag":66,"props":542,"children":543},{"style":100},[544],{"type":21,"value":545},"# Fail on validation errors or warnings\n",{"type":16,"tag":66,"props":547,"children":548},{"class":68,"line":96},[549,553,558,563,568,573,578],{"type":16,"tag":66,"props":550,"children":551},{"style":73},[552],{"type":21,"value":270},{"type":16,"tag":66,"props":554,"children":555},{"style":79},[556],{"type":21,"value":557}," check",{"type":16,"tag":66,"props":559,"children":560},{"style":85},[561],{"type":21,"value":562}," --root",{"type":16,"tag":66,"props":564,"children":565},{"style":79},[566],{"type":21,"value":567}," .",{"type":16,"tag":66,"props":569,"children":570},{"style":85},[571],{"type":21,"value":572}," --spec",{"type":16,"tag":66,"props":574,"children":575},{"style":79},[576],{"type":21,"value":577}," openapi.yml",{"type":16,"tag":66,"props":579,"children":580},{"style":85},[581],{"type":21,"value":582}," --strict\n",{"type":16,"tag":66,"props":584,"children":585},{"class":68,"line":106},[586],{"type":16,"tag":66,"props":587,"children":589},{"emptyLinePlaceholder":588},true,[590],{"type":21,"value":591},"\n",{"type":16,"tag":66,"props":593,"children":594},{"class":68,"line":326},[595],{"type":16,"tag":66,"props":596,"children":597},{"style":100},[598],{"type":21,"value":599},"# Fail if any breaking change is introduced\n",{"type":16,"tag":66,"props":601,"children":602},{"class":68,"line":350},[603,607,612,616,621],{"type":16,"tag":66,"props":604,"children":605},{"style":73},[606],{"type":21,"value":270},{"type":16,"tag":66,"props":608,"children":609},{"style":79},[610],{"type":21,"value":611}," diff",{"type":16,"tag":66,"props":613,"children":614},{"style":79},[615],{"type":21,"value":577},{"type":16,"tag":66,"props":617,"children":618},{"style":79},[619],{"type":21,"value":620}," openapi-v2.yml",{"type":16,"tag":66,"props":622,"children":623},{"style":85},[624],{"type":21,"value":625}," --fail-on-breaking\n",{"type":16,"tag":627,"props":628,"children":629},"table",{},[630,650],{"type":16,"tag":631,"props":632,"children":633},"thead",{},[634],{"type":16,"tag":635,"props":636,"children":637},"tr",{},[638,645],{"type":16,"tag":639,"props":640,"children":642},"th",{"align":641},"left",[643],{"type":21,"value":644},"Command",{"type":16,"tag":639,"props":646,"children":647},{"align":641},[648],{"type":21,"value":649},"Description",{"type":16,"tag":651,"props":652,"children":653},"tbody",{},[654,679,712,744,768],{"type":16,"tag":635,"props":655,"children":656},{},[657,667],{"type":16,"tag":658,"props":659,"children":660},"td",{"align":641},[661],{"type":16,"tag":24,"props":662,"children":664},{"className":663},[],[665],{"type":21,"value":666},"openapi-mcp serve [--root \u003Cdir>] [--spec \u003Cpath>]",{"type":16,"tag":658,"props":668,"children":669},{"align":641},[670,672,678],{"type":21,"value":671},"Start the MCP server over ",{"type":16,"tag":24,"props":673,"children":675},{"className":674},[],[676],{"type":21,"value":677},"stdio",{"type":21,"value":485},{"type":16,"tag":635,"props":680,"children":681},{},[682,691],{"type":16,"tag":658,"props":683,"children":684},{"align":641},[685],{"type":16,"tag":24,"props":686,"children":688},{"className":687},[],[689],{"type":21,"value":690},"openapi-mcp check [--root \u003Cdir>] [--spec \u003Cpath>] [--strict] [--json]",{"type":16,"tag":658,"props":692,"children":693},{"align":641},[694,696,702,704,710],{"type":21,"value":695},"Validate a spec; exits ",{"type":16,"tag":24,"props":697,"children":699},{"className":698},[],[700],{"type":21,"value":701},"1",{"type":21,"value":703}," on errors (or on warnings when ",{"type":16,"tag":24,"props":705,"children":707},{"className":706},[],[708],{"type":21,"value":709},"--strict",{"type":21,"value":711}," is set).",{"type":16,"tag":635,"props":713,"children":714},{},[715,724],{"type":16,"tag":658,"props":716,"children":717},{"align":641},[718],{"type":16,"tag":24,"props":719,"children":721},{"className":720},[],[722],{"type":21,"value":723},"openapi-mcp diff \u003Cbase> \u003Ctarget> [--root \u003Cdir>] [--fail-on-breaking] [--json]",{"type":16,"tag":658,"props":725,"children":726},{"align":641},[727,729,734,736,742],{"type":21,"value":728},"Compare two local specs; exits ",{"type":16,"tag":24,"props":730,"children":732},{"className":731},[],[733],{"type":21,"value":701},{"type":21,"value":735}," on breaking changes when ",{"type":16,"tag":24,"props":737,"children":739},{"className":738},[],[740],{"type":21,"value":741},"--fail-on-breaking",{"type":21,"value":743}," is set.",{"type":16,"tag":635,"props":745,"children":746},{},[747,756],{"type":16,"tag":658,"props":748,"children":749},{"align":641},[750],{"type":16,"tag":24,"props":751,"children":753},{"className":752},[],[754],{"type":21,"value":755},"openapi-mcp -h | --help",{"type":16,"tag":658,"props":757,"children":758},{"align":641},[759,761,767],{"type":21,"value":760},"Print CLI help to ",{"type":16,"tag":24,"props":762,"children":764},{"className":763},[],[765],{"type":21,"value":766},"stderr",{"type":21,"value":485},{"type":16,"tag":635,"props":769,"children":770},{},[771,780],{"type":16,"tag":658,"props":772,"children":773},{"align":641},[774],{"type":16,"tag":24,"props":775,"children":777},{"className":776},[],[778],{"type":21,"value":779},"openapi-mcp -v | --version",{"type":16,"tag":658,"props":781,"children":782},{"align":641},[783,785,790],{"type":21,"value":784},"Print installed version to ",{"type":16,"tag":24,"props":786,"children":788},{"className":787},[],[789],{"type":21,"value":766},{"type":21,"value":485},{"type":16,"tag":792,"props":793,"children":794},"style",{},[795],{"type":21,"value":796},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":10,"searchDepth":106,"depth":106,"links":798},[799,800,801,804],{"id":51,"depth":96,"text":54},{"id":181,"depth":96,"text":184},{"id":256,"depth":96,"text":259,"children":802},[803],{"id":421,"depth":106,"text":424},{"id":522,"depth":96,"text":525},"markdown","content:docs:guide:getting-started.md","content","docs\u002Fguide\u002Fgetting-started.md","docs\u002Fguide\u002Fgetting-started","md",1795576106778]