loosheng
MCP Serverlooshengpublic

knife4j mcp

knife4j mcp server

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
MIT License
License

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:

  1. get_docs - Get a list of all available document modules
  2. get_module_apis - Get a list of all APIs under the specified module
  3. get_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

1

Clone the repository

git clone https://github.com/loosheng/knife4j-mcp
2

Install dependencies

cd knife4j-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerloosheng
Repoknife4j-mcp
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation