Atlas / MCP servers / agentfront / mcp-from-openapi

mcp-from-openapiSAFE

mcp/agentfront/mcp-from-openapi

Production-ready TypeScript library for converting OpenAPI specifications into MCP (Model Context Protocol) tool

Verdict
SAFE
Grade
B
Trust score
86 /100
Exposed tools
12 12r · 0w · 0d
Transport
—
License
Apache-2.0
Stars
4
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Convert OpenAPI specifications into MCP tool definitions with automatic parameter conflict resolution

[](https://www.npmjs.com/package/mcp-from-openapi) [](https://www.npmjs.com/package/mcp-from-openapi) [](https://github.com/agentfront/mcp-from-openapi/actions/workflows/push.yml) [](https://github.com/agentfront/mcp-from-openapi/actions/workflows/push.yml) [](https://github.com/agentfront/mcp-from-openapi/actions/workflows/codeql.yml) [](https://opensource.org/license/apache-2-0) [](https://www.typescriptlang.org/) [](https://nodejs.org/)

What This Solves

When converting OpenAPI specs to MCP tools, you hit parameter conflicts -- the same name appears in different locations (path, query, body). This library resolves them automatically and gives you an explicit mapper for building HTTP requests.

The Problem:

paths:
/users/{id}:
post:
parameters:
- name: id # path
in: path
requestBody:
content:
application/json:
schema:
properties:
id: # body -- CONFLICT!
type: string

The Solution:

{
inputSchema: {
properties: {
pathId: { type: "string" },    // Automatically renamed
bodyId: { type: "string" }     // Automatically renamed
}
},
mapper: [
{ inputKey: "pathId", type: 
Read from source at commit 33d00fd68001OBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-from-openapi --env API_KEY=${API_KEY} --env JWT_TOKEN=${JWT_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-from-openapi": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "API_KEY": "${API_KEY}",
        "JWT_TOKEN": "${JWT_TOKEN}"
      }
    }
  }
}
03

Exposed tools (12)

12 read · 0 write · 0 destructive.

ToolRiskDescription
adminreadAdmin operations
barereadBare tool.
getUserreadGet user by ID
listItemsreadLists items.
mcp_namereadMcp description
searchTweetsreadSearch recent public posts
speak_namereadSpeak description
treadd
test_toolreadtest
uploadFilereadd
uploadRawreadd
usersreadUser operations
04

Trust audit

SAFEgrade B · trust 86/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (20)

MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
docs/security.md:128
key: '-----BEGIN PRIVATE KEY-----\n...',
LOWInventory / provenance · inv.hidden_file · CWE-1104
.yarnrc.yml
.yarnrc.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
e2e/helpers/arazzo-executor.ts:7
import { buildHttpRequest } from '../../src';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
e2e/helpers/arazzo-executor.ts:8
import type { ExpressionValueIR, McpOpenAPITool, RuntimeExpressionAST } from '../../src';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
e2e/helpers/http.ts:8
import type { BuiltHttpRequest, ResolvedSecurity } from '../../src';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
e2e/helpers/mcp.ts:9
import { toSdkTool } from '../../src';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
e2e/helpers/mcp.ts:10
import type { McpOpenAPITool } from '../../src';
LOWNetwork egress · net.beacon_words · CWE-200, CWE-319
src/__tests__/generator.spec.ts:3906
parameters: [{ name: 'q', in: 'query', schema: { $ref: 'https://attacker.example/exfil.json' } }],
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
docs/ssrf-prevention.md:15
- **Cloud credential theft** -- `$ref` pointing to `http://169.254.169.254/latest/meta-data/` steals AWS/GCP/Azure instance metadata
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
docs/ssrf-prevention.md:45
| `metadata.google.internal` | GCP metadata endpoint |
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
examples/secure-loading/README.md:8
- Built-in SSRF blocking: the test proves `http://169.254.169.254/...` (cloud metadata) is rejected **before any connection**, surfacing as `SsrfError`
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
examples/secure-loading/example.e2e.ts:22
const result = await tryLoad('http://169.254.169.254/openapi.json');
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
src/__tests__/generator.spec.ts:193
await expect(OpenAPIToolGenerator.fromURL('http://169.254.169.254/openapi.json')).rejects.toThrow(LoadError);
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
CHANGELOG.md:10
closes the `http://127.0.0.1.nip.io/` (and any DNS-name-to-internal) bypass.
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/ssrf-prevention.md:15
- **Cloud credential theft** -- `$ref` pointing to `http://169.254.169.254/latest/meta-data/` steals AWS/GCP/Azure instance metadata
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
examples/secure-loading/README.md:8
- Built-in SSRF blocking: the test proves `http://169.254.169.254/...` (cloud metadata) is rejected **before any connection**, surfacing as `SsrfError`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
examples/secure-loading/example.e2e.ts:22
const result = await tryLoad('http://169.254.169.254/openapi.json');
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/__tests__/generator.spec.ts:187
await expect(OpenAPIToolGenerator.fromURL('http://127.0.0.1:1/api.json', internal())).rejects.toThrow(LoadError);
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@apidevtools/json-schema-ref-parser, openapi-types, yaml, @modelcontextprotocol/sdk, @swc/core, @swc/helpers, @swc/jest, @types/jest
Why it matters. 16 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
CHANGELOG.md:18
client (DNS-validated, redirects refused) and the spec-load credentials
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 33d00fd68001full audit observations/trust-audit/mcp-server/agentfront__mcp-from-openapi.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-1233d00fd68001SAFEB86first audit
06

Questions

What is the mcp-from-openapi MCP server?

Production-ready TypeScript library for converting OpenAPI specifications into MCP (Model Context Protocol) tool

What tools does mcp-from-openapi expose?

12 in total: 12 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is mcp-from-openapi safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (86/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does mcp-from-openapi need?

It reads API_KEY and JWT_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (33d00fd68001), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement