mcp-password-generator
v1.0.0
Published
MCP server for Password Generator Pro — generate cryptographically secure passwords and passphrases with custom rules
Downloads
132
Maintainers
Readme
mcp-password-generator
MCP server for Password Generator Pro — generate cryptographically secure passwords and passphrases with custom rules.
All randomness comes from Node.js crypto.randomBytes — Math.random() is never used.
Installation
npm install -g mcp-password-generatorOr run directly without installing:
npx mcp-password-generatorConfiguration
No API key or environment variables required. The server runs entirely locally.
Claude Desktop configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"password-generator": {
"command": "npx",
"args": ["mcp-password-generator"]
}
}
}Available tools
| Tool | Description |
|------|-------------|
| generate_password | Generate a secure password or passphrase with custom length, character sets, and mode |
Tool: generate_password
Inputs
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| length | integer | 16 | Password length (1–512). Password mode only. |
| include_uppercase | boolean | true | Include A–Z |
| include_numbers | boolean | true | Include 0–9 |
| include_symbols | boolean | true | Include !@#$%^&*()-_=+[]{}|;:,.<>? |
| exclude_ambiguous | boolean | false | Exclude 0 O l 1 I |
| mode | string | "password" | "password" or "passphrase" |
| word_count | integer | 4 | Words in passphrase (1–20). Passphrase mode only. |
Output
{
"password": "xK7!mQr#2vPw@9Lz",
"entropy": 105.12,
"strength": "Very Strong",
"composition": {
"uppercase": 4,
"lowercase": 6,
"numbers": 3,
"symbols": 3
},
"summary": "Very Strong 16-char password | 105.12 bits entropy"
}Strength ratings
| Entropy | Rating | |---------|--------| | < 40 bits | Weak | | 40–59 bits | Fair | | 60–79 bits | Strong | | 80+ bits | Very Strong |
Example usage
Generate a strong default password:
Generate a secure password for my new AWS account.Claude will call generate_password with defaults and return a Very Strong 16-char password.
Long password with no ambiguous characters:
Create a 24-character password I can read aloud to someone — no ambiguous characters.Claude will call generate_password with length: 24, exclude_ambiguous: true.
Memorable passphrase:
Make a passphrase I can actually remember.Claude will call generate_password with mode: "passphrase". Use 8+ words for Strong entropy.
Symbols-free password for a legacy system:
The system doesn't accept special characters. Give me a 20-char password.Claude will call generate_password with length: 20, include_symbols: false.
Entropy quick reference
| Configuration | Entropy | Strength | |--------------|---------|----------| | 8-char, all types | ~52 bits | Fair | | 16-char, all types | ~105 bits | Very Strong | | 24-char, all types | ~157 bits | Very Strong | | 4-word passphrase | ~30 bits | Weak | | 6-word passphrase | ~46 bits | Fair | | 8-word passphrase | ~61 bits | Strong | | 12-word passphrase | ~92 bits | Very Strong |
