aiagent.club
English
npm 包

openapi-mcp-generator

更新于 2026-09-12 查看源 ↗

在全部 npm 包 中按周下载量排名第 107(共 203)

8.8k 周下载量

Generates MCP server code from OpenAPI specifications

项目介绍

Generate Model Context Protocol (MCP) servers from OpenAPI specifications.

This CLI tool automates the generation of MCP-compatible servers that proxy requests to existing REST APIs—enabling AI agents and other MCP clients to seamlessly interact with your APIs using your choice of transport methods.

You can also use yarn global add openapi-mcp-generator or pnpm add -g openapi-mcp-generator

Configuring the API base URL at runtime: the generated server reads APIBASEURL from the environment (.env), overriding the value baked in from the OpenAPI servers list. The port resolves from --port, then the PORT env var, then 3000.

You can also use this package programmatically in your Node.js…

摘自 www.npmjs.com/package/openapi-mcp-generator

最新指标

周下载量 8.8k 2026-09-12