secure-mcp

A one-command way for a site operator to publish agent-callable functions with a verifiable declaration, so agents can tell a trustworthy declaration from a made-up one.

The problem

WebMCP is an emerging protocol to allow sites to more easily interface with AI tools and agents. WebMCP allos site-holders to declare functions that an agent can call so the agent does not have to rely on the DOM or screenshots to interact with a page like a person.

The work of publishing those functions falls on the site-holder, and the of doing so benefit is for agents and their makers, not the site-holder. As much as WebMCP is simple, declaring function is still work.

From the agent's perspective, WebMCP declarations are site-holder attested. Nothing lets an agent or a site tell a trustworthy declaration from a made-up or maliious one.

The idea

secure-mcp is to WebMCP what certbot is to HTTPS. Certbot turned certificates from a task for specialists into one command. secure-mcp aims to do the same for publishing functions: the operator installs it, it scans the site and finds the actions people take there, and it issues a cert for each one. The operator then switches it on and lets bots in.

The aim is to make WebMCP into a trusted and secure protocol. The benefit besides security and rate-limits for site-holders (e.g. monetary) is to be determined.

The illustration uses a ticket venue, Crystal Ball Room, with three actions: search events, view event, and buy tickets. Each step has a command on the left and the result it produced on the right.

The four steps

  1. Install. One command puts the tool on the operator's machine.
  2. Scan. The tool looks at the site and lists the actions it found.
  3. Generate function certs. The tool issues one cert per function.
  4. Let bots in. The functions go live. Declared agents get their own rate limits, and every other agent gets the defaults.

Why a cert

A cert gives a function declaration an origin and an expiry. It says that this function belongs to this site, that someone issued it, and that it lapses on a known date. A TLS certificate does the same for a site's identity. The 90-day lifetime is borrowed from certbot, where short lifetimes mean a stale certificate stops working on its own instead of staying valid for years after the site has changed.

In the illustration the cert for buy_tickets looks like this:

function cert ยท buy_tickets
site     crystalball.example
issued   2026-10-01   expires 2026-12-30
issuer   Mozilla
---------------------------------------------
declared agent   60 calls/hr   payment: own funds
undeclared        5 calls/hr   payment: own funds

The issuer is Mozilla, as in the proof-of-fulfillment illustration. An operator could choose another issuer. The numbers are made up.

The cert carries identity and access terms and nothing else. It does not say what a function does, and it does not say whether the effects can be undone. Those belong to other ideas in this set.

Declared and undeclared agents

Each cert holds two sets of terms. A declared agent tells the site that software is acting, and in return it gets its own, higher rate limit. An undeclared agent looks like any other traffic, so it gets the default, lower limit. This is the same bargain as in the access-policy illustration, seen from the operator's side: disclosure is what earns the better terms, and the operator decides what those terms are.

The tool does not need to know who an agent really is. The terms switch on whether the agent declares itself, and the cert is where the operator wrote them down.

Renewal

Certs expire after 90 days, so something has to renew them. Certbot runs on a schedule and renews quietly. The illustration shows the expiry date on each cert and does not make renewal a step. What a renewal should check, such as whether the site still offers the same actions, is one of the open questions below.

What the illustration leaves out

Open questions

Who issues the certs, and what do they check before signing?

The illustration names Mozilla as issuer because the other illustrations do. An issuer that signs anything it is handed adds nothing, and one that checks too much is a bottleneck. What a signature should mean is undecided.

Can a scan reliably find a site's actions, or does the operator still have to review each one?

Finding the obvious actions on a simple site may be easy. A site with custom flows, logins, or state may not scan cleanly. The page shows a clean scan. A real one would likely need the operator to confirm the list.

Who sets the declared and undeclared limits, the operator or the issuer?

The operator knows their own capacity and what a call costs them. An issuer could offer defaults so a small site does not have to pick numbers. If the issuer sets them, it takes on part of the operator's job.

What stops an operator from certifying a function that does something other than what it says?

A cert ties a function to a site. It does not prove the function does what its name says. A site could certify get_event and have it do something else. Whether the issuer, the agent, or the person behind the agent is meant to catch this is open.

What happens when the site changes and a cert goes stale before it expires?

A 90-day lifetime means a changed site can be wrong for weeks. Re-scanning on a schedule, or whenever the site changes, would narrow the gap. It would also add moving parts for the operator, which works against the idea.

How does an agent find and check a cert, and does WebMCP's current shape have a place for one?

As the WebMCP explainer describes it, a page registers a tool with a name, a description, an input schema, and a callback. None of those fields carries an issuer or an expiry. Where a cert would sit, and how an agent would verify it before calling, is unresolved.