
infisical/infisical-mcp-server 是从 https://github.com/infisical/infisical-mcp-server. 导入的 MCP 服务器候选
概览
infisical/infisical-mcp-server 是从 https://github.com/infisical/infisical-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
Infisical 模型上下文协议服务器允许您通过函数调用与 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。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Infisical Model Context Protocol
The Infisical Model Context Protocol server allows you to integrate with Infisical APIs through function calling. This protocol supports various tools to interact with Infisical.
Setup
Environment variables
In order to use the MCP server, you must first set the environment variables required for authentication.
INFISICAL_AUTH_METHOD: The authentication method to use. Supported values areuniversal-authandaccess-token. Defaults touniversal-auth.INFISICAL_UNIVERSAL_AUTH_CLIENT_ID: The Machine Identity universal auth client ID. Required whenINFISICAL_AUTH_METHODisuniversal-auth.INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET: The Machine Identity universal auth client secret. Required whenINFISICAL_AUTH_METHODisuniversal-auth.INFISICAL_TOKEN: An access token for authentication. This can be both a personal access token or a machine identity access token. Required whenINFISICAL_AUTH_METHODisaccess-token.INFISICAL_HOST_URL: Optionally set a custom host URL. This is useful if you’re self-hosting Infisical or you’re on dedicated infrastructure. Defaults tohttps://app.infisical.com.
By default every tool is exposed and secret values are returned, as in earlier versions. Limiting what the server exposes explains how to restrict both, which we recommend, and Audit log covers what the server records.
To run the Infisical MCP server using npx, use the following command:
npx -y @infisical/mcp
Usage with Claude Desktop
Add the following to your claude_desktop_config.json. See here for more details.
Universal Auth (default)
{
"mcpServers": {
"infisical": {
"command": "npx",
"args": ["-y", "@infisical/mcp"],
"env": {
"INFISICAL_HOST_URL": "https://.com",
"INFISICAL_UNIVERSAL_AUTH_CLIENT_ID": "",
"INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET": ""
}
}
}
}
Access Token
{
"mcpServers": {
"infisical": {
"command": "npx",
"args": ["-y", "@infisical/mcp"],
"env": {
"INFISICAL_HOST_URL": "https://.com",
"INFISICAL_AUTH_METHOD": "access-token",
"INFISICAL_TOKEN": ""
}
}
}
}
Available tools
| Tool | Description | Read-only |
|---|---|---|
create-secret |
Create a new secret | No |
delete-secret |
Delete a secret | No |
update-secret |
Update a secret | No |
安装
npx -y @infisical/mcp配置
{
"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>"
}
}
}
}