mcp-from-openapi weekly downloads statistics
By agentfront · npm · MCP servers
Production-ready library for converting OpenAPI specifications into MCP tool definitions
mcp-from-openapi has 17,634 recorded weekly downloads on npm, an increase of 3.0% over the past 30 days, ranking #1078 of 3,247 tracked listings.
About mcp-from-openapi
mcp-from-openapi
Convert OpenAPI specifications into MCP tool definitions with automatic parameter conflict resolution
What This Solves
When converting OpenAPI specs to MCP tools, you hit parameter conflicts -- the same name appears in different locations (path, query, body). This library resolves them automatically and gives you an explicit mapper for building HTTP requests.
The Problem:
paths:
/users/{id}:
post:
parameters:
- name: id # path
in: path
requestBody:
content:
application/json:
schema:
properties:
id: # body -- CONFLICT!
type: string
The Solution:
{
inputSchema: {
properties: {
pathId: { type: "string" }, // Automatically renamed
bodyId: { type: "string" } // Automatically renamed
}
},
mapper: [
{ inputKey: "pathId", type: "path", key: "id" },
{ inputKey: "bodyId", type: "body", key: "id" }
]
}
Now you know exactly how to build the HTTP request.
Features
- Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2 -- Validated with the rules of the version a document declares. From 3.2: the
queryoperation andadditionalOperationsmethods,in: querystringwhole-query parameters,style: cookie, streamed responses (itemSchema),$self, and security schemes named by URI; what the library skips or ignores is recorded ingetDiagnostics()instead of dropped. A Swagger 2.0 document is converted to OpenAPI 3.0 (upgradeSwagger2, also exported) and its tools are generated from the conversion, with what could not be carried over exactly recorded the same way - Built-in Request Builder --
buildHttpRequest()applies the full OpenAPI serialization table (form/deepObject/pipeDelimited queries, label/matrix paths,contentparameters, per-field Encoding Objects in form and multipart bodies,allowReservedthat never lets a value add a query pair, OpenAPI 3.2 whole-query (in: querystring) andstyle: cookie, multipart, binary,wholeBody) so you never hand-write request assembly - Client Compatibility Targets --
target: 'claude' | 'openai' | 'gemini' | 'strict'emits schemas each client actually accepts (inlined refs, closed objects, collapsed unions, demoted formats) - Context-Budget Reports --
analyzeToolSet()estimates the token bill per tool and warns at the thresholds where agent accuracy degrades - Overlays & Lint -- apply OpenAPI Overlay curation files at load time;
lint()flags the spec gaps that hurt tool-calling accuracy - Curation-Grade Filtering -- Filter by tag, method, path glob (
/admin/**), operationId, areadOnlyOnlysafety switch, andx-mcpextension flags with root < path < operation precedence - Smart Parameter Handling -- Automatic conflict detection and resolution across path, query, header, cookie, and body; an operation-level parameter overrides a path-level one with the same name and location;
allOfbodies flatten, union and binary bodies map cleanly (wholeBody,binarymarkers) - Complete Schemas -- Input schema combines all parameters; output schema from responses (with anyOf unions); streamed responses (
itemSchema) reported inmetadata.responseStream; clean JSON Schema 2020-12 output (nullableunions, normalizedexamples) - MCP-Native Tools --
titleand toolannotations(readOnly/destructive/idempotent hints) inferred from HTTP semantics, overridable via thex-mcpextension family; spec-compliant tool names (64-char cap, stable hash truncation, collision dedup); deterministic tool ordering for prompt-cache friendliness;toSdkTool()for one-line SDK registration - Security Resolution -- Framework-agnostic auth for Bearer, Basic, Digest, API Key, OAuth2, OpenID, mTLS, HMAC, AWS Sig V4; per-scheme
includeSecurityInInput - SSRF Prevention -- Blocks internal IPs, localhost, and cloud metadata endpoints by default during
$refresolution; one-flagsecureDefaultsposture for untrusted specs; a documented trust model for what a spec can make the library read - Multiple Input Sources -- Load from URL, file, YAML string, or JSON object; multi-file specs resolve relative
$refs against where the document was loaded from (URL, file ordocumentUri) - Rich Metadata -- Authentication, servers, tags, deprecation, external docs,
x-frontmcpextension - Production Ready -- Full TypeScript support, validation, structured errors, 100% test coverage (enforced)
- Runtime Agnostic -- Works on Node and V8 isolates (Cloudflare Workers) alike
Installation…
Description from the npm listing.
- mcp
- model-context-protocol
- openapi
- swagger
- api
- rest
- schema
- json-schema
- typescript
- tool-generator
- anthropic
- claude
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 mcp-from-openapi alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/mcp-from-openapi. First seen Oct 16, 2026; last successful collection Dec 3, 2026. See the methodology.