MCP Server Doppler

MCP Server Doppler

A Model Context Protocol server that provides secure access to Doppler's secret management platform, allowing AI assistants to manage secrets, environment variables, and configurations through Doppler's API.

Category
访问服务器

Tools

doppler_list_projects

List all Doppler projects

doppler_list_secrets

List all secret names in a project/config

doppler_get_secret

Get a specific secret value

doppler_set_secret

Set or update a secret value

doppler_delete_secrets

Delete one or more secrets

doppler_promote_secrets

Promote secrets from one environment to another

doppler_create_service_token

Create a service token for a project/config

doppler_get_activity_logs

Get activity logs for auditing

README

@lepion/mcp-server-doppler

npm version License: MIT MCP Node.js Version

A unified Model Context Protocol (MCP) server that provides secure access to Doppler's secret management platform. This server allows AI assistants like Claude to manage secrets, environment variables, and configurations through Doppler's API.

Version 0.2.0 combines the original mcp-doppler-server functionality with optional AI-powered intelligence features for enhanced secret management capabilities.


Features

Core Features (Always Available)

  • 🔐 Secure Secret Management: Read, write, and delete secrets through MCP
  • 📁 Project Organization: List and manage Doppler projects and configurations
  • 🚀 Environment Promotion: Promote secrets between environments (dev → staging → production)
  • 🔑 Service Token Management: Create service tokens for CI/CD and applications
  • 📊 Audit Logging: Access activity logs for compliance and monitoring
  • 🛡️ Security First: All operations respect Doppler's access controls

Intelligence Features (Optional - Enable with DOPPLER_ENABLE_INTELLIGENCE=true)

  • 🤖 AI-Powered Analysis: Security recommendations and best practices
  • 🔍 Configuration Validation: Automated checks against security standards
  • 🛠️ Intelligent Troubleshooting: AI assistance for common issues
  • 📈 Enhanced Tool Parameters: Additional analysis options on existing tools

Installation

# Install from npm (recommended)
npm install -g @lepion/mcp-server-doppler

# Or clone the repository for development
git clone https://github.com/lepion/mcp-server-doppler.git
cd mcp-server-doppler

# Install dependencies
npm install

# Build the TypeScript code
npm run build

What's New in v0.2.0

The unified implementation brings together the best of both worlds:

🚀 Key Benefits

  • Single Package: One installation for all features
  • Opt-in Intelligence: Enable AI features only when needed
  • Zero Breaking Changes: Existing integrations work without modification
  • Progressive Enhancement: Use basic features now, add intelligence later
  • Smaller Footprint: Intelligence code only loaded when enabled

📦 Upgrading from v0.1.x

Version 0.2.0 maintains full backward compatibility:

  • All existing tools work exactly as before
  • No configuration changes required for basic functionality
  • Intelligence features are opt-in via DOPPLER_ENABLE_INTELLIGENCE=true
  • Enhanced parameters on existing tools are optional and backward compatible

To upgrade:

npm update @lepion/mcp-server-doppler

Configuration

Environment Variables

Create a .env file in the root directory:

# Required: Your Doppler API token
DOPPLER_TOKEN=dp.st.xxxx

# Optional: Log level (debug, info, warn, error)
LOG_LEVEL=info

# Optional: Enable AI-powered intelligence features (default: false)
DOPPLER_ENABLE_INTELLIGENCE=true

Getting a Doppler Token

  1. Personal Token (for development):

    • Go to Doppler Dashboard
    • Navigate to Settings → API → Personal Tokens
    • Create a new token with appropriate permissions
  2. Service Account Token (for production):

    • Go to Settings → Service Accounts
    • Create a service account with specific project access
    • Generate a token for the service account

Usage

Running the Server

# Development mode (with hot reload)
npm run dev

# Production mode
npm start

Integration with Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "doppler": {
      "command": "npx",
      "args": ["@lepion/mcp-server-doppler"],
      "env": {
        "DOPPLER_TOKEN": "your-doppler-token",
        "DOPPLER_ENABLE_INTELLIGENCE": "true"  // Optional: enable AI features
      }
    }
  }
}

Or if installed locally:

{
  "mcpServers": {
    "doppler": {
      "command": "node",
      "args": ["/path/to/mcp-server-doppler/dist/index.js"],
      "env": {
        "DOPPLER_TOKEN": "your-doppler-token"
      }
    }
  }
}

