Knife4j MCP Server

MCP server for querying Knife4j / Swagger multi-module API docs

Local serverstdioTypeScript

What is the Knife4j MCP Server?

MCP server for querying Knife4j / Swagger multi-module API docs

What you get

一个基于 Node.js + TypeScript 的标准 MCP server(stdio),用于读取 Knife4j / Swagger 多模块接口文档,并为 Agent 提供结构化接口查询能力。

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Knife4j MCP Server

{
  "mcpServers": {
    "knife4j-swagger": {
      "command": "npx",
      "args": ["-y", "@chaselen/knife4j-mcp"],
      "env": {
        "SWAGGER_RESOURCES_URL": "http://127.0.0.1:3301/swagger-resources",
        "SWAGGER_BASIC_AUTH": "demo:demo"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SWAGGER_RESOURCES_URLEndpoint or connection string the server talks to.Yes
SWAGGER_BASIC_AUTHConfiguration value read at startup.Optional
SWAGGER_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Knife4j to OpenCode.”

Frequently asked questions

MCP server for querying Knife4j / Swagger multi-module API docs Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.