Back to Home
loosheng icon

knife4j-mcp

Verified Safe

by loosheng

Overview

Provides a Model Context Protocol (MCP) server for Knife4j OpenAPI documentation, converting it to Markdown for LLM-driven batch operations and API exploration.

Installation

Run Command
npx knife4j-mcp

Environment Variables

  • DOCS_URL
  • PORT

Security Notes

The server fetches OpenAPI documentation from `DOCS_URL` using `ofetch`. While `DOCS_URL` is an environment variable (reducing direct user injection risk), careful control over this variable during deployment is critical to prevent Server-Side Request Forgery (SSRF) or fetching of malicious/internal content. No `eval` or obvious code obfuscation found in the provided source.

Similar Servers

Stats

Interest Score9
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars1
Forks1
Last Update2025-12-18

Tags

OpenAPILLM IntegrationAPI DocumentationMarkdown ConversionModel Context Protocol