utilities
Generate secure, customizable passwords with various complexity options through MCP protocol
While you can view all details here, using this MCP server's API requires a Enterprise subscription. API calls with FREE plan keys will return an access error.
View Pricing PlansAnalyze the strength and security characteristics of a password
Generate memorable passwords using word patterns for better usability
Generate multiple secure passwords with the same settings
Generate a single secure password with customizable options
The Password Generator MCP server provides comprehensive password generation and analysis functionality through the Model Context Protocol (MCP). This server provides comprehensive functionality.
This MCP server exposes 4 tools for AI agents:
generate_passwordPurpose: Generate a single secure password with customizable options
type (random|memorable|pin|custom), length (4-128), character set optionsgenerate_multiple_passwordsPurpose: Generate multiple secure passwords with the same settings
count (1-100), password configuration optionsgenerate_memorable_passwordPurpose: Generate memorable passwords using word patterns for better usability
wordCount (2-6), separator, number/capitalization optionsanalyze_password_strengthPurpose: Analyze the strength and security characteristics of a password
password, detailed feedback options/api/mcp/utilities/password-generator/sse/api/utilities/password-generator/v1Endpoint: https://apistack.online/api/mcp/utilities/password-generator/sse
Method: POST
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"jsonrpc": "2.0",
"id": "list-tools",
"method": "tools/list"
}
{
"jsonrpc": "2.0",
"id": "gen-1",
"method": "tools/call",
"params": {
"name": "generate_password",
"arguments": {
"type": "random",
"length": 16,
"includeLowercase": true,
"includeUppercase": true,
"includeNumbers": true,
"includeSymbols": true,
"excludeSimilar": true
}
}
}
{
"jsonrpc": "2.0",
"id": "mem-1",
"method": "tools/call",
"params": {
"name": "generate_memorable_password",
"arguments": {
"wordCount": 3,
"separator": "-",
"includeNumbers": true,
"capitalizeWords": true
}
}
}
{
"jsonrpc": "2.0",
"id": "analyze-1",
"method": "tools/call",
"params": {
"name": "analyze_password_strength",
"arguments": {
"password": "MySecureP@ssw0rd!",
"includeDetailedFeedback": true
}
}
}
import requests
import json
class PasswordGeneratorMCPClient:
def __init__(self, base_url, api_key):
self.base_url = base_url
self.headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {api_key}"
}
self.endpoint = f"{base_url}/api/mcp/utilities/password-generator/sse"
def generate_password(self, password_type="random", length=16, **options):
request = {
"jsonrpc": "2.0",
"id": "generate",
"method": "tools/call",
"params": {
"name": "generate_password",
"arguments": {
"type": password_type,
"length": length,
**options
}
}
}
response = requests.post(self.endpoint, headers=self.headers, json=request)
result = response.json()
return result["result"]["content"][0]["text"]
def generate_multiple_passwords(self, count=5, **options):
request = {
"jsonrpc": "2.0",
"id": "generate-multiple",
"method": "tools/call",
"params": {
"name": "generate_multiple_passwords",
"arguments": {
"count": count,
**options
}
}
}
response = requests.post(self.endpoint, headers=self.headers, json=request)
result = response.json()
return result["result"]["content"][0]["text"]
def generate_memorable_password(self, word_count=3, separator="-", **options):
request = {
"jsonrpc": "2.0",
"id": "memorable",
"method": "tools/call",
"params": {
"name": "generate_memorable_password",
"arguments": {
"wordCount": word_count,
"separator": separator,
**options
}
}
}
response = requests.post(self.endpoint, headers=self.headers, json=request)
result = response.json()
return result["result"]["content"][0]["text"]
def analyze_password_strength(self, password, detailed=True):
request = {
"jsonrpc": "2.0",
"id": "analyze",
"method": "tools/call",
"params": {
"name": "analyze_password_strength",
"arguments": {
"password": password,
"includeDetailedFeedback": detailed
}
}
}
response = requests.post(self.endpoint, headers=self.headers, json=request)
result = response.json()
return result["result"]["content"][0]["text"]
# Usage Examples
client = PasswordGeneratorMCPClient("https://apistack.online", "YOUR_API_KEY")
# Generate a secure random password
secure_password = client.generate_password(
type="random",
length=20,
includeLowercase=True,
includeUppercase=True,
includeNumbers=True,
includeSymbols=True,
excludeSimilar=True
)
print(f"Secure Password: {secure_password}")
# Generate memorable password
memorable = client.generate_memorable_password(
word_count=4,
separator="-",
includeNumbers=True,
capitalizeWords=True
)
print(f"Memorable Password: {memorable}")
# Analyze password strength
analysis = client.analyze_password_strength("MyOldPassword123", detailed=True)
print(f"Password Analysis: {analysis}")
# Generate multiple passwords for team
team_passwords = client.generate_multiple_passwords(
count=10,
type="random",
length=16,
includeSymbols=True
)
print(f"Team Passwords: {team_passwords}")
const axios = require('axios');
class PasswordGeneratorMCPClient {
constructor(baseUrl, apiKey) {
this.baseUrl = baseUrl;
this.endpoint = `${baseUrl}/api/mcp/utilities/password-generator/sse`;
this.headers = {
'Content-Type': 'application/json',
'Authorization': `Bearer ${apiKey}`
};
}
async generatePassword(options = {}) {
const request = {
jsonrpc: "2.0",
id: "generate",
method: "tools/call",
params: {
name: "generate_password",
arguments: {
type: "random",
length: 16,
includeLowercase: true,
includeUppercase: true,
includeNumbers: true,
includeSymbols: true,
...options
}
}
};
const response = await axios.post(this.endpoint, request, { headers: this.headers });
return response.data.result.content[0].text;
}
async generateMultiplePasswords(count = 5, options = {}) {
const request = {
jsonrpc: "2.0",
id: "generate-multiple",
method: "tools/call",
params: {
name: "generate_multiple_passwords",
arguments: {
count,
type: "random",
length: 16,
...options
}
}
};
const response = await axios.post(this.endpoint, request, { headers: this.headers });
return response.data.result.content[0].text;
}
async generateMemorablePassword(options = {}) {
const request = {
jsonrpc: "2.0",
id: "memorable",
method: "tools/call",
params: {
name: "generate_memorable_password",
arguments: {
wordCount: 3,
separator: "-",
includeNumbers: true,
capitalizeWords: true,
...options
}
}
};
const response = await axios.post(this.endpoint, request, { headers: this.headers });
return response.data.result.content[0].text;
}
async analyzePasswordStrength(password, includeDetailedFeedback = true) {
const request = {
jsonrpc: "2.0",
id: "analyze",
method: "tools/call",
params: {
name: "analyze_password_strength",
arguments: {
password,
includeDetailedFeedback
}
}
};
const response = await axios.post(this.endpoint, request, { headers: this.headers });
return response.data.result.content[0].text;
}
}
// Usage Examples
(async () => {
const client = new PasswordGeneratorMCPClient("https://apistack.online", "YOUR_API_KEY");
try {
// Generate secure password
const securePassword = await client.generatePassword({
type: "random",
length: 20,
excludeSimilar: true,
excludeAmbiguous: true
});
console.log("Secure Password:", securePassword);
// Generate memorable password
const memorablePassword = await client.generateMemorablePassword({
wordCount: 4,
separator: ".",
includeNumbers: true
});
console.log("Memorable Password:", memorablePassword);
// Analyze password strength
const analysis = await client.analyzePasswordStrength("TestPassword123!");
console.log("Password Analysis:", analysis);
// Generate multiple passwords
const multiplePasswords = await client.generateMultiplePasswords(5, {
length: 12,
type: "random"
});
console.log("Multiple Passwords:", multiplePasswords);
} catch (error) {
console.error("Error:", error.response?.data || error.message);
}
})();
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
public class PasswordGeneratorMCPClient
{
private readonly HttpClient _httpClient;
private readonly string _endpoint;
public PasswordGeneratorMCPClient(string baseUrl, string apiKey)
{
_httpClient = new HttpClient();
_endpoint = $"{baseUrl}/api/mcp/utilities/password-generator/sse";
_httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {apiKey}");
}
public async Task<string> GeneratePasswordAsync(object options = null)
{
var defaultOptions = new
{
type = "random",
length = 16,
includeLowercase = true,
includeUppercase = true,
includeNumbers = true,
includeSymbols = true
};
var request = new
{
jsonrpc = "2.0",
id = "generate",
method = "tools/call",
@params = new
{
name = "generate_password",
arguments = options ?? defaultOptions
}
};
return await SendRequestAsync(request);
}
public async Task<string> GenerateMultiplePasswordsAsync(int count, object options = null)
{
var request = new
{
jsonrpc = "2.0",
id = "generate-multiple",
method = "tools/call",
@params = new
{
name = "generate_multiple_passwords",
arguments = new
{
count,
type = "random",
length = 16,
includeLowercase = true,
includeUppercase = true,
includeNumbers = true,
includeSymbols = true
}
}
};
return await SendRequestAsync(request);
}
public async Task<string> GenerateMemorablePasswordAsync(int wordCount = 3, string separator = "-")
{
var request = new
{
jsonrpc = "2.0",
id = "memorable",
method = "tools/call",
@params = new
{
name = "generate_memorable_password",
arguments = new
{
wordCount,
separator,
includeNumbers = true,
capitalizeWords = true
}
}
};
return await SendRequestAsync(request);
}
public async Task<string> AnalyzePasswordStrengthAsync(string password, bool includeDetailedFeedback = true)
{
var request = new
{
jsonrpc = "2.0",
id = "analyze",
method = "tools/call",
@params = new
{
name = "analyze_password_strength",
arguments = new
{
password,
includeDetailedFeedback
}
}
};
return await SendRequestAsync(request);
}
private async Task<string> SendRequestAsync(object request)
{
var json = JsonSerializer.Serialize(request);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await _httpClient.PostAsync(_endpoint, content);
var responseJson = await response.Content.ReadAsStringAsync();
using var doc = JsonDocument.Parse(responseJson);
return doc.RootElement.GetProperty("result")
.GetProperty("content")[0]
.GetProperty("text").GetString();
}
}
// Usage Examples
class Program
{
static async Task Main(string[] args)
{
var client = new PasswordGeneratorMCPClient("https://apistack.online", "YOUR_API_KEY");
try
{
// Generate secure password
var securePasswordOptions = new
{
type = "random",
length = 20,
includeLowercase = true,
includeUppercase = true,
includeNumbers = true,
includeSymbols = true,
excludeSimilar = true
};
var securePassword = await client.GeneratePasswordAsync(securePasswordOptions);
Console.WriteLine($"Secure Password: {securePassword}");
// Generate memorable password
var memorablePassword = await client.GenerateMemorablePasswordAsync(4, ".");
Console.WriteLine($"Memorable Password: {memorablePassword}");
// Analyze password strength
var analysis = await client.AnalyzePasswordStrengthAsync("MyTestPassword123!", true);
Console.WriteLine($"Password Analysis: {analysis}");
// Generate multiple passwords
var multiplePasswords = await client.GenerateMultiplePasswordsAsync(5);
Console.WriteLine($"Multiple Passwords: {multiplePasswords}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
All tool responses follow the MCP protocol format:
{
"jsonrpc": "2.0",
"id": "request-id",
"result": {
"content": [
{
"type": "text",
"text": "โ
**Password Generated Successfully**\n\n**Generated Password:**\n```\nK9mN#pQ2vX8$wE4z\n```\n\n**Password Details:**\n- Length: 16 characters\n- Strength: Very Strong (95/100)\n- Character Types: Uppercase, Lowercase, Numbers, Symbols\n- Estimated Time to Crack: 2.4 million years"
}
]
}
}
{
"jsonrpc": "2.0",
"id": "request-id",
"error": {
"code": -32603,
"message": "Invalid password length. Must be between 4 and 128 characters.",
"data": "Length provided: 200"
}
}
Test the Password Generator MCP server:
# Test all tools
curl -X POST http://apistack.online/api/mcp/utilities/password-generator/sse \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": "test",
"method": "tools/call",
"params": {
"name": "generate_password",
"arguments": {
"type": "random",
"length": 16,
"includeSymbols": true
}
}
}'
AI Agent/Client
โ
MCP Protocol (JSON-RPC 2.0)
โ
Password Generator MCP Server (/api/mcp/utilities/password-generator/sse)
โ
Authentication & Validation
โ
Password Generator API (/api/utilities/password-generator/v1)
โ
Secure Random Generation + Analysis
โ
Response via MCP Protocol
{
"name": "generate_password",
"description": "Generate a single secure password with customizable options",
"inputSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["random", "memorable", "pin", "custom"],
"default": "random",
"description": "Type of password to generate"
},
"length": {
"type": "number",
"minimum": 4,
"maximum": 128,
"default": 16,
"description": "Length of the password"
},
"includeLowercase": {
"type": "boolean",
"default": true,
"description": "Include lowercase letters (a-z)"
},
"includeUppercase": {
"type": "boolean",
"default": true,
"description": "Include uppercase letters (A-Z)"
},
"includeNumbers": {
"type": "boolean",
"default": true,
"description": "Include numbers (0-9)"
},
"includeSymbols": {
"type": "boolean",
"default": true,
"description": "Include symbols (!@#$%^&*)"
},
"excludeSimilar": {
"type": "boolean",
"default": false,
"description": "Exclude similar-looking characters (0, O, l, 1, I)"
},
"excludeAmbiguous": {
"type": "boolean",
"default": false,
"description": "Exclude ambiguous characters ({}, [], (), etc.)"
},
"customCharset": {
"type": "string",
"description": "Custom character set for password generation (for 'custom' type)",
"minLength": 4
}
},
"required": []
}
}
{
"name": "generate_multiple_passwords",
"description": "Generate multiple secure passwords with the same settings",
"inputSchema": {
"type": "object",
"properties": {
"count": {
"type": "number",
"minimum": 1,
"maximum": 100,
"default": 5,
"description": "Number of passwords to generate"
},
"type": {
"type": "string",
"enum": ["random", "memorable", "pin", "custom"],
"default": "random",
"description": "Type of password to generate"
},
"length": {
"type": "number",
"minimum": 4,
"maximum": 128,
"default": 16,
"description": "Length of the password"
}
},
"required": ["count"]
}
}
{
"name": "generate_memorable_password",
"description": "Generate memorable passwords using word patterns for better usability",
"inputSchema": {
"type": "object",
"properties": {
"wordCount": {
"type": "number",
"minimum": 2,
"maximum": 6,
"default": 3,
"description": "Number of words to use in the password"
},
"separator": {
"type": "string",
"default": "-",
"description": "Character to separate words",
"maxLength": 1
},
"includeNumbers": {
"type": "boolean",
"default": true,
"description": "Add numbers to the end for extra security"
},
"capitalizeWords": {
"type": "boolean",
"default": true,
"description": "Randomly capitalize first letters of words"
}
},
"required": []
}
}
{
"name": "analyze_password_strength",
"description": "Analyze the strength and security characteristics of a password",
"inputSchema": {
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "The password to analyze",
"minLength": 1
},
"includeDetailedFeedback": {
"type": "boolean",
"default": true,
"description": "Include detailed feedback and suggestions"
}
},
"required": ["password"]
}
}
For issues, feature requests, or integration help:
Note: This MCP server requires a PRO or ENTERPRISE subscription and valid API authentication. The server provides comprehensive functionality workflows.
Add this configuration to your MCP client:
Note: Replace "YOUR_API_KEY" with a valid Enterprise API key. FREE plan keys will receive access errors.
{
"mcpServers": {
"password-generator-utilities": {
"command": "curl",
"args": [
"-X",
"POST",
"https://apistack.online/api/mcp/utilities/password-generator/sse",
"-H",
"Content-Type: application/json",
"-H",
"Authorization: Bearer YOUR_API_KEY",
"--data-raw",
"@-"
],
"transport": "sse"
}
}
}Use the MCP configuration above in your AI client, or test the underlying APIs in our playground.
API playground requires a Enterprise subscription for access.