Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: Like the house keys they are: inventoried, scoped, and rotated when they travel. A home MCP server typically holds credentials for everything its tools touch — the notes service, the calendar, the shop's systems, the tunnel provider, the AI provider itself — written in configuration files, .env files, and settings pages on the machine. If the server is ever reached by someone who should not reach it, those keys are the second breach: the first gets your server, the second gets every service the server could call. The discipline is three habits: know every key the server holds (the inventory), give each the least scope its tool needs, and rotate on a schedule and on any suspicion — with the server's exposure reports telling you when suspicion is due. No key's value should ever surprise you; run the free check to know how well the key-ring is guarded from outside.
Any credential a program presents instead of a person: API keys, access tokens, app passwords, service-account secrets, tunnel credentials, webhook secrets. On a home server they live in config files, .env files, the server's own settings storage, and the dashboards of the services that issued them. If a tool can call a service without asking you, a key for that service exists somewhere on the machine.
Start from the tools, not the files. For each tool on the server, name the service it acts on; for each service, the credential the server presents; for each credential, where it is stored and what it can do. Then sweep the machine for the storage places: the server's configuration and .env files, the tunnel tool's credential folder, the backup of the configuration you keep 'just in case' (a key-ring copy, often forgotten in a synced folder), and any notes where a key was pasted during setup. The filesystem guide's warning belongs here: any file tool whose root covers these locations can read the ring wholesale, which is why the key files' locations must be outside every tool's scope, as a deliberate line in the inventory.
Expect the inventory to embarrass the household once — a key for a service trialled and abandoned, a second key for the same service whose existence nobody recalls, a tunnel credential for a tunnel believed dead (see the stale-tunnel sweep, which revokes exactly these). Embarrassment filed as a table is an audit succeeding.
Modern services increasingly offer scoped credentials — read-only keys, single-resource keys, keys limited to one account or project. The household rule: the key a tool holds should be able to do what the tool does and nothing adjacent. The notes-search tool's key reads notes; it does not administer the account. The shop tool's key touches the shop's test-visible surface it needs, not the payments. Where a service offers only one unscoped master key, that fact goes in the inventory as a risk note against the service, and the mitigations move elsewhere — the tool's own narrowing, the server's bind, the key's rotation frequency.
Scoping pairs with the tool-surface discipline: a trimmed tool with a scoped key is a small prize twice over. When both are done, the worst realistic day — the endpoint exposed for a week, the key-ring read — degrades from 'every service we use, ransacked' to 'one service's reading key, rotated by Friday'. That degradation is the entire return on an afternoon's inventory work, and it compounds with every service the household adds.
The machine's posture toward its own keys should be boring and strict: keys in the configuration locations the software expects (so updates do not scatter copies), file permissions that limit reading to the server's account, no keys in filenames, screenshots, or household notes, and no keys inside the folders any file tool can reach — including, especially, the synced folders that would copy the ring to every device and a cloud besides. Backups deserve a thought: a backup of the server's configuration is a backup of the ring; it should be stored with the care of the thing it is, and its restore tested like any backup.
For the household's own handling: keys are pasted into configuration, never into chats with support, never into the messages a relative forwards. The one sanctioned copy outside the machine is the inventory itself — which records each key's service, scope, location, and rotation date, but never the key's value. The inventory tells you what to rotate; the machine holds the secrets.
Rotate on two triggers, mirroring the exposure rhythm. The scheduled trigger: the high-value keys (the ones guarding money, mail, or the household's main accounts) rotate on a slow calendar — annually is a defensible household cadence — with the inventory updated in the same sitting. The suspicion trigger is the important one, and the exposure system feeds it: any interval in the ledger where the server stood EXPOSED, any alert with an unexplained mechanism, any log evidence of unfamiliar sessions — each converts directly into a rotation list: every key the server held during that window, rotated, because a caller with file or shell reach could have read the ring and left no other trace.
Rotation done well is a procedure, not a scramble: issue the new key at the service, update the server's configuration, restart and verify the tool works, revoke the old key, note the date. Revoking before verifying strands the household mid-incident; verifying before revoking is the order that keeps the house running while it heals. The logs guide covers the evidence side of the suspicion trigger.
The discipline runs both ways. Where your server issues credentials — its own API for a Team-plan scan client, tokens for a second household's access (the OAuth pattern in the discovery guide), webhook secrets — you are the service in someone else's inventory. Issue per-client, scope minimally, keep the issued list where you can revoke from it, and treat your own issuance with the same rotation triggers. A household that has been on both sides of the key-ring understands the etiquette in its bones: credentials are loans, tracked at both ends, recalled without drama when their job ends.
Example — fictional, for illustration. The Meyer household (whose fixed-command tool appears in the shell guide) builds its first key inventory and counts nine credentials on the server: the AI provider's key, a notes-service key (full account scope — the only kind the setup tutorial requested), a calendar key (read/write), a shop-platform key with payments reach left from an integration test, a tunnel credential, a mail app-password, two keys for services the household no longer uses, and a webhook secret. Three get immediate action: the two dead services' keys are revoked at their dashboards; the shop key is replaced with a scoped one that cannot touch payments; the notes key is replaced by the service's read-only tier, since the tool only ever searches.
The rest are filed with scopes and dates, the .env file is confirmed outside the (already scoped) file tool's root, and a rotation calendar entry is set for the two high-value keys. Before: 9 keys, 2 for dead services, 2 far wider than their tools' jobs, 0 with rotation dates. After: 7 keys, every one scoped to a living job, high-value pair on a calendar, inventory filed. Nothing about the household's daily use changes — the assistant's tools all still work — which is the pass's quiet point: the key-ring's danger was never load-bearing; it was just unexamined.
Companion reading for this topic: What Is OAuth Protected-Resource Discovery on an MCP Server? · Why Are Filesystem Tools the Riskiest Common Tools on a Home MCP Server? · What Can a Stranger Do With Shell or Command Tools on an Exposed MCP Server? · What Should You Look for in Your MCP Server's Logs?.
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.
In the server's configuration files and .env file beside the project, in the tunnel tool's credential folder, in the services' own settings storage — and, accidentally, in config backups, synced folders, and setup notes. The inventory starts from the tools (each tool implies a service, each service a credential) and then sweeps those locations, including the accidental ones.
Record it in the inventory as a known concentration, and move the mitigations to the layers you control: narrow the tool that uses it, keep the server's bind and gates strict, rotate that key more often, and prefer a competing service with scoped keys when the choice next arises. Unscoped keys are a property of the service, not a failure of your audit.
Every key the server held during the open interval that a caller could plausibly have read — in practice, if the tool surface included file reading or commands, that is the whole ring. Rotate in the keep-it-running order: issue new, update config, verify the tool, revoke old. The ledger's interval dates define the window; the inventory defines the list.
Never. The inventory records service, purpose, scope, storage location, and rotation dates — the map, not the treasure. Values live only in the services' dashboards and the server's configuration. An inventory with values is itself a master key, and it will be stored in exactly the convenient, synced, shared places inventories get stored.
Yes — a tunnel credential can republish a service, which makes it among the most powerful keys on the machine. It gets the full treatment: inventoried, scoped to its tunnel, rotated on suspicion, and revoked the day its tunnel joins the stale list. The stale-tunnel sweep and the key-ring pass share this row, deliberately.
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.