Skip to main content
Glama

Python Server MCP

passwords.py540 B
import random import string import pyotp def generate_password(length: int = 20): DIGITS_QTY = length // 3 digits = "".join((random.choice(string.digits) for _ in range(DIGITS_QTY))) letters = "".join((random.choice(string.ascii_letters) for _ in range(length - DIGITS_QTY))) sample_list = list(letters + digits) random.shuffle(sample_list) final_string = "".join(sample_list) return final_string def validate_otp(key: str, otp_code: str) -> bool: totp = pyotp.TOTP(key) return totp.verify(otp_code)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevearagonsite/PythonServerMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server