Back to Home
davidruzicka icon

mcp4openapi

Verified Safe

by davidruzicka

Overview

Acts as a universal Model Context Protocol (MCP) server, transforming any OpenAPI specification into production-ready MCP tools for consumption by AI clients like LLMs and IDEs, aiming to reduce context pollution and enable custom workflows through profiles.

Installation

Run Command
npx mcp4openapi

Environment Variables

  • MCP4_OPENAPI_SPEC_PATH
  • MCP4_API_TOKEN
  • MCP4_API_BASE_URL

Security Notes

The project demonstrates a strong focus on security. It includes DNS rebinding protection and strict Host header validation, robust CORS and Origin validation using `allowedOrigins` (supporting wildcards and CIDR ranges), and XSS sanitization of error messages (e.g., in OAuth callbacks). OAuth 2.0 implementation features PKCE, code expiration checks, and thorough redirect URI host validation to prevent open redirects. All endpoints, including OAuth, are rate-limited. Sensitive information like API tokens is redacted from logs, and token length validation is enforced. Secrets are consistently managed via environment variables, with no hardcoded values observed. No usage of `eval` or similar dangerous patterns was found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2025-12-06

Tags

OpenAPIMCPLLMAIAPI GatewayToolsIntegration