Back to Home
heebin2 icon

go-swagger-mcp

Verified Safe

by heebin2

Overview

This server provides a Model Context Protocol (MCP) interface to manage and retrieve Swagger/OpenAPI specifications.

Installation

Run Command
SWAGGER_MCP_SERVER_URL="https://petstore.swagger.io/v2/swagger.json" go run cmd/mcp/main.go

Environment Variables

  • SWAGGER_MCP_SERVER_URL

Security Notes

The server loads Swagger specifications from pre-configured URLs or local paths at startup. While loading from untrusted URLs could theoretically pose risks (e.g., if a malicious spec is hosted), the implementation only processes URLs provided via the `SWAGGER_MCP_SERVER_URL` environment variable during server initialization, mitigating dynamic SSRF risks from external requests. There are no 'eval' or similar dangerous dynamic code execution patterns. The server binds to port 8080 by default, primarily for SSE communication, and lacks explicit authentication/authorization mechanisms within the provided code, relying on the MCP framework or deployment context for security.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens3500
Stars0
Forks0
Last Update2025-12-15

Tags

MCPSwaggerOpenAPIAPI ManagementGo