Back to Home
sotayamashita icon

openapi-mcp-server

Verified Safe

by sotayamashita

Overview

Converts OpenAPI specifications into Model Context Protocol (MCP) tools, enabling AI assistants to interact with APIs.

Installation

Run Command
bun run src/index.ts --api <openapi_spec_path_or_url>

Environment Variables

  • BASE_URL
  • HEADERS

Security Notes

The server uses `JSON.parse` on the `HEADERS` environment variable. While typically controlled by the user running the server, this could be a deserialization vulnerability if the environment variable can be maliciously manipulated remotely. The `operationId` from the OpenAPI spec is dynamically used to call `apiClientInstance[operationId]`; a maliciously crafted OpenAPI spec could potentially exploit this if `openapi-client-axios` has unknown vulnerabilities related to dynamic method invocation. No `eval` or direct command injection patterns were found. The use of well-known libraries (`@scalar/openapi-parser`, `openapi-client-axios`, `zod`) generally contributes to security.

Similar Servers

Stats

Interest Score35
Security Score7
Cost ClassMedium
Avg Tokens50
Stars6
Forks0
Last Update2026-01-16

Tags

OpenAPIMCPAI ToolsAPI IntegrationBun