Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: In a specific order, because each step protects the next. First the bind: start the server on 127.0.0.1 — HomeShield's own fix recipe for FastMCP shows the line, mcp.run(transport="streamable-http", host="127.0.0.1", port=8000) — so the server stops facing every network at once. Then, if it must stay reachable, a gate: a reverse proxy with a password in front of the one public port. Then the trim: the tool list cut to what the household uses. Then verification: HomeShield's free check from outside, declaring the FastMCP stack, until the verdict and tool-surface grade match the design. Most FastMCP exposures are not exotic; they are the tutorial configuration, still running, months later, behind a tunnel somebody added in June.
FastMCP's job is to get a working MCP server in front of a developer quickly, and it is good at it: decorate a few Python functions, call run, and an assistant can call your tools. The run defaults serve that goal — a network bind that works from anywhere on the LAN, no credential ceremony, the example tools live. Nothing in the first hour asks the question 'and who else can reach this?' — that question arrives with the tunnel, the forward, or the household member who wants the assistant on their phone at work.
HomeShield's recipe system exists because this shape recurs: the check form's first stack option is 'FastMCP or another Python MCP server', and the recipe for an EXPOSED verdict on that stack is the bind-then-proxy sequence quoted in this guide. You are not fixing a mistake so much as completing the setup — the production half the tutorial skipped.
Change the host in the run call to 127.0.0.1 and restart the server — all of it. FastMCP processes started by a service file, a terminal session, and a startup script can coexist; the companion script's process and listener list is how you prove only the new, narrow instance survives. Confirm the listener row reads as this-machine-only. At this point the server is unreachable from the LAN and the internet alike; your assistant, if it runs on the same machine, notices nothing.
If the assistant runs on another household device, the bind choice becomes the LAN address instead — reachable by the house, not the world — and the security weight shifts to the router audit and LAN hygiene. The recipe's direction stays the same: the narrowest bind that serves the real clients, with any wider reach provided by a component whose job is facing outward. The bind guide covers the choice in full.
Some FastMCP servers earn a public path: the owner works from two locations, the assistant must call it from outside the house. Then the gate pattern from the recipe applies — Caddy in front with basic auth, the forward or tunnel pointed at Caddy, the server bound to localhost behind it. The recipe gives the site block to copy; the reverse-proxy guide explains the pattern's failure modes (the duplicate listener, the wrongly-pointed forward, the unguarded variant) so you can step around them.
Generate the password like you mean it — long, unique, manager-stored — because it now stands in front of Python functions running with your account's full abilities. Then verify the variants: the auth-consistency check will probe the slash and scheme forms, and all of them must demand the credential before you call the gate finished.
FastMCP makes tools so easy to add that servers accumulate them like browser tabs. Read the registered list as the stranger from the tool-surface guide would: which functions can write, execute, or send — and which have not been called since the month they were written. Filesystem and shell-shaped functions get the filesystem and shell treatment: scoped, split, or removed. Python's convenience cuts both ways — a helper decorated 'temporarily' during debugging is a production tool until deleted.
Restart and re-run your assistant's real tasks. FastMCP's gift is iteration speed; use it for the audit too — three restart-and-test cycles in an evening will get the menu exactly where the household wants it, with the report's capability groups as the scoreboard.
Run the free check on the public address (if any) and file the report with the server's configuration. The healthy end state is specific: no public MCP answer at all, or a COVERED verdict with a tool surface you recognise as your own trimmed list. Because Python servers evolve — a new tool here, a dependency update there — the posture belongs on the monthly rhythm, and any change to the run call, the proxy, or the tool registrations should trigger a same-day re-check rather than waiting for the month to turn.
For a server that stays public by design, saved-endpoint monitoring converts the rhythm into a watch: scheduled re-scans, verdict-change alerts, and the Exposure Ledger's record of any open interval — the difference between a hardened server and a server that was hardened once, in November, and drifted by spring.
Example — fictional, for illustration. A fictional developer, Priya, built a FastMCP server over one weekend to let her assistant manage her reading list and research notes. It worked so well she added a tunnel in June so she could use it while travelling, and life moved on. By November the server has eleven registered tools — including a Python-eval helper from debugging weekend and a file writer scoped to her whole documents folder — and it has been publicly reachable, unauthenticated, the entire time. A HomeShield check with the FastMCP stack declared grades it EXPOSED, tool surface High, and the recipe in the report reads like a description of her own setup, because it is.
She works the recipe in one evening: the run call gains host="127.0.0.1", the travelling use moves behind Caddy with a generated password, the eval helper is deleted, the file writer is scoped to the research folder, and three never-called tools leave the list. The paired recheck shows COVERED with the surface at Low. Before: 11 tools, publicly reachable, 0 credentials demanded. After: 7 tools, 1 authenticated path, surface Low. Her commit message for the configuration change becomes the household standard: 'Finished the setup the tutorial skipped.'
Companion reading for this topic: How Do You Check a Node MCP Server for Public Exposure? · How Does a Reverse Proxy With Basic Auth Protect a Home MCP Server? · What Is the Difference Between Binding to 127.0.0.1 and 0.0.0.0? · What Changes When Your MCP Server Uses Streamable HTTP Transport?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free check on the same address and compare the result with the one you started from, work through the local-scan guide for the inside of the house, and see plans if you want the watching done on a schedule. A change you have not re-measured is a hope, not a fix.
Pass the host in the run call: mcp.run(transport="streamable-http", host="127.0.0.1", port=8000) — the form HomeShield's own fix recipe gives for this stack. Then restart the server completely and confirm with the companion script that the listener is machine-only and that no older process still holds the public bind.
Bind the server to the mini PC's LAN address so the house can reach it and other networks cannot, keep it off every forward and tunnel, and let the router audit carry the rest. If you later need it from outside, add the proxy gate or private access rather than widening the bind back to all interfaces.
Where your version and transport offer a credential mechanism you can verify, it is a legitimate option — the adjudicator is the outside check: an authentication response grades COVERED. Many households still prefer the proxy because it is stack-independent, terminates https with automatic certificates, and survives framework changes. Either way, measure the result rather than trusting the setting.
Read the capability groups in the report: something on the visible menu still runs commands, changes files broadly, or changes data in powerful ways. A common residue is a tool registered by an imported helper module rather than in your main file. The registered list at runtime — not the file you remember writing — is the truth to trim.
Make the re-check part of the change ritual: any edit to the run call, the proxy, or tool registrations ends with an outside check, and the monthly routine re-reads the whole posture. For a deliberately public server, scheduled re-scans with verdict-change alerts watch the intervals between your own checks.
HomeShield MCP uses cookies to run the site and, through Google AdSense, to serve ads. Accept or decline non-essential cookies. Details are in the privacy policy.