Skip to main content
SkillTotal

Is mcp safe?

Low risk - review the findings before installing
Notable — review in context (a capability is not a malicious indicator):
  • Code writes to an AI agent's MCP configuration, settings or instruction files
  • Python shell/command execution
  • Python filesystem write/delete

What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.

mcp is a PyPI package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: delegated authentication, filesystem read, filesystem write, mcp tools detected and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).

mcp 2.3.0

PyPI package · pypi:mcp
LOW
20
/ 100 risk score
Snapshot · scanned Nov 8, 2026 · mcp@2.3.0 · engine 0.98.0 / ruleset 96

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of mcp's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
delegated authenticationfilesystem readfilesystem writemcp tools detectedshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Delegated authentication
Tool Execution Context / User Delegated Credentials
Metadata integrity risk
Trust / Tool Poisoning

Findings (6)

HIGHCode writes to an AI agent's MCP configuration, settings or instruction filesST-AGENT-CONFIG-INJECT

The component writes to a config file of a separate AI client (Claude Desktop, Cursor, VS Code, Continue, Windsurf), or, in the user's home directory, to an AI agent's settings, skills, subagents, commands or instruction and memory files (Claude Code, Codex, Gemini CLI, Cursor rules, AGENTS.md, CLAUDE.md). A server, hook or instruction added there loads in the agent's next session. That is expected from a command the user runs to set the agent up, and unexpected from code that runs on install or import.

config_file = config_dir / "claude_desktop_config.json"

Fix: Confirm why the component edits an agent's configuration or instructions. A tool that registers itself should ask the user and write only what it says it writes.

CapabilityPython shell/command executionnot scored · severity highST-SHELL-PY

The component can run operating-system commands or spawn processes.

subprocess.run([cmd, "--version"], check=True, capture_output=True, shell=True)
process = subprocess.run(
            [npx_cmd, "@modelcontextprotocol/inspector"] + uv_cmd,
            check=True,
            shell=shell,
            env=dict(os.environ.items()),  # Copy the environment for subprocess launch
        )
popen_obj = subprocess.Popen(
        [command, *args],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        stderr=errlog,
        env=env,
        cwd=cwd,
        bufsize=0,  # Unbuffered output
        creationflags=ge …

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.

CapabilityPython filesystem readnot scored · severity mediumST-FS-PY-READ

The component reads files from disk.

config = json.loads(config_file.read_bytes())
with open(self.path, "rb") as f:
with open(self.path, "rb") as f:

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

CapabilityPython filesystem write/deletenot scored · severity mediumST-FS-PY-WRITE

The component writes or deletes files on disk.

config_file.write_text("{}", encoding="utf-8")
config_file.write_text(json.dumps(config, indent=2), encoding="utf-8")

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityDelegated authentication (OAuth 2.0 / OIDC)not scored · severity lowST-AUTH-DELEGATED

An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (10 occurrence(s) shown as evidence).

if self.context.oauth_metadata and self.context.oauth_metadata.authorization_endpoint:
auth_endpoint = str(self.context.oauth_metadata.authorization_endpoint)
"grant_type": "authorization_code",
"grant_type": "refresh_token",
oidc_path = f"/.well-known/openid-configuration{parsed.path.rstrip('/')}"
oidc_path = f"{parsed.path.rstrip('/')}/.well-known/openid-configuration"
urls.append(urljoin(base_url, "/.well-known/openid-configuration"))
authorization_endpoint=authorization_url,
authorization_endpoint: AnyHttpUrl
url="https://example.com/oauth/authorize",

Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

self._lowlevel_server.add_request_handler(
                "tools/call",
async with stdio_server() as (read_stream, write_stream):
self.add_tool(tool.fn, meta=tool.meta, **tool.kwargs)

Why it matters: Just context — review which tools it offers and their permissions.

Fix: Review the declared MCP tools and their permissions.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in mcp.

Maintain mcp?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →