← Back to Blog

The .well-known Directory: Your Site's Machine-Readable Identity Hub

· Updated October 13, 2026 · 9 min read The .well-known Directory: Your Site's Machine-Readable Identity Hub

Every website has a front door for humans. It is your homepage. But in 2026, your site also needs a front door for machines. And that front door is the .well-known directory.

The .well-known URI path is an IETF standard (RFC 8615) that provides a predictable location for machine-readable metadata about your site. When a security researcher needs to report a vulnerability, they check /.well-known/security.txt. When an A2A client wants to talk to an agent you run, it reads /.well-known/agent-card.json. When an agent wants a list of every agent resource on your site, it reads the AI catalog at /.well-known/ard.json. When a federation protocol needs to discover your identity, it checks /.well-known/webfinger.

I just deployed a complete .well-known directory across 52 websites. Here is every file that matters, why it matters, and how to implement each one.

security.txt: Your Vulnerability Reporting Policy

File: /.well-known/security.txt Standard: RFC 9116 Purpose: Tells security researchers how to report vulnerabilities in your site

This is the oldest and most established .well-known file. If a researcher finds a security issue on your site. An exposed database, a misconfigured API, a cross-site scripting vulnerability. security.txt tells them who to contact and how.

Contact: mailto:security@yourdomain.com
Expires: 2027-04-14T00:00:00.000Z
Preferred-Languages: en
Canonical: https://yourdomain.com/.well-known/security.txt
Policy: https://yourdomain.com/security-policy/

Key fields:

  • Contact (required). Email, URL, or phone number for security reports
  • Expires (required). When this file should be considered stale
  • Preferred-Languages. Languages you can accept reports in
  • Canonical. The definitive URL for this file
  • Policy. Link to your full vulnerability disclosure policy

Without security.txt, researchers who find vulnerabilities often have no way to report them responsibly. They email generic contact addresses, submit web forms that go to marketing teams, or simply give up. The vulnerability stays open.

agent-card.json: Your A2A Agent Description

File: /.well-known/agent-card.json Standard: A2A protocol specification, version 1.0 Purpose: Describes an A2A agent: software that accepts A2A messages at an endpoint

Updated October 13, 2026: I first described this file as a site identity card for every AI agent, with a template that was not a valid A2A card. The A2A protocol defines this address for describing an A2A agent endpoint, so I corrected the section, replaced the template, and added the AI catalog and the MCP server card below.

This file is not a description of your website. It describes one A2A agent and tells A2A clients where to send messages. Publish it only if you actually run an A2A endpoint. If you do not, the right answer at this address is a 404.

The A2A 1.0 spec requires name, description, supportedInterfaces (each with url, protocolBinding and protocolVersion), version, capabilities (an object), defaultInputModes, defaultOutputModes and skills (each with id, name, description and tags). A minimal card:

