How does it work?

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.

โš ๏ธ Important: The tool gives the generated keys, including your private key, to the AI agent that called it. Most AI agents send tool results to their AI service, so that service can see your private key. Only use it with an agent you trust. To keep your private key on your device, generate your keys yourself on the home page.

Which browsers support it?

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.

What parameters does the tool take?

The tool returns the armored privateKey, publicKey and revocationCertificate.

How do I test it?

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" }