guardry/

guardry/For AI agents/MCP server

Guardry MCP server: secrets for any MCP client

The guardry CLI includes a stdio MCP server that connects any MCP client to your vault, with no plaintext-read tool unless you turn one on.

The guardry CLI has an MCP server built in. An MCP client that can start a local stdio server can use it to work with your vault through an agent credential, under the same permissions and approvals as the CLI. If the CLI is already installed and signed in, connecting a client takes one more command.

1. Create an agent credential

In the dashboard, open Agent access and create a credential for the agent that will use the MCP client. Choose its scope, permissions and lifetime, and copy it when it is shown. It is shown once. If you have no account yet, Request an invite first.

2. Install the CLI and sign in

curl -fsSL https://app.guardry.ai/install.sh | sh
guardry login --profile coding-agent

The installer includes the CLI, the MCP server and the agent skill. guardry login asks for the credential at a hidden prompt and saves it as a profile, a private local file.

3. Print the client configuration

guardry --profile coding-agent mcp config

This prints the configuration your client needs: an executable path and a profile name. It contains no credential. The credential stays in the saved profile.

4. Add it to your MCP client

Add the printed configuration to your MCP client's server settings. The configuration starts the server over stdio with this command:

guardry --profile coding-agent mcp serve

5. Decide about plaintext reads

By default the server has no tool that returns a secret value as plain text. If a client needs one, add --allow-plaintext-tools to the mcp serve arguments in the configuration. The flag only makes the tool available. The credential still needs permission to read secret values, and any approval you require still applies.

What the agent can and cannot do

  • An agent using MCP can do no more than the credential behind the profile allows. Permissions are checked inside the vault on every request, and auditing, expiry, revocation and approvals all apply.
  • With an organization-wide credential, tools accept project and environment fields. Reads, creation and approval requests must select an exact environment, because names can repeat between environments.
  • The guardry_report_leak tool lets an agent report a suspected leak without sending the leaked value. It is available without plaintext-read tools.
  • Human administration and approval are not available through MCP. An agent cannot see members, manage credentials or approve anything.
  • An agent can never edit, rotate or delete an existing entry, including one it created.
  • An agent that can read a secret can copy it. Guardry records every release. It cannot control what a program does with a value afterwards.

Questions

Does the MCP configuration contain my credential?

No. mcp config prints an executable path and a profile name, and no credential. The credential is in the saved profile, which is a private local file bound to the Guardry server that issued it.

Can an agent read a secret value through MCP?

Not by default. The server has no plaintext-read tool unless you start it with --allow-plaintext-tools. Even then, the credential's permissions and any approval you require still apply, and every released value is written to the audit log before it leaves the vault.

Can I approve requests or manage the vault through MCP?

No. Human administration and approval are not available through MCP. You approve or deny requests, manage members and create or revoke agent credentials in the dashboard.