Provides Node.js applications with secure programmatic access to Doppler's secret management platform, allowing Node.js apps to retrieve, update, and manage secrets and environment variables stored in Doppler.
@lepion/mcp-server-doppler
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
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:
Configuration
Environment Variables
Create a .env
file in the root directory:
Getting a Doppler Token
- Personal Token (for development):
- Go to Doppler Dashboard
- Navigate to Settings → API → Personal Tokens
- Create a new token with appropriate permissions
- 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
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
Or if installed locally:
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.
2. doppler_list_secrets
List all secret names in a specific project/config.
3. doppler_get_secret
Retrieve a specific secret value.
4. doppler_set_secret
Create or update a secret.
5. doppler_delete_secrets
Delete one or more secrets.
6. doppler_promote_secrets
Promote secrets from one environment to another.
7. doppler_create_service_token
Create a service token for CI/CD or application access.
8. doppler_get_activity_logs
Retrieve audit logs for compliance and monitoring.
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.
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.
Validates:
- Secret naming conventions
- Environment-appropriate configurations
- Security policy compliance
- Configuration completeness
11. doppler_troubleshoot_issue
Get AI assistance for troubleshooting Doppler-related issues.
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:
Examples
See the examples directory for complete usage examples:
- TypeScript Example: Shows how to use the MCP server from a TypeScript application
- Examples README: Detailed documentation of all examples
Quick example:
Security Best Practices
- Token Security:
- Never commit tokens to version control
- Use service account tokens for production
- Rotate tokens regularly
- Access Control:
- Use read-only tokens where write access isn't needed
- Scope tokens to specific projects/configs
- Enable audit logging for compliance
- Environment Isolation:
- Separate tokens for different environments
- Use environment-specific service accounts
- Implement proper secret rotation
Development
Project Structure
Scripts
npm run build
- Compile TypeScriptnpm run dev
- Run in development modenpm start
- Run production servernpm test
- Run testsnpm run lint
- Lint codenpm 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
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- 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:
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
- "DOPPLER_TOKEN not found"
- Ensure the token is set in your Claude Desktop config
- Verify the token is valid and has appropriate permissions
- "Failed to list secrets"
- Check that the project and config names are correct
- Verify the token has access to the specified project
- "Rate limit exceeded"
- The server implements automatic retry with backoff
- Consider using a service account token for higher limits
Related Projects
- Doppler CLI - Official Doppler command-line tool
- Model Context Protocol - MCP specification and documentation
Support
- 📧 Email: support@lepion.io
- 🐛 Issues: GitHub Issues
- 📖 Doppler Docs: docs.doppler.com
- 🤖 MCP Docs: modelcontextprotocol.io
Tools
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.
- Features
- Installation
- What's New in v0.2.0
- Configuration
- Usage
- Available Tools
- Core Tools (Always Available)
- doppler_list_projects
- doppler_list_secrets
- doppler_get_secret
- doppler_set_secret
- doppler_delete_secrets
- doppler_promote_secrets
- doppler_create_service_token
- doppler_get_activity_logs
- Intelligence Tools (Available When DOPPLER_ENABLE_INTELLIGENCE=true)
- doppler_get_security_recommendations
- doppler_validate_configuration
- doppler_troubleshoot_issue
- Resources
- Examples
- Security Best Practices
- Development
- Error Handling
- Contributing
- Changelog
- License
- Python Client Integration
- Token Types
- Example Use Cases
- Troubleshooting
- Related Projects
- Support
Related Resources
Related MCP Servers
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -16TypeScript
Infisical MCP Serverofficial
AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with Infisical APIs for secret management, allowing users to create, update, delete, and list secrets through function calling.Last updated -97320JavaScriptApache 2.0- -securityAlicense-qualityA Model Context Protocol server that provides tools for interacting with Docker images, containers, and registries, enabling AI assistants to search, analyze, and manage Docker resources through a standardized interface.Last updated -PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.Last updated -Python