← Go back

What are the risks of MCP servers with network access?

Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team

The short answer

Network access turns a local tool into a relationship with the whole internet: it can fetch attacker-influenced content into the agent's context, carry your data to arbitrary endpoints through innocent-looking parameters, and reach internal services its arguments can be steered toward. The control is destination discipline — the job should be able to name every host the tool legitimately talks to, and anything it cannot name is scope to remove, fence or watch. TrustGate's scan surfaces the capability picture (network tools in the toxic-flow graph, URL-shaped schema fields in the diff), and baselines ensure the door cannot be widened silently after approval.

Run the free MCP scan  See pricing  Watch the live demo diff

What is network access risk (in MCP tools)?

Network access risk is the exposure created by MCP tools that can initiate or receive network communication: fetching URLs, calling APIs, posting to webhooks, or accepting callback addresses. It has two directions with distinct failure modes — inbound (untrusted content entering the agent's context, carrying injection and false data) and outbound (data leaving to destinations the arguments select, including internal network addresses the tool can be steered to reach, the pattern known as server-side request forgery when the tool runs server-side). Both directions are governed by the same question: which destinations does the job actually require?

Outbound: every destination is a decision

An agent wielding a general fetch or post tool can be steered — by content it read, by a description's suggestion, by a user's unexamined request — to send data anywhere URL-shaped. The sink analysis from the exfiltration guide applies with full force, plus one network-specific twist: the destination can be encoded inside other data (a redirect chain, a shortened link, a ‘documentation URL’ inside the very document being processed), so the apparent destination and the real one diverge. Destination discipline therefore operates at the tool's configuration where possible (allowlists of hosts the job needs), and where the tool is intentionally general, at the policy layer: agents holding general network tools do not also hold the estate's private sources.

The quieter outbound path is telemetry-by-design: tools that ‘phone home’ usage data, error reports or ‘context for quality’ to the vendor. Sometimes disclosed, sometimes discovered in the traffic, it moves operational metadata — which tools, which accounts, what shapes of data — outside your diligence perimeter. The hosted-privacy questions (that guide) cover the vendor side; for local network tools, the same answers must come from your own observation: a new server earns a watched first week, in which its actual destinations are compared against its documented ones.

Inbound: the fetch is an injection with a return ticket

Every fetched page, API response and webhook payload enters the agent's context with the fetch tool's implicit endorsement — ‘here is the thing you asked for’ — and may carry instructions, fabricated facts, or content designed to make the agent fetch further (the self-extending read). Inbound risk is therefore governed by the reader rules from the prompts-and-resources guide: the fetching agent's other tools are scoped as if its context were hostile, because at any moment it may be. The specific network addition: fetched content should never be able to choose the agent's next destination unchecked — link-following depth and domain-crossing are policy decisions, not model whims.

Data-quality attacks ride the same door: a source that returns subtly wrong facts (prices, statuses, addresses) steers decisions without any instruction ever being given. Where a network tool feeds consequential decisions, corroboration is the control — a second source for the load-bearing facts, or a human checkpoint where the numbers move money. Not every fetch deserves a second opinion; every fetch whose output signs cheques does, and the threat model (that guide) is where the distinction gets written down per workflow.

The internal network: SSRF-shaped arguments

A tool that fetches arbitrary URLs from a server, a cloud instance or an office machine can be aimed inward: at metadata endpoints, admin interfaces, internal dashboards and the other services that trust the local network because ‘only our systems can reach them’. An agent's fetch tool makes ‘our systems’ include anyone who can steer the agent — which, through its reading material, can be the whole internet. This is the server-side request forgery pattern wearing agent clothes, and it is the reason ‘the fetch tool only reads public web pages’ must be a mechanically enforced property, not a description.

Defences are destination discipline in its strictest form: deny private and link-local address ranges at the tool or the egress layer, allowlist the public destinations the job names, and treat any schema field that accepts a URL from untrusted content as a loaded argument requiring validation before use. Where the vendor's tool cannot enforce ranges, composition compensates: the fetching agent runs where its network reach is already segmented, so an inward aim finds a wall instead of a control panel.

Callbacks and webhooks: the door that opens inward

Tools that accept a callback or notify URL invert the flow: now the outside world initiates contact with something in your stack, at a time and with a payload of its choosing. The risks compound the outbound ones — payloads arrive as fresh ‘events’ the agent trusts, and the callback address itself, if steerable, can point the server’s payloads (often containing your data) at an attacker's endpoint. Schema review should treat every URL-accepting field as a callback in waiting: who chooses this value in practice — your config, the user, or content the agent read? Only the first answer is acceptable for anything carrying data.

Legitimate webhook workflows exist and are governable: fixed callback addresses set in configuration (never per-call from content), payload signatures verified, and the receiving agent scoped as an untrusted-input reader. The recurring failure is the convenience field — ‘notify me at this URL’ added for one integration, defaulting into every tenant's schema — which the fleet meets, correctly, in the diff queue with the schema-drift questions: what data flows to a caller-chosen address, and why does a caller get to choose it?

Watching the wire you cannot fully see

Definition governance does not inspect traffic — the gateway's honesty about not reading arguments or results applies here in full — so network behaviour needs its own observation layer proportioned to the stakes: egress logs or DNS records for the machines running consequential local servers, vendor-side call logs for hosted ones, and a first-week watch on any new network tool comparing actual destinations to documented ones. The point is not surveillance maximalism; it is that destination claims, like definition claims, should be verified against an artefact at least once, because both kinds of claim have the same author incentives.

Change governance closes the loop the logs open: a new destination discovered in traffic that no diff announced is a finding about the vendor's discipline (into their ledger it goes), and a diff that adds a URL field or a fetch tool is a network event even when it is labelled a feature — the queue's class rules should say so explicitly, so network-capable additions always draw the destination questions while the change is still a proposal.

A sane egress posture, stated plainly

Per tool, the job names its destinations; the tool or the layer beneath it enforces the list; private address ranges are denied by default; callback addresses live in configuration, never in content-supplied arguments; fetching agents are composed as untrusted readers; and every new network capability arrives through the adoption path or the diff queue with its destinations stated. That paragraph is the entire doctrine, and like the file-access doctrine it is an afternoon of configuration for most fleets — because the tools were never the problem. The problem is the default, in which a tool's network reach is ‘everywhere, both directions, decided per call by whoever influenced the agent last’. Defaults are decisions; this one is simply the decision written down where a reviewer can sign it.

The 5-action checklist

  1. Per network tool, list the destinations the job requires; enforce the list at the tool or egress layer and deny private ranges by default.
  2. Treat every URL-accepting schema field as a potential callback/sink: who chooses its value in practice decides its review depth.
  3. Compose fetching agents as untrusted readers — no private sources or external sinks sharing their context without a designed bridge.
  4. Watch one week of real destinations for any new network tool and compare against its documented behaviour; log discrepancies in the vendor ledger.
  5. Class any diff adding fetch/post capability or URL fields as a network event requiring the destination questions before approval.

Worked example: the price-check tool that could read the intranet

A fictional retailer's agent used a ‘price intelligence’ MCP server: give it a product page URL, it returned competitor pricing. The adoption review's schema read flagged the obvious — the tool accepted any URL — and the staging probe found the rest: pointed at an internal admin address (a test instance stood up for the purpose), the server happily fetched and summarised it, because it ran on the retailer's cloud network with the metadata and internal ranges fully reachable. No malice anywhere; the tool fetched what it was told, from wherever it was told, which was precisely the finding.

The remediation was layered in a day: the server moved to a segmented runner whose egress denied private ranges, its allowed destinations were pinned to the competitor domains the job actually used, and the agent's policy recorded that URL arguments originate from the merchandising team's list — never from fetched content. A quarterly probe re-tests the internal ranges as part of the battery. The tool still checks prices exactly as before; what changed is that ‘any URL’ became a list, and the list has an owner.

Frequently asked questions

Is a simple web-search tool a network risk?

A managed search API tool is among the tamer network citizens — destinations are the provider's, results are content (governed by the reader rules). The risk jumps when the tool fetches arbitrary URLs itself, accepts callback addresses, or runs from inside your network perimeter. Classify by the mechanism (who chooses destinations, from where does it fetch), not by the friendly label on the tin.

Can the gateway block malicious URLs?

No — the gateway checks tool definitions against the pinned baseline; it does not inspect call arguments, so it cannot judge a URL. Its network contribution is preventing unapproved network capabilities (a new fetch tool, a widened schema) from executing — the capability gate — while destination enforcement belongs to the tool's configuration, the egress layer and composition. Each control in its layer, honestly scoped.

Our tool needs to fetch customer-supplied URLs. Now what?

Then validation is the product feature: resolve and range-check destinations before fetching (deny private/link-local), re-check after redirects, fetch from a segmented runner, cap size and depth, and treat everything returned as untrusted content under the reader rules. Customer-supplied URLs are a legitimate pattern with a known safety shape — the shape is simply non-optional, because the customer set includes your future attacker.

How do we discover a tool's undocumented destinations?

Observe a watched first week: egress or DNS logs on the runner for local servers; for hosted servers, ask the vendor for the data-flow list and compare it against the subprocessor disclosures you already hold. Any destination without a job-shaped explanation becomes a diligence question with the traffic record attached — the network version of putting a quoted description line to a vendor, and about as easy to answer well when the behaviour is innocent.

Do read-only fetches need the same treatment as posts?

Outbound data risk differs (a pure fetch sends little beyond the URL and headers — though the URL itself can carry data, and headers carry identity), but inbound and SSRF risks are identical, and ‘read-only’ network tools are the classic inward-aim vehicle. Apply the destination discipline to both directions; reserve the deepest scrutiny for tools that can also carry payloads out.

Keep exploring

Start with the free TrustGate scan of your own MCP setup, compare Free vs Pro vs Team, try the live rug-pull demo and the MCP change impact simulator, or browse the full guides index.