MCP server · Org-owned · Audited from source
Swagger MCP server
by vizioz/swagger-mcpMIT licenceAudited 6 Oct 2026 · source 06c2fab40182
Is it safe? No — BLOCK, grade D (69/100). It exposes 14 tools: 12 read, 1 write and 1 destructive. The audit recorded 5 findings (0 critical, 2 high, 1 medium, 2 low). Maintainer's description: MCP wrapper for Swagger/OpenAPI definitions
Cite
Cite this page
ModelsAtlas. “Swagger MCP server (vizioz/swagger-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/vizioz/swagger-4
Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Code injection at src/utils/swaggerLoader.ts:88. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 6 Oct 2026
5 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared2 observations
- NetworkDeclared2 observations
- ShellDeclared2 observations
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (5)
Sorted by severity
HIGHCode injectioncode.deserialize · src/utils/swaggerLoader.ts:88
swaggerData = yaml.load(response.data);
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
HIGHCode injectioncode.deserialize · src/utils/swaggerLoader.ts:134
return yaml.load(swaggerContent);
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
MEDIUMFilesystem / pathmcp.destructive_tools
httpMethod
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · src/tools/version.ts:32
const packageJsonPath = path.resolve(__dirname, "../../package.json");
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @types/js-yaml, @types/minimist, axios, dotenv, js-yaml, minimist, winston
- Why
- 13 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
14 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
httpMethod | HTTP method of the endpoint (e.g., GET, POST, PUT, DELETE) | destructive |
add-endpoint | Guide through the process of adding a new endpoint using Swagger MCP tools | write |
endpointPath | Path of the endpoint to implement (e.g., /pets/{id}) | read |
generateEndpointToolCode | Generates TypeScript code for an MCP tool definition based on a Swagger endpoint. Priority: CLI --swagger-url > swaggerFilePath parameter. | read |
generateModelCode | Generates TypeScript code for a model from the Swagger definition. Priority: CLI --swagger-url > swaggerFilePath parameter. | read |
getPet | Get a pet by ID | read |
getSwaggerDefinition | Fetches a Swagger/OpenAPI definition from a URL and saves it locally. IMPORTANT: After calling this tool, you will receive a response containing a | read |
listEndpointModels | Lists all models used by a specific endpoint from the Swagger definition. Priority: CLI --swagger-url > swaggerFilePath parameter. | read |
listEndpoints | Lists all endpoints from the Swagger definition including their HTTP methods and descriptions. Priority: CLI --swagger-url > swaggerFilePath parameter. | read |
project.FeatureOrder | Simple model (FeatureOrder) | read |
swaggerUrl | URL of the Swagger definition (optional if already configured) | read |
task.Request | Complex model (Task Request) | read |
task.Task | Core model (Task) | read |
version | Returns the current version number of the Swagger MCP Server. | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
06c2fab40182
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Swagger MCP server
What is the Swagger MCP server?
What tools does Swagger expose?
Is Swagger safe to connect to an agent?
What credentials does Swagger need?
How does Swagger run?
How current is this page?
I already installed Swagger. What should I do?
Can the verdict change?
Sources
- vizioz/swagger-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 06c2fab40182Observed · 6 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Swagger MCP server?
- What tools does Swagger expose?
- Is Swagger safe to connect to an agent?