laks08/password-generator-mcp-server
If you are the rightful owner of password-generator-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Password Generator MCP Server is a secure interface for AI assistants to generate strong passwords, analyze password security, and create secure tokens.
Password Generator MCP Server
A Model Context Protocol (MCP) server that provides comprehensive password generation, security analysis, and token creation capabilities for Claude Desktop.
Purpose
This MCP server provides a secure interface for AI assistants to generate strong passwords, analyze password security, create API keys, and generate various types of secure tokens without requiring external services.
Features
Current Implementation
generate_password- Generate secure random passwords with customizable length and character setsgenerate_passphrase- Create memorable passphrases using random words and numberscheck_password_strength- Analyze password strength and provide detailed security feedbackgenerate_api_key- Generate secure API keys and tokens in multiple formatsgenerate_pin- Create secure numeric PINs with optional unique digitsgenerate_batch_passwords- Generate multiple passwords at once for bulk needsgenerate_secure_phrase- Create themed secure phrases for easy memorization
Prerequisites
- Docker Desktop with MCP Toolkit enabled
- Docker MCP CLI plugin (
docker mcpcommand)
Installation
See the step-by-step instructions provided with the files.
Usage Examples
In Claude Desktop, you can ask:
- "Generate a 16-character password with symbols"
- "Create a memorable passphrase with 5 words"
- "Check the strength of my current password"
- "Generate an API key in base64 format"
- "Create a 6-digit PIN without repeating numbers"
- "Generate 10 passwords for my team"
- "Create a secure phrase with a nature theme"
Architecture
Claude Desktop → MCP Gateway → Password Generator MCP Server → Python Security Libraries
↓
Cryptographically Secure Random Generation
Development
Local Testing
# Run directly
python password_generator_server.py
# Test MCP protocol
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | python password_generator_server.py
Adding New Tools
- Add the function to
password_generator_server.py - Decorate with
@mcp.tool() - Update the catalog entry with the new tool name
- Rebuild the Docker image
Troubleshooting
Tools Not Appearing
- Verify Docker image built successfully
- Check catalog and registry files
- Ensure Claude Desktop config includes custom catalog
- Restart Claude Desktop
Generation Issues
- All randomization uses Python's
secretsmodule for cryptographic security - No external dependencies or network calls required
- Entropy sources are automatically managed by the OS
Security Considerations
- Uses cryptographically secure random number generation (
secretsmodule) - No external API calls or network access required
- Running as non-root user in Docker container
- No sensitive data stored or logged
- All generation happens in isolated container environment
Password Security Features
- Configurable character sets and length
- Automatic strength analysis with detailed feedback
- Pattern detection for common weaknesses
- Entropy calculations for security assessment
- Multiple output formats for different use cases
License
MIT License