Skip to main content
Glama
PowerDuckie

openapi-mcp-server

by PowerDuckie

A production-oriented TypeScript library and runtime that converts OpenAPI documents into MCP services.

Features

  • Tools generated from OpenAPI operations

  • Prompts generated from API metadata and operations

  • Resources generated from the OpenAPI catalog

  • HTTP and STDIO MCP transports

  • Admin Web UI

  • Persistent runtime state

  • Stronger validation and safer request execution

  • Production-oriented structure for future SaaS evolution

Related MCP server: OpenMCP

Install

npm install

Build

npm run build

Start web runtime

npm run start -- serve --port 3000 --host 127.0.0.1

Start STDIO runtime

node dist/cli.js serve --transport stdio --spec ./openapi.yaml

Demo

npm run demo

Library usage

import {
  parseSpecContent,
  generateTools,
  generatePrompts,
  generateResources,
  buildMcpServer,
} from "openapi-mcp-production";

CLI usage

Web mode

openapi-mcp serve \
  --transport web \
  --port 3000 \
  --host 127.0.0.1 \
  --api-key your-admin-key

STDIO mode

openapi-mcp serve \
  --transport stdio \
  --spec ./openapi.yaml \
  --base-url https://api.example.com

Production notes

This version is production-oriented, but you should still add the following for SaaS deployment:

  • tenant isolation

  • database-backed project registry

  • rate limits

  • audit logs

  • RBAC

  • secure secret storage

  • upstream host allowlists

  • comprehensive test suites

  • full OpenAPI parameter serialization coverage

  • full requestBody content negotiation support

Project structure

  • src/core: spec parsing, operation traversal, tool generation, request building, execution

  • src/mcp: MCP server creation and transports

  • src/registry: prompts and resources registries

  • src/runtime: runtime service registry

  • src/server: admin HTTP server

  • src/webui: browser UI

  • src/config: persistence helpers

Web UI

The UI supports:

  • upload and paste OpenAPI documents

  • view tools, prompts, and resources

  • inspect runtime services

  • stop services

  • basic MCP debugging hints

  • SSE endpoint discovery

  • STDIO tooltip guidance

Important implementation policy

All source comments are written in American English.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Automatically converts OpenAPI specifications into Model Context Protocol applications, enabling HTTP APIs to be managed as MCP services. It features a dynamic architecture that monitors file systems or Kubernetes ConfigMaps to update MCP tools in real-time.
    1
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables conversion of OpenAPI specifications into MCP servers and remixing multiple MCP servers into one. Works with stdio and sse transports and integrates with major chat clients.
    303
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Convert any OpenAPI spec into a secure MCP server with scoped auth, per-tool allow/deny policies, rate limiting, and a redacted audit trail.
    10
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PowerDuckie/openapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server