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_URLis 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_URLis set to that URL and the proxy forwards requests for it to/api/mcpon Infisical
Connect a client
The examples use the Infisical Cloud (US) URL. If you use another instance, replace that URL with your server URL.- Claude
- Claude Code
- VS Code
- Codex
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.
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.
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 withremote-mcp as the source. To review an agent’s activity, filter the audit logs by that source.
FAQ
Why didn't a change the agent made take effect?
Why didn't a change the agent made take effect?
If a change policy covers the folder, the change creates an approval request instead. The change applies once the request is approved and merged.
Can a machine identity connect to the MCP server?
Can a machine identity connect to the MCP server?
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.
Why can't my MCP client sign in?
Why can't my MCP client sign in?
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.
Do tool calls count against rate limits?
Do tool calls count against rate limits?
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.