Fetch MCP security

The reference fetch MCP server has no built-in enterprise controls: no SSO, RBAC, audit log or network allowlist is documented in its README. Its main risk is reaching local and internal addresses, so the controls must come from your network, host and client configuration.

On this page

Does the fetch MCP server meet our security requirements?

The reference fetch server gives an agent the ability to request arbitrary URLs, and its README documents no SSO, RBAC, audit logging or admin policy. Its own caution also says the server can access local and internal IP addresses and may be a security risk, so it should not be assumed to keep sensitive internal endpoints out of reach. Any requirement your organization has for identity, access control, logging or network boundaries has to be met by controls around the server, not by the server itself.

Before approving it, have the security reviewer read the caution in the Fetch MCP Server README and confirm which of your requirements the server cannot meet alone. The servers repository is the second source to check, because it describes these servers as reference implementations and educational examples, not hardened products. Treat the review as a list of gaps to close, and record who owns each closure before the server is connected to any agent.

Typical outside controls to confirm include network egress rules that block the metadata service, private address ranges and internal hostnames, a dedicated runtime identity with no access to internal systems, logging of every request at the proxy or host level, and a written approval step for each client that can call the tool. Ask your platform team to demonstrate these controls against an internal test address before rollout, and retest them after any upgrade, because the server README says the SDK port to version 2.0 was in progress when it was read.

Fetch MCP security capabilities and what is built in

This table compares the controls the fetch server's README documents with the controls an outside component would have to supply, and marks items the README does not address. Read the middle column as the fetch server's built-in behavior and the right column as what your team must confirm or add. The main takeaway is that the server is a read-style fetch with a robots.txt default, and that access control, network limits and audit controls are not documented in the README.

CapabilityDocumented in READMEOutside component neededNot documented
Read-only fetch toolSingle fetch tool retrieves a URL and returns contentNetwork egress controls to limit destinationsWhether any other tool exists in later versions
url argumentRequired; the page to retrieveAllowlist of permitted domainsWhether URL schemes or redirects are restricted
max_lengthOptional, default 5000 charactersResponse size monitoring at the clientBehavior on very large or streamed pages
start_indexOptional, default 0, for paging through contentNone specificLimits on how many pages a model may request
rawOptional, default false; true returns content without markdown conversionReview of raw output before it reaches sensitive contextsWhether raw mode changes any security checks
robots.txt obedienceObeyed by default for model-initiated tool calls, not for prompt-initiated requestsConfig review to confirm the default is in effectHow robots.txt is treated when a site is unreachable
--ignore-robots-txt flagCan be disabled by adding this argument to the args list in the server configurationConfig scanning for this flag in every deployed setupWhether any admin policy can block the flag
Local and internal address accessREADME warns the server can reach local and internal IP addresses and may be a security riskNetwork segmentation, egress firewall rules or a proxy that blocks private rangesWhether the server blocks private or loopback addresses itself
Local file writesNo write tool is documentedFile system permissions for the process running the serverConfirm with the vendor that no future version adds a write path
SSONot describedIdentity-aware gateway or client sign-in layerWhether the server authenticates end users at all
RBACNot describedGateway or client policy that controls who may call the toolAny role or permission model in the server
Audit loggingNot describedGateway, client or host logging of tool calls and URLsWhat the server logs and where logs are stored
Network allowlistNot describedEgress proxy or firewall allowlist of approved domainsWhether the server supports an allowlist option

What the fetch tool can reach and return

The reference fetch server exposes one tool, fetch, and that tool takes a required url argument. Three optional arguments shape what comes back to the model: max_length, which defaults to 5000 characters, start_index, which defaults to 0, and raw, which defaults to false. With raw left at false, the server converts HTML to markdown before returning it. Setting raw to true returns content without that conversion. Reviewers should treat these defaults as the baseline exposure: any page the model is pointed at can enter the conversation, and the 5000-character cap limits how much of it arrives in a single call. A model that pages through a long document by increasing start_index can still pull far more text than one call suggests, so the cap limits size per call, not total exposure.

The defaults matter for two reasons. First, the size of each response determines how much of a page, including any internal content the server could reach, is placed into the model's context and possibly into logs or transcripts kept by the client. Second, the raw setting changes what the model sees: markdown conversion strips much of the markup, while raw output keeps scripts, hidden elements and comments that a reviewer may not expect an agent to read. Before approval, confirm with the team that deploys the server whether any client configuration overrides max_length or raw, and whether the agent's instructions ask for raw output.

On the write side, the README documents only a read-style tool that retrieves a URL and returns its content. It documents no tool that writes to local files, so a review of this server's stated capabilities should not assume file creation or modification. That claim is limited to the documented tool list: confirm it against the installed version and the source code in your own environment, since a README describes the release it was written for. The practical risk is therefore one of disclosure rather than change: what the server reads and returns, and where that content is then sent, is the question to answer before rollout.

How a fetch request moves from the agent to the web

The flow starts with a user prompt or an agent tool call, which passes through the MCP client to the fetch server process on the host. The server checks robots.txt by default only when the model made the request through a tool. Requests a user starts through a prompt skip that check, so reviewers should not treat it as a control. Outbound requests then cross the organization's network controls on their way to the target URL, which is where local and internal address access can be blocked or logged. The response returns as markdown by default, or as raw content when raw is set.

Request path from client to target, with the robots.txt check and network controls marked.

Gaps the reference server leaves for your team

The reference fetch server gives a model a read-style way to pull web pages, and its documentation leaves several controls to the deploying team. The cards below cover the gaps reviewers most often need to close before approval, and the usual way each one is covered in your own environment.

Internal and local address reach

The fetch README warns that the server can access local and internal IP addresses and may be a security risk. A model that can be steered toward a URL resolving to a loopback, private or cloud metadata address can reach services the user never meant to expose, which is the classic server-side request forgery pattern. Cover it with egress rules at the network layer that deny private and link-local ranges for the fetch process, and run the server on a host that has no route to internal admin consoles or metadata endpoints. Test it with URLs that point at internal addresses before approval.

Fetch server README

Robots.txt bypass via config flag

By default the server honors a site's robots.txt for model-initiated requests, but the check can be turned off with --ignore-robots-txt in the args list of the server configuration. Reviewers should treat that flag as a policy change, not a tuning option. Cover it with configuration review: scan every MCP config file in developer and build environments for the flag, and enforce a standard config through managed settings or a deployment template so individual users cannot add it silently.

No documented fetch audit log

The README documents the fetch tool and its arguments but no audit trail of which URLs were requested, by which user or agent, and what was returned. Without that record, an incident involving data pulled from or sent to a site cannot be reconstructed. Cover it by logging at the proxy or the host: route fetch traffic through an egress proxy that records destination, timestamp, requesting process and response size, and forward those logs to your central store. Ask the vendor or your platform team whether any built-in logging exists in the version you deploy.

No documented domain allowlist

The fetch tool accepts any url argument the model supplies, and the README describes no setting that restricts fetches to an approved list of domains. A broad fetch capability can therefore reach any public site, including sites that host hostile content for prompt injection. Cover it by enforcing an allowlist at the egress proxy or firewall instead of inside the server, and by tightening the list per use case. Confirm with your security team which domains business workflows actually need before the server goes live.

Reference implementation, no hardening guide

The servers repository describes its servers as reference implementations and educational examples that demonstrate MCP features and SDK usage. The fetch README also notes a port to MCP Python SDK 2.0 is in progress. Treat hardening, patching and support as your team's task: pin the version you tested, track upgrades, and assign an owner. Where you need a supported, reviewed component, consider a vetted internal server built and maintained under your change process, and check the MCP Registry for alternatives you can review before use.

Servers repository

No documented data retention

The README does not say what the server stores, whether fetched page content is kept after a request, or whether any cache or temporary file exists on the host. Retention for the content that flows through the model depends on the model provider and client, which you must review separately. Cover it by asking the vendor for written statements on storage, running the process in a container with a read-only file system where possible, and setting host-level log and temp directory retention to match your data classification.

How the review changes by deployment

On a developer laptop, the server usually starts from a local command such as uvx or pip, runs under the developer's own operating system account and inherits that user's network path. Any page the model asks for is requested from that machine, so the reachable set includes whatever the laptop can reach, such as intranet sites, VPN-only hosts and local services bound to localhost. The reference README's caution about local and internal IP addresses applies directly here, and the server has no separate boundary between the model's requests and the developer's environment.

  • Reachable internal web content: Assume intranet wikis, admin consoles and internal APIs are reachable whenever the laptop can reach them, including through VPN.
  • Egress filtering: Endpoint controls, DNS policy or a corporate proxy are the only practical egress limits; confirm which ones your managed devices enforce.
  • Configuration drift: Each developer edits the args list in their own client configuration, so check every config for --ignore-robots-txt.
  • Installation source: Confirm which package version each developer installs and whether it is pinned.
  • Credential exposure: Keep cloud and service tokens out of shell environments the agent can read.

