Safeguard
AI Security•

Local or remote MCP for security tools: which should you choose?

Local MCP servers run on a laptop with your privileges, remote ones run on the vendor side. A decision guide for security tools, with a comparison table.

Safeguard Security Team
6 min read

Choose remote when the tool holds shared data and you want central sign in, tokens and revocation. Choose local only when the data is on the machine anyway and you can vet and sandbox the code. A local server runs with the same privileges as the client, which is the main risk to weigh.

The core difference

The MCP architecture overview explains the split. A local server uses the stdio transport and usually serves one client on the same machine. A remote server uses Streamable HTTP and usually serves many clients, with OAuth recommended for tokens.

Claude's documentation adds a practical point: desktop extensions are local MCP servers packaged for single click install, and advanced research cannot use local servers.

Comparison

FactorLocal serverRemote server
Where code runsYour workstationVendor or your cloud
CredentialsEnvironment variablesOAuth or fixed header
UpdatesYou or the extension storeThe server operator
Blast radiusYour user's file and network accessThe scopes of the token
Network needNonePublic endpoint or allowlist
Fit for shared findingsWeakStrong

What the security guidance says about local servers

The MCP security best practices page lists local server compromise as a distinct risk. Attackers may embed a malicious startup command in a configuration, ship a payload inside the server, or reach an insecure server left running on localhost. The page notes that local servers run with the same privileges as the client and recommends consent dialogs that show the exact command, plus sandboxing with minimal default privileges.

It also says servers meant to run locally should use stdio to limit access to the client, or require an authorization token over HTTP.

A decision path

  1. Does the security data live in a shared platform? Prefer remote.
  2. Is the tool a small helper that reads local files, such as a lockfile? Local may be fine.
  3. Can you read the code and pin the version? If not, do not run it locally.
  4. Can the endpoint be public with proper authentication, or allowlisted? If not, local may be the fallback.
  5. Who updates it? Name an owner either way.

Mistakes to avoid

  • Installing a local server from a one click link without reading the command.
  • Putting long lived keys in a shared configuration file under version control.
  • Assuming that local means safe. Local means your machine is the target.

A worked example: three tools, three answers

These are hypothetical tools used to show the reasoning.

Tool 1, a dependency checker that reads a lockfile in the current folder. It needs local files and returns advisories from a service. A local server fits, since the input is on the machine. The team pins a version, reads the startup command, and runs it with access only to the project folder.

Tool 2, a vulnerability platform holding findings for fifty projects. The data is shared and sensitive and belongs behind central sign in. A remote server fits. The team requires OAuth, scopes and logging, and confirms the endpoint rules.

Tool 3, a helper from a public repository that promises to do both. Nobody on the team can say who maintains it. The team declines until an owner can be named. This is the case the best practices page worries about, where a startup command is run on trust.

Step by step: vet a local server before first run

  1. Find the exact startup command in the configuration or installer. The guidance says clients should show the exact command without truncation.
  2. Read it. Look for network calls, shell chains and access to home directory paths.
  3. Identify the package source and the maintainer. Pin a specific version, not a floating one.
  4. Run it in a sandbox, such as a container or a separate account with minimal rights, as the guidance recommends.
  5. Give it only the folders it needs.
  6. Store its credential in an environment variable that is not committed to version control.
  7. Watch the first run, then decide whether to keep it.

Step by step: vet a remote server

  1. Confirm the operator and hosting details.
  2. Test the endpoint for refusal without a valid token.
  3. Review scopes and tools.
  4. Review logging and change notices.
  5. Decide who owns the connector and when it will be reviewed again.

Cost of each choice

CostLocalRemote
Review effortRead code and commands on each machineReview once, centrally
Update effortEach machine or extension storeVendor handles it, you track changes
Incident scopeOne workstation, with its credentialsWhatever the token allows
OffboardingUninstall and remove credentialsRevoke the user at the vendor

Mixed estates

Most teams end up with both. The risk in a mixed estate is losing track. Keep one register that lists every connector with a column for local or remote, and review local ones more often, because they run code on devices that also hold email, source code and keys.

What to avoid

Do not install a local server because a web page offers a one click button. The guidance says one click configuration needs a consent step that shows the command and warns that it runs code with the client's privileges. If your client does not show that, pause.

Where Safeguard fits

Safeguard offers asset discovery for inventory and an MCP Guardrail for policy on what agents may call. Neither replaces reading a server before you run it. The Safeguard CLI, installed with a curl or PowerShell installer, can also write code, and the download page lists a Local agent and a Cloud agent as available.

Try it yourself

Click through it at your own pace, or open it full screen.

Compare how the server is configured and what it can reach before you decide where it should run.

Quick check

Is a local server safer because it is not on the internet?

Not automatically. It runs with your privileges, so a malicious or buggy server can reach files and credentials on your machine.

Can research mode use local servers?

Per Claude's help center, advanced research cannot use local MCP servers.

Can I run both a local and a remote server for the same tool?

Yes, but treat them as two connectors with two reviews and two sets of credentials.

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.