OpenAPI Unbundler logo

OpenAPI Unbundler

Community
gurvinder-dhillon

MCP to unbundle Large OpenAPI Spec

Publishergurvinder-dhillon
Repositoryunbundle_openapi_mcp
LanguageJavaScript
Forks
2
Stars
2
Available tools
2
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    OpenAPI Unbundler exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 2 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2 stars and 2 forks from the linked repository.

Unbundle OpenAPI MCP Server

smithery badge

This project provides a Model Context Protocol (MCP) server with tools to split OpenAPI specification files into multiple files or extract specific endpoints into a new file. It allows an MCP client (like an AI assistant) to manipulate OpenAPI specifications programmatically.

Prerequisites

  • Node.js (LTS version recommended, e.g., v18 or v20)
  • npm (comes with Node.js)

Usage

Installing via Smithery

To install Unbundle OpenAPI MCP Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @auto-browse/unbundle_openapi_mcp --client claude

The easiest way to use this server is via npx, which ensures you are always using the latest version without needing a global installation.

bash
npx @auto-browse/unbundle-openapi-mcp@latest

Alternatively, you can install it globally (not generally recommended):

bash
npm install -g @auto-browse/unbundle-openapi-mcp
# Then run using: unbundle-openapi-mcp

The server will start and listen for MCP requests on standard input/output (stdio).

Client Configuration

To use this server with MCP clients like VS Code, Cline, Cursor, or Claude Desktop, add its configuration to the respective settings file. The recommended approach uses npx.

VS Code / Cline / Cursor

Add the following to your User settings.json (accessible via Ctrl+Shift+P > Preferences: Open User Settings (JSON)) or to a .vscode/mcp.json file in your workspace root.

json
// In settings.json:
"mcp.servers": {
  "unbundle_openapi": { // You can choose any key name
    "command": "npx",
    "args": [
      "@auto-browse/unbundle-openapi-mcp@latest"
    ]
  }
  // ... other servers can be added here
},

// Or in .vscode/mcp.json (omit the top-level "mcp.servers"):
{
  "unbundle_openapi": { // You can choose any key name
    "command": "npx",
    "args": [
      "@auto-browse/unbundle-openapi-mcp@latest"
    ]
  }
  // ... other servers can be added here
}

Claude Desktop

Add the following to your claude_desktop_config.json file.

json
{
	"mcpServers": {
		"unbundle_openapi": {
			// You can choose any key name
			"command": "npx",
			"args": ["@auto-browse/unbundle-openapi-mcp@latest"]
		}
		// ... other servers can be added here
	}
}

After adding the configuration, restart your client application for the changes to take effect.

MCP Tools Provided

split_openapi

Description: Executes the redocly split command to unbundle an OpenAPI definition file into multiple smaller files based on its structure.

Arguments:

  • apiPath (string, required): The absolute path to the input OpenAPI definition file (e.g., openapi.yaml).
  • outputDir (string, required): The absolute path to the directory where the split output files should be saved. This directory will be created if it doesn't exist.

Returns:

  • On success: A text message containing the standard output from the redocly split command (usually a confirmation message).
  • On failure: An error message containing the standard error or exception details from the command execution, marked with isError: true.

Example Usage (Conceptual MCP Request):

json
{
	"tool_name": "split_openapi",
	"arguments": {
		"apiPath": "/path/to/your/openapi.yaml",
		"outputDir": "/path/to/output/directory"
	}
}

extract_openapi_endpoints

Description: Extracts specific endpoints from a large OpenAPI definition file and creates a new, smaller OpenAPI file containing only those endpoints and their referenced components. It achieves this by splitting the original file, modifying the structure to keep only specified paths, and then bundling the result.

Arguments:

  • inputApiPath (string, required): The absolute path to the large input OpenAPI definition file.
  • endpointsToKeep (array of strings, required): A list of the exact endpoint paths (strings) to include in the final output (e.g., ["/api", "/api/projects/{id}{.format}"]). Paths not found in the original spec will be ignored.
  • outputApiPath (string, required): The absolute path where the final, smaller bundled OpenAPI file should be saved. The directory will be created if it doesn't exist.

Returns:

  • On success: A text message indicating the path of the created file and the standard output from the redocly bundle command.
  • On failure: An error message containing details about the step that failed (split, modify, bundle), marked with isError: true.

Example Usage (Conceptual MCP Request):

json
{
	"tool_name": "extract_openapi_endpoints",
	"arguments": {
		"inputApiPath": "/path/to/large-openapi.yaml",
		"endpointsToKeep": ["/users", "/users/{userId}/profile"],
		"outputApiPath": "/path/to/extracted-openapi.yaml"
	}
}

Note: This server uses npx @redocly/cli@latest internally to execute the underlying split and bundle commands. An internet connection might be required for npx to fetch @redocly/cli if it's not cached. Temporary files are created during the extract_openapi_endpoints process and automatically cleaned up.

Development

If you want to contribute or run the server from source :

  1. Clone: Clone this repository.
  2. Navigate: cd unbundle_openapi_mcp
  3. Install Dependencies: npm install
  4. Build: npm run build (compiles TypeScript to dist/)
  5. Run: npm start (starts the server using the compiled code in dist/)

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "unbundle_openapi": {
      "command": "npx",
      "args": [
        "@auto-browse/unbundle-openapi-mcp@latest"
      ]
    }
  }
}

Available Tools

  • split_openapi
  • extract_openapi_endpoints

Use OpenAPI Unbundler MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once OpenAPI Unbundler is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add OpenAPI Unbundler as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the OpenAPI Unbundler MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "openapi-unbundler": {
      "command": "npx",
      "args": [
        "-y",
        "@auto-browse/unbundle-openapi-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the OpenAPI Unbundler MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the OpenAPI Unbundler MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use OpenAPI Unbundler to help me with this task?
OpenAPI Unbundler
Sure. I read it.
Here is what I found using OpenAPI Unbundler.

Frequently asked questions

What is the OpenAPI Unbundler MCP server used for?

OpenAPI Unbundler is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use OpenAPI Unbundler MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use OpenAPI Unbundler with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use OpenAPI Unbundler MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With OpenAPI Unbundler connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect OpenAPI Unbundler MCP to TypingMind?

OpenAPI Unbundler runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does OpenAPI Unbundler MCP provide in TypingMind?

OpenAPI Unbundler exposes 2 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use OpenAPI Unbundler MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If OpenAPI Unbundler requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