Before approving this model, ask security to confirm which proxy or endpoint policy applies to developer machines and whether local-network destinations are blocked.

Steps to lock down the fetch server before approval

This sequence takes the reference fetch server from an unknown configuration to an approved, bounded deployment. Each phase produces a record that a security reviewer can check before the server is allowed near staff or agents.

  1. Inventory every configuration that launches the server

    Start by finding every place the fetch server is started, including developer machines, shared agent configs, project files checked into repositories and any Docker-based launch. Record the client, the run method and the arguments used in each one. The output is a single inventory that lists each launch point and its owner, so no copy of the server runs outside review. Confirm the list with the engineering leads who manage the agent clients, because configs often live in personal settings that IT does not see.

  2. Check the args list for the robots.txt override

    Open each recorded configuration and inspect the args list for the --ignore-robots-txt flag. By default, the server obeys a site's robots.txt when the model makes the request through a tool, but this flag turns that check off. Any config with the flag needs a documented reason and an owner who accepts the risk, or it should be removed. The step is complete when every configuration either omits the flag or has an approved exception on file. Also note that prompt-initiated requests already skip the robots.txt check by default, so reviewers should not treat robots.txt as a control for every path.

  3. Confirm the run method and pinned version

    Compare the run method in each config against the approved method. The fetch server README recommends uvx, with pip and a Docker image as alternatives, so pick one and document why. Confirm the version the team runs and check it against the SDK requirement the README states, which is MCP Python SDK 1.x (mcp>=1.29.0,<2). Since the port to SDK 2.0 is in progress, record which SDK line each deployment depends on. The step closes when each launch point uses the approved method and a version that is pinned rather than floating, and that record is stored with the inventory.

  4. Restrict network egress and block internal address ranges

    The README warns that the server can reach local and internal IP addresses, so network controls must do the work the server does not. Ask the platform team to define where the host running the server may connect, typically limiting outbound traffic to the public internet through a proxy or egress policy and blocking private address ranges, loopback addresses and cloud instance metadata endpoints. Apply these rules on the host or in its network segment, not only in the agent client. The step is complete when the platform team can show the rules in place and the rules apply to the machine that runs the server.

  5. Test with internal and metadata-style targets

    Run a controlled test from an approved host to confirm the egress rules hold. Use targets you own, such as a test service on a private address and a metadata-style endpoint in a non-production account, and check that the request fails at the network layer. Also confirm that the tool returns an error rather than content. Record the target types tested, the time of each test, the host and the result. If any internal target returns data, stop the approval and fix the rule before retesting. This check is illustrative of what a reviewer should see, and it should be run in your own environment rather than against production systems.

  6. Decide logging and retention for fetch requests

    Decide what the team records about each fetch, including the requested URL, the time, the client, the requesting user and the response size, and how long those records are kept. The fetch server README does not document a logging or retention model, so the team must confirm what the client, the host and the network proxy record by default and where those logs go. Write down the retention period your policy requires and confirm the logs can be searched for a URL or a host. The step closes when logs from the host and proxy are shown to contain the fields the policy names.

  7. Set a review date tied to the SDK 2.0 port

    Set a review date for the approval and make the SDK 2.0 port the explicit trigger for re-review. Because the README says the port is in progress and the current line is MCP Python SDK 1.x, any upgrade can change behavior and dependencies. Name an owner for watching the repository and the README, and require a new inventory, args check and egress test before any version change is approved. The step is complete when the review date, owner and re-review triggers are written into the approval record.

Evidence a security reviewer will ask for

This table lists the artifacts a security reviewer should ask for before approving the fetch MCP server, and where each one comes from in the client configuration, the host environment or the team's own records. Use it as a request list: if a row has no artifact behind it, the setting is not yet reviewable. The main takeaway is that the server's own README does not produce most of this evidence, so the team has to generate it from its own environment.

EvidenceWhat to ask forWhere it comes from
Config files showing the args listThe exact client or server config that launches the fetch server, with the args list visible, including whether --ignore-robots-txt appearsThe MCP client config file on each machine or the managed configuration pushed to users, checked against the version under review
Network policy and egress rulesWritten rules stating which destinations the fetch host may reach, and whether local and internal address ranges are blockedFirewall, proxy or egress gateway rules for the host or container running the server, not the README
Test results for internal address accessA record of requests to loopback, private and link-local addresses and cloud metadata endpoints, with the result of eachA test run in a non-production environment against the same build and network path that users will have
robots.txt decision recordA signed decision stating whether robots.txt is obeyed for model-initiated and prompt-initiated fetches, and whyThe team's own review, cross-checked against the server arguments and the README's default behavior
Pinned version and SDK rangeThe exact package version or image digest in use, and the MCP Python SDK range it resolves toThe lock file, pinned uvx or pip invocation, or Docker image tag in the deployment repository
Data-flow descriptionA diagram or list showing what the model sends, what the server fetches, and what content returns to the model and to logsWritten by the owning team from the client, server and network configuration, then checked by a second reviewer
Owner and review cadenceA named owner, the date of the last review, and the trigger for re-review such as a version change or new toolThe team's change records and access review process, recorded alongside the config and version evidence

