Basic information
About Swagger Viewer MCP Server
这是一个用于 Cursor 编辑器的 MCP 工具,可以帮助你快速查看和使用项目 Swagger API 文档。
Swagger Viewer is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by xiezhuo0513. It exposes 4 tools, including mcp_swagger_initialize, mcp_swagger_search, mcp_swagger_generate_code, mcp_swagger_get_all_endpoints. Supported transport: stdio. Runtime: JavaScript. License: MIT. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"swagger-viewer": {
"command": "npx",
"args": [
"-y",
"@xc_angelwatch/swagger-viewer"
]
}
}
}
{
"mcpServers": {
"swagger-viewer": {
"command": "npx",
"args": [
"-y",
"@xc_angelwatch/swagger-viewer"
]
}
}
}
{
"servers": {
"swagger-viewer": {
"command": "npx",
"args": [
"-y",
"@xc_angelwatch/swagger-viewer"
]
}
}
}
Swagger Viewer MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"swagger-viewer": {
"command": "npx",
"args": [
"-y",
"@xc_angelwatch/swagger-viewer"
]
}
}
}
Swagger Viewer MCP Server tools
-
mcp_swagger_initialize
— 初始化 Swagger 工具并加载配置
swaggerUrl:string* -
mcp_swagger_search
— 搜索 API 接口
query:string* -
mcp_swagger_generate_code
— 生成接口调用代码
path:string*, method:string*, language:string -
mcp_swagger_get_all_endpoints
— 获取所有可用接口
(no parameters)
Overview
What is Swagger Viewer?
Swagger Viewer is an MCP server that integrates with Swagger/OpenAPI specifications, allowing users to initialize the tool, search API interfaces, generate client code, and retrieve all available endpoints.
How to use Swagger Viewer?
Configure your MCP client with the command and arguments provided (e.g., cmd /c npx -y @xc_angelwatch/swagger-viewer), then invoke the exposed tools: mcp_swagger_initialize, mcp_swagger_search, mcp_swagger_generate_code, and mcp_swagger_get_all_endpoints.
Key features of Swagger Viewer
- Initialize Swagger tool and load configuration
- Search API interfaces
- Generate interface call code
- Get all available endpoints
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In