Feedback

OpenAPI Slice MCP Server

@vvarp Claim

Basic information

Category
License
MIT
Transports
stdio
Author
vvarp
Submitted by
Community
Quality
25

About OpenAPI Slice MCP Server

An MCP (Model Context Protocol) server that helps you work with large OpenAPI specifications by extracting only the relevant portions for specific endpoints. This is particularly useful when working with LLMs that have context limitations - instead of loading an entire large Open

OpenAPI Slice is a MCP server in the Other category listed in the AddMCP.net directory, published by vvarp. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: openapi.

Setup

{
    "mcpServers": {
        "openapi-slice-mcp": {
            "command": "uvx",
            "args": [
                "openapi-slice-mcp"
            ]
        }
    }
}

OpenAPI Slice MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "openapi-slice-mcp": {
            "command": "uvx",
            "args": [
                "openapi-slice-mcp"
            ]
        }
    }
}

OpenAPI Slice MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is OpenAPI Slice?

OpenAPI Slice MCP is a Model Context Protocol server that extracts only the relevant portions of large OpenAPI specifications for specific endpoints. It helps developers and LLMs work with large specs by reducing context size through automatic dependency resolution, supporting both local files and remote URLs.

How to use OpenAPI Slice?

Run the server with uvx openapi-slice-mcp. It communicates via STDIO and provides tools to load specs (from file or URL), list endpoints, extract endpoint slices, and check server status.

Key features of OpenAPI Slice

  • Endpoint-specific extraction with automatic dependency resolution
  • Supports local YAML/JSON files and remote URLs (HTTP/HTTPS)
  • Output in YAML or JSON format
  • Discovery tool to list all endpoints in a loaded spec
  • Recursively includes all referenced components (schemas, parameters, etc.)

Use cases of OpenAPI Slice

  • Extracting a minimal spec for a single API endpoint to fit within LLM context limits
  • Reducing token usage when sending OpenAPI definitions to AI assistants
  • Isolating endpoint definitions for testing or documentation generation

Frequently asked questions

1 What makes OpenAPI Slice MCP different from loading the full spec?

It extracts only the requested endpoint and its dependencies, unlike loading the entire OpenAPI specification. This is especially useful when working with LLMs that have context limitations.

2 What are the runtime requirements?

The server is run via uvx (from the uv package manager) and requires Python. No additional dependencies are listed beyond those bundled in the package.

3 Where does the data live?

Specifications can be loaded from local files (YAML/JSON) or fetched from remote URLs. No data is persisted on the server beyond the currently loaded spec.

4 What transport and authentication does it use?

The server uses STDIO transport and does not mention any authentication mechanism. It is designed for local or trusted setups.

5 Can I get the output in different formats?

Yes, the extract_endpoint_slice tool accepts an output_format parameter that can be set to "yaml" (default) or "json".

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