Infisical MCP Server
OfficialInfisical 模型上下文协议
Infisical 模型上下文协议 (Model Context Protocol) 服务器允许你通过函数调用与 Infisical API 集成。该协议支持多种工具来与 Infisical 进行交互。
设置
环境变量
为了使用 MCP 服务器,你必须首先设置身份验证所需的环境变量。
INFISICAL_AUTH_METHOD: 要使用的身份验证方法。支持的值为universal-auth和access-token。默认为universal-auth。INFISICAL_UNIVERSAL_AUTH_CLIENT_ID: 机器身份通用认证客户端 ID。当INFISICAL_AUTH_METHOD为universal-auth时必需。INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET: 机器身份通用认证客户端密钥。当INFISICAL_AUTH_METHOD为universal-auth时必需。INFISICAL_TOKEN: 用于身份验证的访问令牌。这可以是个人访问令牌或机器身份访问令牌。当INFISICAL_AUTH_METHOD为access-token时必需。INFISICAL_HOST_URL: 可选设置自定义主机 URL。如果你是自托管 Infisical 或使用专用基础设施,这很有用。默认为https://app.infisical.com。
要使用 npx 运行 Infisical MCP 服务器,请使用以下命令:
npx -y @infisical/mcp在 Claude Desktop 中使用
将以下内容添加到你的 claude_desktop_config.json 中。有关更多详细信息,请参阅此处。
通用认证 (默认)
{
"mcpServers": {
"infisical": {
"command": "npx",
"args": ["-y", "@infisical/mcp"],
"env": {
"INFISICAL_HOST_URL": "https://<custom-host-url>.com",
"INFISICAL_UNIVERSAL_AUTH_CLIENT_ID": "<machine-identity-universal-auth-client-id>",
"INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET": "<machine-identity-universal-auth-client-secret>"
}
}
}
}访问令牌
{
"mcpServers": {
"infisical": {
"command": "npx",
"args": ["-y", "@infisical/mcp"],
"env": {
"INFISICAL_HOST_URL": "https://<custom-host-url>.com",
"INFISICAL_AUTH_METHOD": "access-token",
"INFISICAL_TOKEN": "<your-access-token>"
}
}
}
}Related MCP server: OpenAPI MCP Server
可用工具
工具 | 描述 |
| 创建一个新密钥 |
| 删除一个密钥 |
| 更新一个密钥 |
| 列出所有密钥 |
| 获取单个密钥 |
| 创建一个新项目 |
| 创建一个新环境 |
| 创建一个新文件夹 |
| 邀请一名或多名成员加入项目 |
| 列出所有项目 |
调试服务器
要调试你的服务器,可以使用 MCP Inspector。
首先构建服务器
npm run build在你的终端中运行以下命令:
# Start MCP Inspector and server
npx @modelcontextprotocol/inspector node dist/index.js说明
按照环境变量步骤中的说明设置环境变量。
运行命令启动 MCP Inspector。
在浏览器中打开 MCP Inspector UI,然后点击“连接”以启动 MCP 服务器。
你可以看到所有可用的工具并单独测试它们。
Available Tools
11 toolscreate-environmentA
Add an environment, such as QA, to a project. It starts empty; copy secrets into it with create-secret.
Inputs: name (required), slug (required), projectId (required), position.
create-folderA
Create a folder in a project environment. To create /backend/workers, pass path "/backend" and name "workers"; a missing parent folder such as /backend is created too.
Inputs: name (required), projectId (required), environmentSlug (required), path, +1 more.
create-projectA
Create a new project. Projects store secrets unless another type is given, and a secret-manager project starts with the environments dev, staging and prod. The response has the new project's ID and environment slugs, which the other tools take. Infisical allows several projects with the same name, so check list-projects first rather than creating a project again.
Inputs: projectName (required), slug, type, kmsKeyId, +2 more.
create-secretA
Create a new secret in a project environment. It goes in the root folder, which always exists, unless secretPath names another folder; create that folder with create-folder first. Fails if a secret with that name already exists there; use update-secret to change it.
Inputs: projectId (required), secretName (required), environmentSlug (required), secretPath, +1 more.
delete-secretADestructiveIdempotent
Delete a secret from one environment and folder. To remove a secret everywhere, call it once per environment.
Inputs: projectId (required), secretName (required), environmentSlug (required), secretPath.
get-secretBRead-onlyIdempotent
Get one secret, with its value, by name.
Inputs: projectId (required), secretName (required), environmentSlug (required), secretPath, +2 more.
invite-members-to-projectA
Add users to a project with one or more roles. Users who are not yet in the organization are invited to it by email. Users who are already members of the project are left as they are.
Inputs: projectId (required), emails, roleSlugs, usernames.
list-foldersARead-onlyIdempotent
List the folders in a project environment, each with the full path that secretPath takes.
Inputs: projectId (required), environmentSlug (required), path, recursive.
list-projectsARead-onlyIdempotent
List the projects this server can access, with each project's ID, name, slug, type and environments. Call this first to find the projectId and environment slugs the other tools take.
Inputs: type, search.
list-secretsARead-onlyIdempotent
List the secrets in one folder of a project environment, the root folder by default. Secrets in subfolders are left out unless recursive is true; list-folders shows which folders exist.
Inputs: projectId (required), environmentSlug (required), recursive, secretPath, +2 more.
update-secretADestructiveIdempotent
Change an existing secret's value, rename it, or both in one call. Fields left out keep their current value.
Inputs: projectId (required), secretName (required), environmentSlug (required), secretPath, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource+action pair: secrets split cleanly into create/delete/update/list/get, and projects, environments, folders, and members each have their own verbs. Descriptions explicitly cross-reference alternatives (e.g. create-secret vs update-secret, list-secrets vs list-folders), leaving no realistic misselection risk.
Every tool follows the same kebab-case verb-noun convention (create-secret, list-projects, delete-secret), with plural nouns only for listing operations, which is conventional. No camelCase or mixed verb styles appear.
Eleven tools sit comfortably in the well-scoped 3-15 range and map onto a small number of resources (secrets, projects, environments, folders, members). Each tool covers a real workflow step without filler.
Secrets have full CRUD, but other resources are lopsided: projects only create/list (no update/delete/get), folders only create/list (no delete), environments only create (no delete/update), and members can only be invited, never removed or listed. These gaps will force agents into dead ends for housekeeping tasks, though core secret management is covered.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with Plane.so, allowing them to manage projects and issues through Plane's API for streamlined project management workflows.640MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol Server that enables LLMs to interact with and execute REST API calls through natural language prompts, supporting GET/PUT/POST/PATCH operations on configured APIs.18 PyPI6Apache 2.0
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that integrates with Atlassian Confluence and Jira, enabling AI assistants to search, create, and update content in these platforms through natural language interactions.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with direct access to secrets management (get, set, list, delete secrets, and list environments) through the Model Context Protocol, enabling secure secret operations during development.12 npmMIT