password-generator-mcp-server

laks08/password-generator-mcp-server

3.2

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.

Tools
5
Resources
0
Prompts
0

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 sets
  • generate_passphrase - Create memorable passphrases using random words and numbers
  • check_password_strength - Analyze password strength and provide detailed security feedback
  • generate_api_key - Generate secure API keys and tokens in multiple formats
  • generate_pin - Create secure numeric PINs with optional unique digits
  • generate_batch_passwords - Generate multiple passwords at once for bulk needs
  • generate_secure_phrase - Create themed secure phrases for easy memorization

Prerequisites

  • Docker Desktop with MCP Toolkit enabled
  • Docker MCP CLI plugin (docker mcp command)

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

  1. Add the function to password_generator_server.py
  2. Decorate with @mcp.tool()
  3. Update the catalog entry with the new tool name
  4. 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 secrets module 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 (secrets module)
  • 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