Questions buyers ask before approving the fetch server

Is it safe to run the fetch MCP server on a network with internal systems?

Not by default, so treat it as a risk to review before deployment. The fetch server README cautions that the server can access local and internal IP addresses and may be a security risk, so users should make sure it does not expose sensitive data. Whether it can reach your internal ranges depends on where you run it and what network routes exist from that host. Confirm with your network team which hosts, subnets and metadata endpoints the runtime can reach, and restrict egress from that machine to the destinations the use case needs. Network controls like these sit outside the server, so the server itself does not provide them.

Does the fetch MCP server support SSO or audit logs?

The fetch server README does not document SSO, enterprise sign-in or audit logging, so do not assume either exists. The README describes one read-style tool named fetch and one prompt named fetch, and it documents no admin console or logging feature. Ask the maintainers or check the repository for any authentication or logging support in the version you plan to run. If you need user-level attribution, plan to capture logs at the MCP client, at the host or at your network proxy, and confirm what each layer records before relying on it for an audit.

What does it cost to run the fetch MCP server?

No price is documented for the reference server, because it is distributed as open-source reference code in the modelcontextprotocol/servers repository. Your cost comes from the hosting it runs on, the people who configure and review it, and the ongoing work of monitoring updates. Drivers include how many users connect, whether you run it on shared hosts or isolated ones, and how much network and logging controls you build around it. When you request a quote for outside help, ask for the scope of configuration review, network testing and written findings, and ask which items recur, such as retesting after upgrades.

How long does a security review of the fetch MCP server take?

The duration depends on the number of environments, the hosts that run the server, and how much of the network you need to verify. A review that covers only the configuration file and tool arguments is shorter than one that also tests internal address reachability, logging, and the client that calls the tool. No duration is documented for this server, so ask your reviewers or any outside firm to state the scope, the environments covered and the deliverables in writing before work starts. Fixed scopes with agreed deliverables make timing easier to plan.

Can our own team harden the fetch MCP server without outside help?

Yes, if you have people who can review a Python-based server, its configuration, and the network path from the host. The servers repository README warns that its servers are reference implementations meant as educational examples, so hardening is your own task rather than something the vendor provides. Start by checking every configuration for the --ignore-robots-txt flag in the args list, since the robots.txt check is on by default, then restrict the host's outbound network access and confirm the tool arguments your clients can send. Teams without network or application security skills often choose a fixed-scope review instead.

When should we pick a community or managed fetch server instead?

Pick an alternative when the reference server cannot meet your network, logging or support requirements. The fetch server lives in the reference repository, and the repository README points readers to the MCP Registry at registry.modelcontextprotocol.io to browse published servers, so you can compare community options there. Before switching, verify each candidate's maintainer, its documented permissions, its update history, and whether it offers the controls you need. A community server carries the same review burden as the reference one, so the choice should follow from the controls you can verify, not from the name of the project.

How DeployOpen helps teams lock down fetch MCP

DeployOpen approaches Fetch MCP security as a written, fixed-scope engagement that tests the fetch server in your own environment before and after rollout. The work covers network reach, tool arguments, robots.txt handling and the configuration review your security team needs to approve or restrict the server.

How we scope

  • Agree in writing which clients, hosts and networks the fetch server will run on
  • Map which internal and local address ranges the server could reach from each environment
  • Confirm whether any configuration sets the robots.txt override flag and who approved it

How we build

  • Set up the fetch server in your environment with the network egress limits agreed in scope
  • Test SSRF-style requests toward local, internal and metadata addresses from the model side
  • Review server configs, launch arguments and client settings against the agreed baseline

How we hand over

  • Deliver a findings report with severity, evidence and a specific fix for each issue
  • Document the settings to review, the network rules applied and the owner for each control
  • Retest the fixed setup and record the results so reviewers can check the changes

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Re-test after the reference server or its SDK dependency changes in your environment

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.