MCP ExplorerExplorer

Api Doc Mcp

@zkytechon a year ago
2 MIT
FreeCommunity
AI Systems
MCP tools for managing and retrieving OpenAPI documentation efficiently.

Overview

What is Api Doc Mcp

api-doc-mcp is a toolkit designed for managing and retrieving OpenAPI documentation efficiently.

Use cases

Use cases include viewing API documentation, managing multiple API groups, retrieving specific API details for debugging, and searching for APIs based on keywords.

How to use

To use api-doc-mcp, run the command ‘npx api-doc-mcp <API_DOC_URL_OR_FILE_PATH>’ in your terminal. You can specify either a remote API documentation URL or a local JSON file path.

Key features

Key features include listing all API groups, listing APIs in a specified group, retrieving API details, searching APIs, supporting both remote and local documentation, and auto-refreshing API documentation on each request.

Where to use

api-doc-mcp can be used in software development environments where OpenAPI specifications are utilized, such as backend development, API management, and documentation generation.

Content

api-doc-mcp

This is a set of MCP tools for managing and retrieving OpenAPI documentation.

Features

This toolkit provides the following features:

  1. List all API groups
  2. List APIs in a specified group
  3. Get API details
  4. Search APIs
  5. Support both remote API docs and local JSON files
  6. Auto-refresh API documentation on each request

Usage

For cursor

# remote api
npx -y api-doc-mcp http://localhost:8000/swagger.json

# local file
npx -y api-doc-mcp ./swagger.json

Build

npm run build

Usage

Command Format

npx api-doc-mcp <API_DOC_URL_OR_FILE_PATH>

Examples

  1. View help:
npx api-doc-mcp
  1. List all API groups (Remote API):
npx api-doc-mcp https://api.example.com/swagger.json
  1. List all API groups (Local file):
npx api-doc-mcp ./swagger.json

Development

npm run dev

Tool Description

listApiGroups

List all available API groups.

Returns:

  • name: Group name
  • description: Group description
  • apiCount: API count

listGroupApis

List all APIs in a specified group.

Parameters:

  • groupName: API group name

Returns:

  • path: API path
  • method: HTTP method
  • summary: API summary

getApiDetail

Get detailed information about a specified API.

Parameters:

  • path: API path
  • method: HTTP method

Returns:

  • Complete API details, including parameters, request body, and response definition

searchApis

Search APIs.

Parameters:

  • keyword: Search keyword

Returns:

  • path: API path
  • method: HTTP method
  • summary: API summary

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers