Skip to main content
The Infisical MCP server lets an AI agent list, read, and change secrets in Infisical while acting as you. Because it’s a Model Context Protocol (MCP) server, MCP clients such as Claude, Claude Code, VS Code, and Codex can connect to it. When you connect a client, you sign in to Infisical and choose an access level for the agent. Whichever level you choose, the agent can never do more than your own role allows.
This server gives agents access to your secrets. To let an agent search the Infisical documentation instead, connect the documentation MCP server.

Prerequisites

  • An Infisical user account with access to the projects you want the agent to work in
  • An MCP client that can connect to remote MCP servers, such as Claude, Claude Code, VS Code, or Codex

Server URL

Connect your client to the URL of your Infisical instance:

Self-hosted instances

If you self-host Infisical, check that:
  • SITE_URL is set to the URL your MCP clients use to reach the instance
  • Your MCP client can reach the instance (Claude on the web connects from Anthropic’s servers, so the instance has to be reachable from the internet)
  • If a proxy serves the MCP server at its own URL, such as https://mcp.example.com/mcp, MCP_SERVER_URL is set to that URL and the proxy forwards requests for it to /api/mcp on Infisical

Connect a client

The examples use the Infisical Cloud (US) URL. If you use another instance, replace that URL with your server URL.
1
In Claude, go to Settings > Connectors and select Add custom connector.
2
Enter Infisical as the Name and https://app.infisical.com/api/mcp as the URL, then select Add.
3
Select Connect next to the Infisical connector. Claude opens Infisical in your browser.
4
Sign in to Infisical, choose an access level, and select Authorize.
The connection only works in the organization you’re signed in to when you select Authorize. To connect a client to another organization, switch to that organization in Infisical first.

Access levels

On the Authorize Application page, choose one of these access levels: The access level only limits what your role already allows. For example, if your role can’t read secrets in the production environment, an agent with Full Access can’t read them either.
With Read Only or Full Access, every secret value the agent reads goes to the MCP client and to the AI model the client uses.
To change a client’s access level, disconnect the client and connect it again.

Disconnect a client

Removing the server from your MCP client doesn’t sign the client out of Infisical. To end a client’s access:
1
In Infisical, go to Personal Settings > General.
2
In the Sessions table, find the client’s session and select Sign out. The session shows the IP address of the browser you used to authorize the client, with an unknown operating system and browser.

Audit logs

Infisical records the secrets an agent reads and the changes it makes in the audit logs, under your user and with remote-mcp as the source. To review an agent’s activity, filter the audit logs by that source.

FAQ

If a change policy covers the folder, the change creates an approval request instead. The change applies once the request is approved and merged.
No. Only users can connect, by signing in when the client asks. To give an application or pipeline access to secrets, use a machine identity with the CLI, an SDK, or the API.
Infisical identifies a client during sign-in through its OAuth client ID metadata document. If your client only supports dynamic client registration, it can’t connect.
On Infisical Cloud, tool calls count against your plan’s Secret rate limit, per user instead of per IP address.

Next steps

Audit logs

Review what agents did in your organization.

Role-based access controls

Limit what each user, and the agents acting for them, can access.