This page is for developers and people who use AI agents. To generate keys yourself, use the home page.
WebMCP (document.modelContext) is a new browser standard that lets web
pages offer tools to AI agents running in the browser. Your AI agent calls
generate_pgp_keys, and the keys are generated in this site's page, in your browser.
WebMCP is available in Chrome 149 and later. This site takes part in Chrome's WebMCP origin trial, so no flags or settings are needed: the tool is available as soon as the page loads. Other browsers do not support WebMCP on this site yet. WebMCP is still an evolving standard, so details may change.
name (optional) โ Full name for the PGP user ID, e.g.
"Alice Smith"email (required) โ Email address, e.g. "alice@example.com"type โ Key algorithm: "ecc" (default, recommended) or "rsa"
keySize โ RSA key size: 2048 or 4096 (default). Only used
when type is "rsa".passphrase โ Optional passphrase to protect the private key.expirationTime โ Expiration in seconds from now. 0 = never expires
(default).The tool returns the armored privateKey, publicKey and
revocationCertificate.
Install the
Model Context Tool Inspector
extension in Chrome 149 or later. Open the home page and invoke the
generate_pgp_keys tool with:
{
"name": "Alice Smith",
"email": "alice@example.com"
}
To generate a key without a name, leave out name:
{ "email": "alice@example.com" }