Swagger MCP 服务器
Description
# Swagger MCP 服务器 [](https://smithery.ai/server/@tuskermanshu/swagger-mcp-server) 一个基于Model Context Protocol (MCP)的服务器,用于解析Swagger/OpenAPI文档并生成TypeScript类型和API客户端代码。 ## 功能特点 -…
About
# Swagger MCP 服务器 [](https://smithery.ai/server/@tuskermanshu/swagger-mcp-server) 一个基于Model Context Protocol (MCP)的服务器,用于解析Swagger/OpenAPI文档并生成TypeScript类型和API客户端代码。 ## 功能特点 - 解析Swagger/OpenAPI文档,支持v2和v3规范 - 生成TypeScript类型定义 -…
Details
- Author
- tuskermanshu
- GitHub stars
- 16
- Downloads
- 278
- Categories
- Other
Jump to
- 解析Swagger/OpenAPI v2和v3规范
- 生成TypeScript类型定义
- 生成Axios、Fetch、React Query客户端代码
- 大型文档缓存与懒加载机制
- 提供标准、优化、轻量级解析模式
- 按标签或路径前缀过滤API操作
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Swagger MCP 服务器Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
安装依赖后启动服务器(node start-server.js),通过标准输入/输出与MCP工具通信。可调用解析、类型生成、API客户端生成等工具,例如使用 parse-swagger 或 generate-typescript-types 命令。通过 swagger-mcp-config.json 配置文件自定义服务器设置。
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"swagger mcp \u670d\u52a1\u5668": {
"swagger-mcp-server": {
"command": "node",
"args": [
"start-server.js"
]
}
}
}
}
McpServers
{
"swagger-mcp-server": {
"command": "node",
"args": [
"start-server.js"
]
}
}
Swagger MCP 服务器
一个基于Model Context Protocol (MCP)的服务器,用于解析Swagger/OpenAPI文档并生成TypeScript类型和API客户端代码。
功能特点
- 解析Swagger/OpenAPI文档,支持v2和v3规范
- 生成TypeScript类型定义
- 生成不同框架的API客户端代码(Axios、Fetch、React Query等)
- 通过MCP协议提供这些功能,便于与大型语言模型集成
- 优化的大型文档处理:
- 内存和文件系统缓存机制
- 懒加载解析策略
- 增量解析与部分结果返回
- 进度反馈
- 自动识别不同格式的Swagger UI URLs
快速开始
安装依赖
```bash
npm install
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