Available Tools

The server provides 8 core tools plus 3 optional intelligence tools when DOPPLER_ENABLE_INTELLIGENCE=true.

Core Tools (Always Available)

All core tools maintain full backward compatibility. When intelligence features are enabled, they support additional optional parameters:

1. doppler_list_projects

List all available Doppler projects.

// Basic usage (always available)
{}

// With intelligence enabled, you can also use:
{
  includeAnalysis?: boolean  // Include project health and security analysis
}

2. doppler_list_secrets

List all secret names in a specific project/config.

// Basic usage (always available)
{
  project: "my-app",
  config: "production"
}

// With intelligence enabled, you can also use:
{
  project: "my-app",
  config: "production",
  includeAnalysis?: boolean    // Include security analysis of secrets
  validateNaming?: boolean     // Check against naming conventions
}

3. doppler_get_secret

Retrieve a specific secret value.

// Basic usage (always available)
{
  project: "my-app",
  config: "production",
  name: "DATABASE_URL"
}

// With intelligence enabled, you can also use:
{
  project: "my-app",
  config: "production",
  name: "DATABASE_URL",
  includeContext?: boolean     // Include usage context and recommendations
}

4. doppler_set_secret

Create or update a secret.

// Basic usage (always available)
{
  project: "my-app",
  config: "development",
  name: "API_KEY",
  value: "sk-1234567890"
}

// With intelligence enabled, you can also use:
{
  project: "my-app",
  config: "development",
  name: "API_KEY",
  value: "sk-1234567890",
  validateSecurity?: boolean   // Basic security validation
  checkNaming?: boolean        // Validate naming conventions
}

5. doppler_delete_secrets

Delete one or more secrets.

{
  project: "my-app",
  config: "development",
  secrets: ["OLD_API_KEY", "UNUSED_TOKEN"]
}

6. doppler_promote_secrets

Promote secrets from one environment to another.

// Basic usage (always available)
{
  project: "my-app",
  sourceConfig: "staging",
  targetConfig: "production",
  excludeKeys: ["DEBUG", "DEV_MODE"]  // optional
}

// With intelligence enabled, you can also use:
{
  project: "my-app",
  sourceConfig: "staging",
  targetConfig: "production",
  excludeKeys: ["DEBUG", "DEV_MODE"],  // optional
  autoExclude?: boolean,               // Auto-exclude environment-specific secrets
  dryRun?: boolean                     // Preview changes without applying
}

7. doppler_create_service_token

Create a service token for CI/CD or application access.

{
  project: "my-app",
  config: "production",
  name: "ci-cd-token",
  access: "read"  // or "read/write"
}

8. doppler_get_activity_logs

Retrieve audit logs for compliance and monitoring.

{
  project: "my-app",  // optional
  page: 1,
  perPage: 20
}

Intelligence Tools (Available When DOPPLER_ENABLE_INTELLIGENCE=true)

These additional tools provide AI-powered assistance for secret management:

9. doppler_get_security_recommendations

Get AI-powered security recommendations based on environment and token type.

{
  environment: "development" | "staging" | "production",  // Required
  tokenType?: "personal" | "service" | "cli"             // Optional
}

Example response includes:

  • Environment-specific best practices
  • Token type recommendations
  • Security hardening suggestions
  • Compliance considerations

10. doppler_validate_configuration

Validate your project configuration against security standards.

{
  project: "my-app",           // Required
  config: "production",        // Required
  checkSecurity?: boolean      // Optional, defaults to true
}

Validates:

  • Secret naming conventions
  • Environment-appropriate configurations
  • Security policy compliance
  • Configuration completeness

11. doppler_troubleshoot_issue

Get AI assistance for troubleshooting Doppler-related issues.

{
  issue: "Database connection failing with timeout",  // Required
  context?: {                                        // Optional
    operation?: string,     // e.g., "secret retrieval"
    environment?: string    // e.g., "production"
  }
}

Provides:

  • Root cause analysis
  • Step-by-step resolution guidance
  • Common pitfalls and solutions
  • Best practice recommendations

Resources

The server also exposes Doppler projects as MCP resources:

  • URI Format: doppler://project/{project-slug}
  • Content: JSON representation of project configurations

Example:

doppler://project/my-app
doppler://project/my-app/config/production

Examples

See the examples directory for complete usage examples:

Quick example:

import { Client } from '@modelcontextprotocol/sdk/client/index.js';

const result = await client.callTool({
  name: 'doppler_list_projects',
  arguments: {},
});

Security Best Practices

  1. Token Security:

    • Never commit tokens to version control
    • Use service account tokens for production
    • Rotate tokens regularly
  2. Access Control:

    • Use read-only tokens where write access isn't needed
    • Scope tokens to specific projects/configs
    • Enable audit logging for compliance
  3. Environment Isolation:

    • Separate tokens for different environments
    • Use environment-specific service accounts
    • Implement proper secret rotation

Development

Project Structure

mcp-server-doppler/
├── src/
│   ├── index.ts              # Unified server entry point
│   ├── doppler-client.ts     # Doppler API client
│   ├── tools.ts              # Core tool definitions
│   ├── intelligence-tools.ts # Optional AI-powered tools
│   ├── enhanced-index.ts     # Legacy enhanced entry point
│   └── logger.ts             # Winston logger configuration
├── dist/                     # Compiled JavaScript
├── examples/                 # Usage examples
├── package.json
├── tsconfig.json
└── README.md

Scripts

  • npm run build - Compile TypeScript
  • npm run dev - Run in development mode
  • npm start - Run production server
  • npm test - Run tests
  • npm run lint - Lint code
  • npm run format - Format code with Prettier

Error Handling

The server includes comprehensive error handling:

  • API rate limit detection and backoff
  • Network error recovery
  • Invalid token detection
  • Detailed error messages for debugging

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Changelog

v0.2.0 (2025-06-23)

  • 🎉 Unified Implementation: Combined original and enhanced features into single codebase
  • 🤖 Optional Intelligence: Added 3 AI-powered tools (disabled by default)
  • 📈 Enhanced Parameters: Core tools now support optional analysis parameters
  • 🔄 Full Backward Compatibility: All existing integrations continue to work unchanged
  • 📦 Package Rename: Now published as @lepion/mcp-server-doppler
  • 🛠️ Improved Error Handling: Better error messages and recovery

v0.1.0

  • Initial release with 8 core Doppler management tools
  • Basic MCP server implementation
  • Support for all major Doppler operations

License

MIT License - see LICENSE file for details

Python Client Integration

For Python applications, you can use the MCP client to interact with the server:

from mcp_doppler_client import MCPDopplerClient

with MCPDopplerClient() as client:
    # List all projects
    projects = client.list_projects()
    
    # Get secrets from a project/config
    secrets = client.list_secrets("myapp", "production")
    
    # Set a secret
    client.set_secret("myapp", "development", "API_KEY", "sk-12345")

See the examples directory for complete integration examples.

Token Types

Doppler supports several token types:

  • CLI Tokens (dp.ct.*) - Full read/write access based on user permissions
  • Personal Tokens (dp.pt.*) - User-specific API access
  • Service Tokens (dp.st.*) - Typically read-only for production
  • Service Account Tokens (dp.sa.*) - Read/write for automation

For AI assistants, we recommend:

  • CLI tokens for development (full access)
  • Service tokens for production (read-only)

Example Use Cases

Once configured, you can ask Claude to:

Basic Operations (Always Available)

  • "List all my Doppler projects"
  • "Show me the secrets in the production environment"
  • "Update the DATABASE_URL in staging"
  • "Create a read-only service token for the API"
  • "Promote all secrets from development to staging, excluding DEBUG keys"
  • "Show me the activity logs for the last hour"
  • "Delete the OLD_API_KEY from all environments"

With Intelligence Features Enabled

  • "Get security recommendations for my production environment"
  • "Validate my production configuration against best practices"
  • "Help troubleshoot why my database connection is failing"
  • "Analyze the security of my API secrets"
  • "Check if my secret naming follows conventions"
  • "Preview what would be promoted from staging to production"

Troubleshooting

Common Issues

  1. "DOPPLER_TOKEN not found"

    • Ensure the token is set in your Claude Desktop config
    • Verify the token is valid and has appropriate permissions
  2. "Failed to list secrets"

    • Check that the project and config names are correct
    • Verify the token has access to the specified project
  3. "Rate limit exceeded"

    • The server implements automatic retry with backoff
    • Consider using a service account token for higher limits

Related Projects

Support

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选