
knife4j mcp
knife4j mcp server
Repository Info
About This Server
knife4j mcp server
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
knife4j-mcp
MCP server for Knife4j OpenAPI documentation.
This project provides a Model Context Protocol (MCP) server that converts OpenAPI documentation to Markdown format, making it easily accessible to LLMs.
Features
- Converts OpenAPI documentation to Markdown format
- Extracts modules and APIs from the documentation
- Provides detailed API information
- Supports multiple documentation sources
Usage
JSON config
{
"mcpServers": {
"knife4j": {
"command": "npx",
"args": ["-y", "knife4j-mcp"],
"env": {
"DOCS_URL": "http://<your-knife4j-host>/v3/api-docs,http://<your-knife4j-host>/v2/api-docs"
}
}
}
}
Available Tools
The server provides three main tools:
get_docs- Get a list of all available document modulesget_module_apis- Get a list of all APIs under the specified moduleget_api_details- Get detailed information about a specific API
Development
# Install dependencies
bun install
# Run the server
bun run index.ts
License
MIT
Quick Start
Clone the repository
git clone https://github.com/loosheng/knife4j-mcpInstall dependencies
cd knife4j-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.