Mastra (mastra) MCP Server

@mastra/mcp npm v1.14.0 Source verified

Published by mastra-ai — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.

Trust grade
C
77/100
Last scanned
Trust
C · 77/100
How safe the published surface and source look. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
C Why this grade 100 − 23.1 = 77/100

Every server starts at 100. These are the exact deductions the deterministic engine applied — each one reproducible, none of it an opinion or an LLM's guess:

PointsWhat was foundCategory
−23.1 Dynamic evaluation of a non-literal value ×2 MTC-SRC-010 injection

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind the deduction.

Findings 6

high Dynamic evaluation of a non-literal value (dist/client/types.d.ts)MTC-SRC-010

In the server's implementation (`dist/client/types.d.ts:225`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: new Function(

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/client/types.d.ts

high Dynamic evaluation of a non-literal value (dist/server/server.d.ts)MTC-SRC-010

In the server's implementation (`dist/server/server.d.ts:240`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: new Function(

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/server/server.d.ts

high Dynamic code execution in server code (dist/client/types.d.ts)MTC-SRC-001

In the server's implementation (`dist/client/types.d.ts:225`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: new Function(

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/client/types.d.ts

high Dynamic code execution in server code (dist/server/server.d.ts)MTC-SRC-001

In the server's implementation (`dist/server/server.d.ts:240`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: new Function(

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/server/server.d.ts

high Shell/command execution in server code (dist/client/types.d.ts)MTC-SRC-002

In the server's implementation (`dist/client/types.d.ts:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: child_process

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/client/types.d.ts

medium Hardcoded egress to an external endpoint (dist/_types/hono/dist/types/request.d.ts)MTC-SRC-003

In the server's implementation (`dist/_types/hono/dist/types/request.d.ts:318`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: fetch('http://backend-service.com'

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/_types/hono/dist/types/request.d.ts

What this scan could not see

Versions

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v1.14.0 latest C 77/100 6 1.5.0 2026-07-22

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: C · 77/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/mastra-mcp/badge.svg)](https://mcptrustchecker.com/registry/mastra-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/mastra-mcp"><img src="https://mcptrustchecker.com/registry/mastra-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/mastra-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan @mastra/mcp --online

Use the free API → How scoring works

Other implementations of Mastra 1

Independent packages implementing the same tool, scanned with the same engine. Compare all 2 side by side →

More in AI & Agents