Skip to content

Menu

Infisical MCP Server logo

Infisical MCP Server

Published

At a glance

Watch out for
By default every tool is enabled and secret values are returned to the model, so anything the agent reads can end up in its context, logs or output unless masking is turned on.

Infisical publishes this server itself, as the npm package @infisical/mcp. It gives an MCP client function-calling access to the Infisical API, so an agent can read and manage secrets, projects, environments and folders in either Infisical Cloud or a self-hosted instance.

It runs locally and speaks to the client over stdio. According to the README it opens no ports, sends no telemetry, and its only outbound traffic is HTTPS to the Infisical host you configure (plus the npm registry when you launch it through npx). Authentication is either a machine identity using universal auth, which is the default, or an access token.

The defaults are permissive on purpose, to keep older setups working: every tool is exposed and secret values come back in responses. Two environment variables tighten that, and Infisical recommends setting both. The server also writes a JSON audit line to stderr for each tool call, recording identifiers but never secret values or credentials.

How it connects

Your AI app

An assistant or agent that supports MCP

Infisical MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • Read secrets
  • Change secrets
  • Projects and environments
  • Folders
  • Membership
  • Hardening switches

Infisical

Signs in with

  • Token
Your AI app talks to Infisical MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Read secrets
list-secrets returns the secrets at a path, with a recursive option for nested folders, and get-secret fetches one by name.
Change secrets
create-secret, update-secret and delete-secret write to Infisical through its v4 secrets API, falling back to v3 routes on older self-hosted versions.
Projects and environments
list-projects (with a search filter), create-project and create-environment cover project setup. Tools accept a project slug or name in place of the ID.
Folders
list-folders and create-folder manage the folder tree inside an environment.
Membership
invite-members-to-project adds one or more people to a project with a role.
Hardening switches
INFISICAL_ENABLED_TOOLS is an allowlist of tool names, and INFISICAL_MASK_SECRET_VALUES=true replaces values with <masked> and asks Infisical not to send them at all.

Setting it up

Create a machine identity in Infisical with universal auth and note its client ID and secret. In claude_desktop_config.json, add a server named infisical with command npx and args ["-y", "@infisical/mcp"], and set INFISICAL_UNIVERSAL_AUTH_CLIENT_ID and INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET in its env block. Self-hosted or dedicated users also set INFISICAL_HOST_URL, which defaults to https://app.infisical.com. To use a token instead, set INFISICAL_AUTH_METHOD to access-token and pass INFISICAL_TOKEN. For a read-only, masked setup, add INFISICAL_ENABLED_TOOLS=list-projects,list-secrets,get-secret,list-folders and INFISICAL_MASK_SECRET_VALUES=true. The README suggests pinning a release in args, for example @infisical/[email protected], so upgrades happen when you choose. Check the Releases page for the current version, which was 0.1.0 in November 2026.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Check which secret names exist in the prod environment of a project before a deploy, with values masked.
  • Add a new API key secret to dev and staging while scaffolding a feature.
  • Create a project with its environments and folder structure for a new service.
  • Invite a teammate to a project with a given role during onboarding.

Limitations and things to watch

  • By default every tool is enabled and secret values are returned to the model, so anything the agent reads can end up in its context, logs or output unless masking is turned on.
  • The server enforces no permissions of its own; it can do whatever its machine identity can do, so a broadly scoped identity or a personal access token gives the agent the same reach.
  • delete-secret, update-secret and invite-members-to-project make real changes, and nothing in the server stops an agent calling them unless you leave them out of INFISICAL_ENABLED_TOOLS.
  • A token passed in INFISICAL_TOKEN cannot be renewed by the server, so the client must be reconfigured and restarted when it expires.
  • Masking keeps values off the wire only on Infisical Cloud and self-hosted v0.116.0 or later.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…