Safeguard
AI Security•

Is it safe to install an MCP server from the internet?

A local MCP server is code that runs with your privileges. Read the launch command, check the source, sandbox it, scope its access and review its tools.

Safeguard Security Team
4 min read

It can be, if you treat it like any program you download and run. A local MCP server is code with the same privileges as the client that launches it. Read the exact command, check where the package comes from, run it in a sandbox, give it least access and watch what tools it exposes.

Definitions

Local MCP server. A program started on your machine, usually through a command in a config file, that talks to the client over stdio.

Remote MCP server. A hosted service reached over HTTP, with its own tokens and its own operator.

Launch command. The command stored in config, such as an npx or uvx invocation, that downloads and runs the server.

Risk by type

TypeMain riskFirst control
Local, package from a registryMalicious or compromised packageVerify the publisher, pin the version
Local, from a repositoryCode you have not readRead it or run it sandboxed
Remote, run by a vendorData you send to a third partyCheck scopes, data terms and logging
Remote, run by youYour own misconfigurationToken audience checks, access control

Vetting steps

  1. Read the full launch command. The MCP security guidance says clients should show the exact command without truncation and warn that it executes code. Look for sudo, deletion commands, network calls and access to home directory paths.
  2. Check the source. Find the repository, the maintainers and the recent history. Be cautious about names that resemble well known packages.
  3. Pin the version. A floating latest tag lets a later release change behavior. Update on purpose after review.
  4. Run it in a sandbox. The guidance recommends containers or application sandboxes with restricted file, network and system access, with explicit grants when needed.
  5. Prefer stdio for local use so other processes cannot reach it, or require a token if you use HTTP on localhost.
  6. Limit credentials. Give the server a token with the smallest scope and keep it out of git.
  7. Review the tools it exposes. Read each tool name and description. Treat tool annotations as untrusted unless they come from a server you trust, as the specification says.
  8. Keep human approval on. Do not auto approve tools from a server you have just added.
  9. Record it. Add the server to an inventory with an owner, the version and the date you reviewed it.

Vendor stance worth knowing

Anthropic's Claude Code documentation encourages writing your own MCP servers or using ones from providers you trust, and says Anthropic does not security-audit or manage any MCP server. That applies generally: a directory listing is not a guarantee.

Try it yourself

Click through it at your own pace, or open it full screen. Notice what the connection step asks you to approve.

Quick check

Can an MCP server steal my files?

A local server runs with your user's privileges, so it can read what you can read unless a sandbox or permission layer stops it. That is why sandboxing and least access matter.

Is a popular server safe because many people use it?

Popularity is not a review. Packages get compromised after they become popular. Pin versions and review updates.

What about servers inside a repository's config file?

Treat a project config that adds servers like code from the repository. Review it before trusting the folder.

Where Safeguard fits

Safeguard scans the packages behind a server for known vulnerabilities, offers an MCP Guardrail and asset discovery to help find which servers are in use, and provides a free scan at gold.safeguard.sh/scan.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.