# mcp-openapi-server

> MCP Server

This repository provides an OpenAPI MCP server, enabling Large Language Models to interact with REST APIs defined by OpenAPI specifications through the Model Context Protocol. It simplifies API discovery and

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 287
- **Forks:** 11
- **Owner:** ivo-toby
- **GitHub:** https://github.com/ivo-toby/mcp-openapi-server
- **Created:** 2024-12-05T12:21:01+00:00
- **Updated:** 2025-03-27T16:28:02+00:00
- **Source:** https://model-context-protocol.com/servers/openapi-mcp-server-rest-api-integration

## Setup

## Setup

1. Locate or create your Claude Desktop configuration file: `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS).
2. Add the provided configuration to enable the OpenAPI MCP server, including `command`, `args`, and `env` with `API_BASE_URL`, `OPENAPI_SPEC_PATH`, and `API_HEADERS`.
3. Replace the environment variables with your actual API configuration, such as the base URL, OpenAPI specification path/URL, and API authentication headers.

## Tools

## Available Tools

1. Building (`npm run build`, `npm run clean`, `npm run typecheck`) - Tools for building the TypeScript source, removing build artifacts, and running TypeScript type checking.
2. Development Mode (`npm run dev`, `npm run inspect-watch`) - Tools for watching source files, rebuilding on changes, and running the inspector with auto-reload.
3. Code Quality (`npm run lint`, `npm run typecheck`) - Tools for running ESLint and verifying TypeScript types.
4. Configuration (Environment Variables and Command Line Arguments) - Methods to configure the server using environment variables or command line arguments for API base URL, OpenAPI spec path, API headers, server name, and version.
5. Debugging - Methods to view debug logs in development mode or when running directly.