{
  "name": "Example Site Assistant",
  "description": "Answers questions about the articles published on yourdomain.com.",
  "supportedInterfaces": [
    {
      "url": "https://yourdomain.com/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "version": "1.0.0",
  "capabilities": {},
  "defaultInputModes": ["text/plain"],
  "defaultOutputModes": ["text/plain"],
  "skills": [
    {
      "id": "article-search",
      "name": "Article search",
      "description": "Finds published articles on a topic and returns titles and links.",
      "tags": ["search", "articles"]
    }
  ]
}

I covered agent cards in a separate post. The short version: if you want machines to understand who you are, that goes in llms.txt, AGENTS.md and schema.org markup on your pages, not in an agent card.

ard.json: The AI Catalog

File: /.well-known/ard.json, with the same bytes at /.well-known/ai-catalog.json Standard: Agentic Resource Discovery (ARD) v0.91, status Proposal Purpose: One site-wide index of every agent resource you publish

The catalog lists agent resources. Each entry points to a card, and the card names the endpoint that does the work. Catalog, then card, then endpoint.

/.well-known/ard.json is the current address. /.well-known/ai-catalog.json is the older one, and Lighthouse 13.5.0 still reads it, so publish one file at both. Point to it with <link rel="ard" href="/.well-known/ard.json"> in your HTML or a Link header.

{
  "specVersion": "1.0",
  "host": {
    "displayName": "Example Site",
    "documentationUrl": "https://yourdomain.com/AGENTS.md"
  },
  "entries": [
    {
      "identifier": "urn:air:yourdomain.com:mcp:site",
      "displayName": "Example Site MCP server",
      "type": "application/mcp-server-card+json",
      "url": "https://yourdomain.com/mcp/server-card",
      "representativeQueries": [
        "Search the articles on this site",
        "Find the post about security.txt"
      ]
    }
  ]
}

A few rules catch people out. host only accepts displayName, identifier, documentationUrl, logoUrl and trustManifest; a url or description inside host makes Lighthouse score the file 0. Each entry needs 2 to 5 representativeQueries. An A2A agent goes in as an entry with type application/a2a-agent-card+json and its card URL. llms.txt, sitemaps, HTML pages and feeds are not entries.

Lighthouse checks the file in its ard-schema audit, in the Agentic Browsing category. The full standard is in Agent readiness past llms.txt.

The MCP Server Card

File: recommended at your MCP endpoint plus /server-card (for example https://yourdomain.com/mcp/server-card) Standard: SEP-2127 MCP Server Cards, status Final Purpose: Describes an MCP server and where to connect to it

If you run an MCP server, the card names it and lists its remote endpoints. It does not list tools, resources or prompts; clients get those from the server at runtime. A .well-known address is allowed but not recommended. Some scanners still read /.well-known/mcp/server-card.json, so you can serve the same bytes there too.

{
  "$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
  "name": "com.yourdomain/site",
  "version": "1.0.0",
  "description": "Search and read the articles on yourdomain.com.",
  "remotes": [
    { "type": "streamable-http", "url": "https://yourdomain.com/mcp" }
  ]
}

Serve it as application/mcp-server-card+json with Access-Control-Allow-Origin: *, a Cache-Control: public, max-age=3600 header and an ETag. The $schema URL is a name, not a link (it answered 404 when I checked), so validate against schema.json in the ext-server-card repository.

ai-plugin.json: ChatGPT Plugin Discovery

File: /.well-known/ai-plugin.json Purpose: Describes your site as a ChatGPT plugin or AI tool integration endpoint

OpenAI introduced this format for ChatGPT plugin discovery. Even if you are not building a full ChatGPT plugin, having this file signals to AI systems that your site has structured capabilities.

{
  "schema_version": "v1",
  "name_for_human": "Your Site Name",
  "name_for_model": "your_site",
  "description_for_human": "What your site does for humans",
  "description_for_model": "Structured description for AI consumption",
  "auth": {
    "type": "none"
  },
  "api": {
    "type": "openapi",
    "url": "https://yourdomain.com/openapi.yaml"
  },
  "logo_url": "https://yourdomain.com/logo.png",
  "contact_email": "hello@yourdomain.com",
  "legal_info_url": "https://yourdomain.com/legal/"
}

The description_for_model field is particularly valuable. It is your elevator pitch to AI systems. A concise, keyword-rich description of what your site offers, optimized for machine comprehension rather than human marketing.

webfinger: Federation and Identity Discovery

File: /.well-known/webfinger Standard: RFC 7033 Purpose: Enables cross-platform identity discovery for federation protocols

Webfinger is how Mastodon, Bluesky (via bridging), and other federated platforms discover your identity. When someone searches for @you@yourdomain.com on Mastodon, their server queries https://yourdomain.com/.well-known/webfinger?resource=acct:you@yourdomain.com.

For static sites, you can create a webfinger file that handles your primary identity:

{
  "subject": "acct:you@yourdomain.com",
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "type": "text/html",
      "href": "https://yourdomain.com"
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://yourdomain.com/activitypub/actor"
    }
  ]
}

Even if you are not running a full ActivityPub server, a webfinger file that redirects to your Mastodon profile allows people to find you using your domain as your identity handle.

robots.txt: Still Essential, Now AI-Aware

File: /robots.txt (not technically in .well-known, but part of the same ecosystem) Purpose: Controls which crawlers can access which parts of your site

In 2026, robots.txt has new relevance because of AI crawlers. You now need to make explicit decisions about:

User-agent: GPTBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: CCBot
Disallow: /

User-agent: anthropic-ai
Allow: /

Each AI company has its own crawler. You can allow or block them individually. The decision depends on your business model. If you want AI citation, allow the crawlers. If you want to protect content behind a paywall, block them.

llms.txt: AI-Specific Content Guidance

File: /llms.txt Purpose: Tells LLMs what your site is about and how to represent it

This file is a plain-text briefing for large language models. Unlike robots.txt which controls access, llms.txt provides context:

# Your Site Name

> One-sentence description of your site.

## About
Two to three paragraphs explaining who you are, what you publish, and what you're an authority on.

## Key Topics
- Topic 1
- Topic 2
- Topic 3

## Contact
- Email: hello@yourdomain.com
- Website: https://yourdomain.com

When an LLM encounters your site during training or retrieval, llms.txt gives it a structured understanding of your identity and expertise. We saw improved accuracy in how AI systems describe our sites after deploying this file.

The Complete .well-known Audit Checklist

Here is every file you should evaluate for your .well-known directory:

Scroll to compare columns and rows when the table extends beyond the box.

File Priority Purpose
security.txt High Vulnerability reporting
ard.json (and ai-catalog.json) High if you publish any agent resource AI catalog: index of your agents, MCP servers and skills
agent-card.json Only if you run an A2A agent A2A agent description
MCP server card Only if you run an MCP server MCP server description
ai-plugin.json Medium ChatGPT/AI plugin discovery
webfinger Medium Federation identity
change-password Low Password manager support
assetlinks.json Low Android app linking
apple-app-site-association Low iOS app linking

Plus these root-level files that work alongside .well-known:

Scroll to compare columns and rows when the table extends beyond the box.

File Priority Purpose
robots.txt High Crawler control
llms.txt High LLM context
humans.txt Low Team credits
ads.txt Medium Ad fraud prevention

Deployment Tips for Static Sites

If you run a static site generator (Eleventy, Hugo, Astro, Next.js), you need to ensure the .well-known directory survives the build process:

  • Eleventy: Add eleventyConfig.addPassthroughCopy(".well-known") to your config
  • Hugo: Place files in the static/.well-known/ directory
  • Astro: Place files in the public/.well-known/ directory
  • Next.js: Place files in the public/.well-known/ directory

On Cloudflare Pages, verify that the files are accessible after deployment. Some configurations strip dot-prefixed directories.

Why This Matters

The .well-known directory is your site's machine-readable identity hub. Every file in it serves a different audience: security researchers, AI agents, federation protocols, app stores. But together they form a complete picture of who you are and how machines should interact with you.

Most websites have zero .well-known files. Some have a security.txt. Almost none have the full stack. That is an opportunity. The sites that invest 30 minutes in building out this directory will be more discoverable, more trustworthy, and more integrated with the machine-readable web than their competitors.

This strategy is covered in more depth in The $100 Network. Including deployment automation for multi-site networks and the complete .well-known template set. Buy The $100 Network on Amazon.

Fact-check notes and sources

  • October 13, 2026 update: The agent card address, its purpose and its required fields (section 4.4.1) come from the A2A protocol specification, version 1.0.0, read October 13, 2026. The AI catalog addresses, rel="ard", the closed host object, the entry rules and the entry media types come from Agentic Resource Discovery v0.91 (status Proposal, dated August 26, 2026), read October 13, 2026, and from Lighthouse 13.5.0's ard-schema audit as checked on October 13, 2026. The MCP server card fields, address and headers come from SEP-2127 and the ext-server-card repository (schema.json and docs/discovery.md), read October 13, 2026.

Related reading

The methodology behind this piece is covered in depth in:

  • The $97 Launch, Domain, hosting, deploy, and indexing stack for getting a site into search quickly.
  • The $100 Network, Monoclone architecture, IndexNow, and multi-site scaling, how to run a network of sites.

← Back to Blog

Accessibility Options

Text Size
High Contrast
Reduce Motion
Reading Guide
Link Highlighting
Accessibility Statement

J.A. Watte is committed to ensuring digital accessibility for people with disabilities. This site conforms to WCAG 2.1 and 2.2 Level AA guidelines.

Measures Taken

  • Semantic HTML with proper heading hierarchy
  • ARIA labels and roles for interactive components
  • Color contrast ratios meeting WCAG AA (4.5:1)
  • Full keyboard navigation support
  • Skip navigation link
  • Visible focus indicators (3:1 contrast)
  • 44px minimum touch/click targets
  • Dark/light theme with system preference detection
  • Responsive design for all devices
  • Reduced motion support (CSS + toggle)
  • Text size customization (14px–20px)
  • Print stylesheet

Feedback

Contact: jwatte.com/contact

Full Accessibility Statement • Privacy Policy

Last updated: April 2026