Secure the MCP servers your agent already runs
An MCP server can change after you approve it, describe a destructive tool as read-only, or quietly send what it sees somewhere else. fiduciary protect puts a proxy in front of each server your client uses, local or remote, without changing the server.
What goes wrong with MCP servers
A tool's definition is what the model reads before it calls the tool. If the definition changes after you looked at it (a new description, a new argument, a write that used to be a read), the agent works from something nobody approved. People call this a rug pull.
Packages change too. In 2025 an MCP server published on npm added a hidden BCC to every email it sent in one update. Anyone who had it installed got the new version on their next start.
And annotations are only the server's claim. The MCP specification says a client must treat them as untrusted unless the server is trusted. A tool marked readOnlyHint can still delete things.
Protect every server with one command
pip install interlock-fiduciary
fiduciary protect --claude-desktop # says what it would do
fiduciary protect --claude-desktop --apply # --cursor, --vscode, --codex
fiduciary protect --mcp-config .mcp.json --claude-code --applyEach server's entry in the client's file is rewritten to start the proxy, which starts a local server, or speaks HTTP to a remote one. Restart the client. fiduciary unprotect puts every entry back as it was.
Remote servers, and tokens the agent never holds
A remote server's entry (a URL and its headers) is wrapped the same way. The proxy speaks Streamable HTTP to the server, both the 2026-07-28 revision and the older one, and its Authorization token is taken out of the client's file, which any program you run can read, the agent included.
With --move-secrets, each local server's environment values and each remote server's token go to the system's own store: the macOS Keychain, the Linux Secret Service or the Windows Credential Manager, and a file only you can read where none answers. The proxy reads them back when it starts.
--scan-secrets looks through the project the agent works in for tokens it could read in passing, such as a .env file. Each one is given to every protected session as a secret before the first call, so no call carries it out, even when the agent read it with the client's own file tools.
What it pins, and what happens when something changes
- Each tool's whole definition: name, description, input and output schemas and annotations, hashed into a signed binding.
- The server's package version, when the client starts it from a package (npx or uvx).
- A tool whose definition moved is withheld before its next call, and
fiduciary protect --reviewshows the change field by field.--acceptsigns the new definitions after you have read them. - A tool that claims to read only, while its own name, description or arguments say it writes or sends, is held and flagged.
Writes, approvals and what leaves
Writes go through once. Those that need approval wait for your passkey: fiduciary passkey add registers one for every protected server at once. A fetch, a search or a message that carries a credential or a private value the agent read through any of the client's servers is refused, whole or encoded.
Everything starts in shadow mode. Nothing is refused, and fiduciary shadow report lists what would have been. Turn it on when you have read it.
What it does not do
- A server that changes what a tool does behind an unchanged definition and version is not caught. A remote server's code cannot be pinned at all, only its definitions.
- A token a client gets by OAuth stays with the client: protect holds a token given in the entry's headers.
- An agent that can edit the client's file can unwrap a server. protect shows which entries are protected.
Step by step
- Install.
pip install interlock-fiduciary - See what it would do.
fiduciary protect --claude-desktop - Apply it, then restart the client.
fiduciary protect --claude-desktop --apply - Register a passkey for approvals.
fiduciary passkey add - Read the shadow report, then enforce.
fiduciary shadow report
Questions
Does fiduciary protect change my MCP servers?
No. It changes the client's configuration file so the client starts a proxy, and the proxy starts the server as before. fiduciary unprotect restores the file.
Which clients does it work with?
Claude Desktop, Cursor, Claude Code (a project's .mcp.json), VS Code and Codex CLI (its config.toml), or any client whose configuration lists mcpServers.
Does it work with remote MCP servers?
Yes. A remote entry becomes the proxy's command, the proxy speaks HTTP to the server, and the server's token is kept out of the client's file.
Does it need a cloud service or an account?
No. It runs on your machine, it is Apache-2.0, and its records stay where its deployment is.