@dopplerhq/mcp-server

中文文档
1.0.5发布于 2026/06/05Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 1.5万

MCP server for Doppler API with auto-generated tools from OpenAPI specification

原始使用文档
文档目录14 节
  1. Quick Start
  2. With Service Token
  3. Commands
  4. Options
  5. Examples
  6. Implicit Scope Detection
  7. Security Best Practices
  8. Available Tools
  9. No flags (full access)
  10. With --read-only
  11. With --project
  12. With --config
  13. Development
  14. Branch and Release Flow

Doppler MCP Server

MCP (Model Context Protocol) server that provides AI assistants with access to the Doppler API for secrets management.

[!IMPORTANT] The Doppler MCP Server is experimental and intended for development, testing, and evaluation purposes. Because outputs are non-deterministic and vary with the connected model, query, and server configuration, always use a token scoped only to the actions, projects, and environments you intend to allow, and review agentic output for alignment with your security and compliance requirements.

Quick Start

1. Authenticate:

npx @dopplerhq/mcp-server login

2. Add to your MCP client configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server"]
    }
  }
}

With Service Token

Alternatively, use a service token instead of logging in:

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server"],
      "env": {
        "DOPPLER_TOKEN": "<your-doppler-token>"
      }
    }
  }
}

See Service Tokens to create a config-scoped token.

Commands

login              Authenticate with Doppler (interactive)
logout             Clear cached auth credentials

Options

--read-only        Only expose read operations (GET endpoints)
--project <name>   Override auto-detected project
--config <name>    Override auto-detected config
--verbose, -v      Enable verbose logging to stderr
-h, --help         Show help message

Examples

Read-only mode

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server", "--read-only"]
    }
  }
}

Restrict to a specific project:

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server", "--project", "my-app"]
    }
  }
}

Restrict to a specific config:

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": [
        "-y",
        "@dopplerhq/mcp-server",
        "--project",
        "my-app",
        "--config",
        "production"
      ]
    }
  }
}

Implicit Scope Detection

The server automatically detects scope based on your token's access:

Token AccessAuto-Detected Scope
Single project--project set automatically
Single project + single config--project and --config set automatically
Multiple projectsNo auto-detection (use CLI flags)

This means scoped service tokens work out of the box without any CLI flags:

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server", "--read-only"],
      "env": {
        "DOPPLER_TOKEN": "dp.st.xxx"
      }
    }
  }
}

CLI flags always take precedence over auto-detected values.

Security Best Practices

Use scoped service tokens, not CLI flags, for access control. The --project and --config flags provide a convenient UX layer but are not a substitute for proper token scoping. Always create service tokens with the minimum required permissions:

  1. Scope tokens to specific projects in the Doppler dashboard
  2. Use read-only tokens when write access isn't needed
  3. Combine read-only tokens with --read-only for defense in depth:
{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["-y", "@dopplerhq/mcp-server", "--read-only"],
      "env": {
        "DOPPLER_TOKEN": "dp.st.readonly_token"
      }
    }
  }
}

Note: The server cannot determine read/write permissions from the token, so if you're using a read-only token, add --read-only to only expose read tools. This prevents write tools from appearing in Claude's tool list and avoids failed API calls.

Available Tools

The server auto-generates tools from the Doppler OpenAPI spec. The tools available depend on your flags:

No flags (full access)

All Doppler API tools including:

  • Workplace: workplace_get, workplace_update
  • Users & Groups: users_list, groups_list, service_accounts_list
  • Projects: projects_list, projects_create, projects_get, projects_delete
  • Environments: environments_list, environments_create, environments_get
  • Configs: configs_list, configs_create, configs_get, configs_update, configs_lock
  • Secrets: secrets_list, secrets_get, secrets_update, secrets_download
  • Integrations: integrations_list, syncs_list, webhooks_list

With --read-only

Read-only tools only (GET operations). Write operations like _create, _update, _delete are not exposed.

With --project

Org-level tools are filtered out (workplace_*, activity_logs_*). The project parameter is auto-injected into tool calls that accept it.

With --config

Only config and secret management tools:

  • configs_get, configs_update, configs_lock, configs_unlock
  • secrets_list, secrets_get, secrets_update, secrets_download
  • config_logs_list, config_logs_rollback

Both project and config parameters are auto-injected.

Development

# Install dependencies
pnpm install

# Run tests
pnpm test

# Build
pnpm run build

# Run locally
DOPPLER_TOKEN=dp.xxx pnpm start

Branch and Release Flow

New work should branch from main and target main in PRs.

To release, push a tag in the format vX.X.X following semantic versioning. This triggers the publish workflow which builds and publishes to NPM.

版本与发布记录

@dopplerhq/mcp-server 共发布 4 个版本,首次发布于 2025/10/29;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.5latest2026/06/055 个月前
1.0.42026/02/258 个月前
1.0.32026/02/248 个月前
0.0.02025/10/291 年前

关于 @dopplerhq/mcp-server 的常见问题

@dopplerhq/mcp-server 是什么?

MCP server for Doppler API with auto-generated tools from OpenAPI specification

如何安装 @dopplerhq/mcp-server?

在项目目录运行 npm install @dopplerhq/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 doppler-mcp,可以用 npx doppler-mcp 直接运行。

@dopplerhq/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dopplerhq/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dopplerhq/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@dopplerhq/mcp-server 可以商用吗?

@dopplerhq/mcp-server 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@dopplerhq/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@dopplerhq/mcp-server 在 2026/10/13 – 2026/11/11 这 30 天内被下载 15,256 次,日均约 509 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dopplerhq/mcp-server 还在维护吗?

最新版本 1.0.5 发布于 2026/06/05(5 个月前);至今共发布 4 个版本,其中过去 12 个月发布了 3 个;首次发布于 2025/10/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。