Back to Home
digit1024 icon

mcp_openapi_bridge

Verified Safe

by digit1024

Overview

Dynamically exposes REST API endpoints as Model Context Protocol (MCP) tools by transforming an OpenAPI specification.

Installation

Run Command
BASE_URL="https://api.example.com" DOC_URL="https://api.example.com/openapi.json" ./target/release/mcp-openapi-transformer

Environment Variables

  • BASE_URL
  • DOC_URL

Security Notes

The server itself does not contain obvious vulnerabilities like 'eval' or hardcoded secrets. It relies on environment variables for its API base URL (`BASE_URL`) and OpenAPI documentation URL (`DOC_URL`). The primary security risk is operational: if `BASE_URL` is set to an internal network address and `DOC_URL` points to a potentially malicious or overly permissive OpenAPI specification, an MCP client could leverage the server to perform Server-Side Request Forgery (SSRF) attacks against internal services. The path parameter substitution uses `trim_matches('"')` for basic sanitization, but careful configuration of `BASE_URL` and `DOC_URL` is crucial to prevent exposing sensitive resources.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Stars0
Forks0
Last Update2025-11-23

Tags

OpenAPIMCPAPI GatewayTool GenerationRustAPI Integration