Publish an MCP server card, with the Claude logo — AIScan cover
Publish an MCP server card, with the Claude logo — AIScan cover
AI Readiness

Publish an MCP Server Card So Agents Can Find Your Tools

We probed 79 MCP Registry hosts and 7 publish a server card. Write server.json, serve it, and see where it goes on Astro, Docusaurus, Hugo, Lovable and Next.js.

10 Sept 2026 25 min read
#MCP#server card#agent discovery#well-known#AI readiness

This guide covers P1 · Capabilities, P2 · Capabilities, P3 · Capabilities, P4 · Capabilities, E2 · Capabilities — for Lovable, Next.js / Vercel.

Table of contents

On 10 September 2026 we probed every host running a remote MCP server listed in the official MCP Registry: 79 domains, three requests each. Seven of them publish a parseable server card at /.well-known/mcp/server-card.json. Those seven files carry 31 distinct top-level fields between them, and exactly one field appears in all seven. Publishing your own card takes about twenty minutes, and this guide covers both the registry route and the self-hosted file, plus how to tell which one your scanner is grading.

Updated on 1 November 2026: added the Next.js file locations and the proxy.ts trap, alongside Astro, Docusaurus, Hugo and Lovable, each dated from the day we built it.

Quick summary

If you want to…Do thisTimeWhat it changes
Be findable by MCP clients and marketplacesPublish server.json to the official MCP Registry with mcp-publisher20 minYour server appears in the registry REST API that aggregators poll
Pass a scanner's server-card checkServe a JSON card at /.well-known/mcp/server-card.json10 minAIScan check P2, and Cloudflare's mcpServerCard, stop reporting 404
Prove you own the domain you publish underServe /.well-known/mcp-registry-auth5 minLets you claim a com.example/* namespace instead of io.github.you/*
Serve the card on a specific stackRead that platform's section: Astro, Docusaurus, Hugo or Lovable5 minPuts the file where your build actually ships it
Check what you already exposeRun a scan and read checks P1 to P4 and E21 minTells you which discovery surfaces exist today

The honest headline: the registry format is specified and stable, the well-known card is not. Write server.json first, then serve a subset of it at the well-known path, because the working group defining the card says the card should stay close to a subset of server.json anyway.

Two different things are both called MCP discovery

An MCP client that already knows your endpoint URL has a specified way to ask what you can do. The MCP specification dated 2026-07-28 defines a JSON-RPC method called server/discover, and its wording is unambiguous: servers MUST implement it. Fetched from the specification on 10 September 2026, the response returns supportedVersions, capabilities, an instructions string, and a serverInfo block the spec itself warns about, in its own words: serverInfo "is self-reported by the server and is not verified by the protocol."

That method answers the second question. It cannot answer the first one, which is where is your server at all. A client has to already hold the URL before it can call anything.

The server card is the answer to that first question: a static JSON document, fetched over plain HTTP with no session and no handshake, that names the endpoint, the transport, the auth model and the tools. Think of server/discover as the phone extension inside the building and the card as the nameplate by the front door. The nameplate is what a crawler, a marketplace or a readiness scanner reads, because none of them are going to open a session with an unknown host just to find out whether it is worth opening a session with.

The card is still a draft, and the seven live files show it

The Model Context Protocol project runs a Server Card Working Group, and its charter is the clearest statement of where this stands. According to the charter, the group exists to "define what constitutes an MCP Server Card, the standardized document format a Server Card must follow, and how clients discover a Server Card for a given server." Its in-scope list names the discovery mechanism explicitly as unsettled work: "Specification of how an MCP Server Card document is discovered (well-known URL, resource-based discovery, etc.)."

Its single active work item, SEP-2127, is listed with status Draft. And the charter's note on coordination with the Registry working group is the most useful sentence in the document for anyone publishing today: the "Server Card format should stay as close as possible to a subset of server.json."

So there is no ratified schema, and the files in the wild look exactly like a convention with no schema. Across the seven parseable cards we fetched:

Top-level fieldCards carrying it (of 7)
description7
version, serverInfo, capabilities6
transport, authentication5
name, $schema4
tools, resources3
21 further fields1 or 2 each

Four of the seven declare a $schema. Between those four there are three different schema URLs, and every one of them returns HTTP 404:

https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json          404
https://static.modelcontextprotocol.io/schemas/server-card/draft/server-card.schema.json  404
https://modelcontextprotocol.io/schemas/server-card/draft-1.json                404
https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json    200, 22,090 bytes

The only MCP schema URL in that list that resolves is server.json's. Two more hosts returned HTTP 200 for the card path and served a body byte-identical to a control path that does not exist on the same host, which is the soft-200 pattern our CI-gate guide diagnoses in detail. Both reproduced on a second pass. One host serves a 303,527-byte card, which is a catalogue wearing a nameplate's filename.

The one MCP file your domain is specified to serve

There is a well-known path the MCP project does define, and it is not the card. Domain-based publishing authentication reads /.well-known/mcp-registry-auth, a one-line file in the form v=MCPv1; k=ed25519; p=<public key>. It exists so you can publish under com.example/your-server instead of a GitHub-derived namespace.

Adoption follows specification almost perfectly. Of the same 79 hosts, 19 (24%) serve a valid mcp-registry-auth file against 7 (8.9%) publishing a parseable card. The specified file is nearly three times as common as the unspecified one, on identical infrastructure, measured in the same minute.

Two more anchors worth holding while you read vendor blog posts on this. IANA's Well-Known URIs registry lists 213 suffixes and registers agent-card.json (the A2A Agent Card, set up in our agent-card.json guide), but registers neither mcp nor webmcp. And according to Cloudflare Radar, which measured the 200,000 most visited domains for its April 2026 agent-readiness study, "MCP Server Cards and API Catalogs (RFC 9727) together appear on fewer than 15 sites in the entire dataset." For the REST side, our API catalog guide has per-stack steps and a re-probe of every site AIScan credits for P1.

Path one: publish server.json to the official MCP Registry

Best for anyone who wants clients and marketplaces to find the server without knowing your domain. The registry is in preview, and according to its own documentation, breaking changes or data resets may occur before general availability.

  1. Install the CLI: brew install mcp-publisher, or download the release binary for your platform.
  2. Run mcp-publisher init in the server's project directory to generate a server.json template.
  3. Set the three required fields. Verified on 10 September 2026 against the published schema, server.json requires exactly name, description and version. The name is reverse-DNS with exactly one forward slash, as in com.example/analytics. The version should follow semantic versioning.
  4. For a remote server, add a remotes entry. A streamable-http remote requires type and url, and nothing else:
{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "com.example/analytics",
  "title": "Example Analytics",
  "description": "Real-time reporting for the Example platform.",
  "version": "2.0.0",
  "remotes": [
    { "type": "streamable-http", "url": "https://example.com/mcp" }
  ]
}
  1. Authenticate. GitHub login is the quickest and gives you an io.github.<user>/* namespace. For a company domain, use DNS login after adding a TXT record of the form v=MCPv1; k=ed25519; p=<public key>, or HTTP login and serve the same string at /.well-known/mcp-registry-auth:
mcp-publisher login github
mcp-publisher login dns  --domain "example.com" --private-key "$KEY"
mcp-publisher login http --domain "example.com"
  1. Run mcp-publisher publish, then confirm the entry is live by reading it back from the registry REST API.

Publish an sse remote only if you need to support existing clients: the documentation records that transport as deprecated.

Path two: serve a card at your own well-known path

Best for anyone whose readiness score reports a 404 today, and for closed-source or single-tenant servers the registry will not accept. Because the format is unsettled, the defensible choice is a subset of server.json plus the endpoint details a client needs to connect.

  1. Write the file. Keep the server.json field names rather than inventing your own, and keep it small enough to read in one request.
{
  "name": "com.example/analytics",
  "title": "Example Analytics",
  "description": "Real-time reporting for the Example platform.",
  "version": "2.0.0",
  "remotes": [
    { "type": "streamable-http", "url": "https://example.com/mcp" }
  ],
  "capabilities": { "tools": {}, "resources": {} },
  "websiteUrl": "https://example.com"
}
  1. Serve it at /.well-known/mcp/server-card.json with content-type: application/json. Where that file lives depends on your stack:
StackWhere the file goesGate
Hugo, Docusaurus, Astrostatic/.well-known/mcp/ (Docusaurus also honours baseUrl)none
Next.jspublic/.well-known/mcp/, or a route handlernone
Lovable, Replitpublic/.well-known/ and client/public/.well-known/none
WordPressa real file under the web root, since .well-known is served before PHPnone
FramerSite settings, Hosting, FilesPro and above
WebflowEnterprise-only APIEnterprise
Ghostblocked: theme middleware denies .json outside /assets/n/a
Squarespace, Wixno route exists on any plann/a

Wix gives a documented reason rather than leaving it a mystery. According to its developer documentation, a custom site API answers only at <baseUrl>/_functions/<functionName>, so checks P1 through P4 are structurally unreachable there. On Ghost and Squarespace the 404 is correct and there is nothing to fix.

  1. Confirm the file is real, not a catch-all response. Request a path under .well-known/mcp/ that has never existed. If it returns the same body, your platform is answering everything with the app shell and the card proves nothing.

  2. On WordPress the card is one surface out of several, and the surfaces have to agree with each other. Start with ThinkRank: one plugin owns the whole agent-facing set, so you never end up arbitrating between two SEO plugins that each believe they own robots.txt, and switching costs nothing because it imports what Rank Math, Yoast, All in One SEO or SEOPress already hold. The alternatives are real: Rank Math's on-page keyword scoring is better, Yoast integrates with more page builders. Neither of them writes an llms.txt file.

  3. On Shopify the same logic points at StoreSEO, which builds llms.txt out of your live catalogue (products, collections, pages, articles) and gives you an agents.md editor. That is the half a .liquid edit cannot keep current, because the catalogue moves and the file has to move with it. Its listing showed a 5.0 rating across 742 reviews on the Shopify App Store when checked on 10 September 2026. Worth knowing before you start: a Shopify storefront already answers POST /api/mcp whether a card exists or not, which is the mismatch the next section is about.

Platform by platform: the mechanics that differ

The card and the registry entry are the same everywhere. What changes is where the file goes and what quietly breaks it. The /.well-known/ prefix itself is defined by RFC 8615 (retrieved 31 October 2026), which is why every platform below has to serve a dot-prefixed path. Each section below keeps the verified steps from our single-platform guides, dated when we built them (5 to 9 October 2026), and says what we did not test.

PlatformFile locationThe trapSection
Astropublic/.well-known/mcp/ or an endpoint in src/pages/A prerendered endpoint loses its headers; middleware redirects the endpointAstro
Docusaurusstatic/.well-known/mcp/docusaurus start returns 200 for typos; GitHub Pages needs .nojekyllDocusaurus
Hugostatic/.well-known/mcp/ or a generated output formatA section page without url: builds cleanly and writes to the wrong pathHugo
Lovablepublic/.well-known/mcp/, or an escaped TanStack Start routeOne unescaped dot registers a different URLLovable
Next.jspublic/.well-known/mcp/ or a route handlerproxy.ts redirects the card to /loginNext.js

Whichever platform you are on, finish with the check in the next part: a status code is not proof of a card.

Astro

Astro serves a file under public/ as it is and builds anything in src/pages/ through its own router, and the card can live in either. Built on 6 October 2026 with Astro 7.3.6 and @astrojs/node 11.1.7; every response below came from a real astro build and a running server.

Option 1, a file in public/. Create public/.well-known/mcp/server-card.json. Astro copies it into the build output untouched, and under @astrojs/node it came back as application/json; charset=utf-8 with Cache-Control: public, max-age=0. You cannot set other headers on it from Astro.

Option 2, an endpoint. Create src/pages/.well-known/mcp/server-card.json.ts. A folder that starts with a dot is fine, and astro build listed the route as /.well-known/mcp/server-card.json:

// src/pages/.well-known/mcp/server-card.json.ts
import type { APIRoute } from "astro";

export const prerender = false;

const card = {
  name: "com.example/analytics",
  description: "Search the example catalog",
  version: "1.0.0",
  remotes: [{ type: "streamable-http", url: "https://example.com/mcp" }],
};

const headers = {
  "Access-Control-Allow-Origin": "*",
  "Cache-Control": "public, max-age=3600",
};

export const GET: APIRoute = () => Response.json(card, { headers });
export const OPTIONS: APIRoute = () => new Response(null, { status: 204, headers });

The build guide used a serverInfo and transport shape; this hub recommends the server.json field names from the sections above, and the endpoint mechanics are identical either way. Replace the example values with your own.

Do not drop prerender = false. Without it, a static build runs the endpoint once and writes a plain file, and the headers object is thrown away. Served with astro preview, the output had Content-Type: application/json but Cache-Control: no-cache and no Access-Control-Allow-Origin, so the card looks fine in a terminal and fails for a browser-based client. With prerender = false and an adapter (output: "server" with @astrojs/node), the endpoint returned access-control-allow-origin: * and cache-control: public, max-age=3600, and the OPTIONS export answered a preflight with 204. Per the Astro endpoints guide, you opt out of prerendering per endpoint in static mode. If you stay fully static, accept the plain file or set headers in your host's configuration.

Keep middleware off the card. Astro middleware runs for endpoints, so a session check in src/middleware.ts catches the card too. A six-line version that redirects visitors without a session cookie made the endpoint answer 302 Found with location: /login, and a scanner that follows the redirect lands on an HTML page. One early return fixes it:

if (context.url.pathname.startsWith("/.well-known/")) return next();

After a rebuild the card returned 200 with a JSON content type while / still redirected. With the broken middleware still in place, the public/ file returned 200, because the Node adapter serves client-build files before middleware runs. Option 1 is immune to this redirect and Option 2 is not. The middleware guide describes the context object.

Trailing slash. astro preview on a static build answered both forms with 200, while the Node server returned 404 for /.well-known/mcp/server-card.json/. Publish and link the version without the slash.

If the card still fails: a 302 to a login page is the middleware, a 200 with no CORS header is a prerendered endpoint, a 404 on the file means the folder is not spelled .well-known under public/ or src/pages/, and a card that works locally but not in production usually means a CDN or reverse proxy in front is dropping dot paths. The Markdown for AI agents on Astro guide covers the next surface.

Docusaurus

Docusaurus copies anything in static/ to build/ unchanged, so the card needs one file and no plugin. Built on 9 October 2026 with Docusaurus 3.10.2, run under both the dev server and the production server, and the dev server hides the one mistake that matters.

Create static/.well-known/mcp/server-card.json with your card and run npm run build. On 3.10.2 the output contained build/.well-known/mcp/server-card.json with no configuration change; a dot-prefixed folder is copied like any other, as the static assets docs describe for the static/ folder. Do not put the card in src/pages/, which is for React and Markdown pages that become HTML routes.

A different folder. The docs show staticDirectories: ['public', 'static'] in the config. A card placed in public/.well-known/mcp/ landed at build/.well-known/mcp/server-card.json. Setting the option replaces the default list, so keep 'static' in it or your existing images and robots.txt disappear from the build.

GitHub Pages. The Docusaurus docs warn that GitHub Pages runs published files through Jekyll, which discards files that begin with _, and recommend an empty static/.nojekyll. We did not deploy to GitHub Pages and cannot say what Jekyll does to a .well-known folder on your repository, so request the live URL after any Pages deploy. The general case is covered in why /.well-known/ files return 404 or 403 on GitHub Pages, nginx and Apache.

Test with serve, not start. The two local servers disagree about missing files:

Requestdocusaurus start (port 3112)docusaurus serve (port 3111)
/.well-known/mcp/server-card.json200, application/json200, application/json; charset=utf-8
/.well-known/mcp/server-carb.json (typo)200404
/.well-known/mcp/server-card200, text/html404

The dev server answers an unknown path with the site's HTML shell and a 200, so a misspelled folder looks fine until you read the body. Build first, then check with npm run serve. A static build sets no headers itself, so the content-type visitors see comes from your host; we did not test any host.

If the card still fails: a 404 means the folder is static/well-known/ without the leading dot or the build ran before you added the file (list build/.well-known/mcp/); a 200 with an HTML body means your host rewrites unknown paths to index.html; and a card that vanishes after you set staticDirectories means you dropped 'static' from the array. The wider checklist is in the Docusaurus setup guide.

Hugo

Hugo has two ways to put the card at /.well-known/mcp/server-card.json, and one of them can build cleanly while writing the file to the wrong place. Built on 8 October 2026 with Hugo v0.167.0, both routes, so every path below comes from a real build.

Option 1, a file in static/. Hugo copies everything in static/ to public/ on build, and the directory structure docs list robots.txt and ownership-verification files as typical contents. Create static/.well-known/mcp/server-card.json and run hugo; public/.well-known/mcp/server-card.json appeared with no flags and no config.

Option 2, generate the card from hugo.toml. Use this when the endpoint or version lives in your config and you do not want a second copy to drift. Hugo's output formats let one page render as JSON at a path you choose.

[params.mcp]
  name = "com.example/analytics"
  version = "1.0.0"
  description = "Search the example catalog"
  endpoint = "https://example.com/mcp"

[outputFormats.ServerCard]
  mediaType = "application/json"
  baseName = "server-card"
  isPlainText = true
  notAlternative = true

Then content/mcp/_index.md:

---
title: "MCP server card"
url: /.well-known/mcp/
outputs: ["ServerCard"]
---

And layouts/mcp/list.servercard.json:

{{- $m := site.Params.mcp -}}
{{- dict "name" $m.name "description" $m.description "version" $m.version "remotes" (slice (dict "type" "streamable-http" "url" $m.endpoint)) | jsonify (dict "indent" "  ") -}}

application/json is a built-in media type, so no [mediaTypes] block was needed. jsonify sorts keys alphabetically, which a parser does not care about, and escapes & and < as & and <, which a JSON parser reads back as the original characters. With --minify the file shrank to one line and stayed valid.

The mistake that builds cleanly. Leave out the url: line and Hugo builds without a warning but writes the card to public/mcp/server-card.json. The path the scanner checks returns 404 and nothing in the build output says so. List public/.well-known/mcp/ after every build.

If you use both. With a different file in static/ at the same path and the generated version in place, the generated card won and the static one was not used. Delete one so nobody edits the wrong file. A layout named single.servercard.json for a section page is not matched either: Hugo prints found no layout file for "servercard" for kind "section" and writes nothing, so a section page needs list.servercard.json.

Hugo sets no headers, so the content-type comes from your host, which we did not test. On hugo server the card answered 200 with application/json and a misspelled server-carb.json returned 404. The same output-format idea powers llms.txt on Hugo, and the Hugo setup guide covers the wider checklist.

Lovable

Lovable builds two kinds of project, and the card lives in a different place in each. Get the template wrong and you edit a file that never ships or create a route that answers 404. Built on 7 October 2026: a TanStack Start app and a React + Vite app, with every response captured from a running server.

Which template. According to Lovable's SEO and AI search docs, apps created from 13 May 2026 use TanStack Start with server-side rendering, and older apps use React + Vite. A routeTree.gen.ts under src/ means TanStack Start; a root index.html with src/main.tsx means React + Vite. Lovable also documents an upgrade path to TanStack Start.

Option 1, a file in public/. Works on both templates. Ask the Lovable agent in the project chat to create public/.well-known/mcp/server-card.json with your card. On React + Vite, vite build copied it untouched to dist/.well-known/mcp/server-card.json and vite preview answered 200 and application/json. On TanStack Start the dev server served it as application/json with Cache-Control: no-cache. A plain file cannot set other headers.

Option 2, a TanStack Start server route. Use this when browser-based clients need CORS headers. The folder trick from other frameworks does not work here, because TanStack Router reads a . in a file name as a path separator. Per its file naming conventions, square brackets escape special characters, so script[.]js.tsx becomes /script.js. Create src/routes/[.]well-known.mcp.server-card[.]json.ts:

import { createFileRoute } from '@tanstack/react-router'

const card = {
  name: 'com.example/analytics',
  description: 'Search the example catalog',
  version: '1.0.0',
  remotes: [{ type: 'streamable-http', url: 'https://example.com/mcp' }],
}

export const Route = createFileRoute('/.well-known/mcp/server-card.json')({
  server: {
    handlers: {
      GET: () =>
        Response.json(card, {
          headers: {
            'Access-Control-Allow-Origin': '*',
            'Cache-Control': 'public, max-age=3600',
          },
        }),
    },
  },
})

Tested on @tanstack/react-start 1.168.60, @tanstack/react-router 1.170.41 and Vite 8.3.3: the route tree listed /.well-known/mcp/server-card.json, and the endpoint returned 200, application/json, access-control-allow-origin: * and cache-control: public, max-age=3600. A trailing slash also returned 200.

The one-character mistake. Leave the second dot unescaped ([.]well-known.mcp.server-card.json.ts) and the route tree registers /.well-known/mcp/server-card/json. That path returns 200, while the path the scanner checks, /.well-known/mcp/server-card.json, returns 404. Nothing errors at build time. Open routeTree.gen.ts and read the path: line.

Publish, then test the live domain. Lovable's docs say branded workspace URLs are never indexable and recommend a custom domain; hosting is described on the hosting page. A preview is not the live site, so publish and test the domain agents will use. A React + Vite app answers unknown paths with the app shell: in vite preview, a misspelled server-card.jsn returned 200 with text/html. We did not test Lovable's own host for this, so check with curl. A project with no feed has the same template split: see the RSS guide for Lovable and the Lovable platform page.

Next.js

Next.js serves an MCP server card with no plugin, but two things catch people out: where the file lives, and the proxy file that quietly redirects the request to your login page. Built on 5 October 2026 with Next.js 16.3.8 and the App Router; every response below was captured from a real next build and next start. Check P2 is the one AIScan grades.

Option 1, a static file. Create public/.well-known/mcp/server-card.json. Next.js served it with Content-Type: application/json; charset=UTF-8 and Cache-Control: public, max-age=0. You cannot set CORS headers on it without a headers() rule in next.config.ts. The public folder docs describe how files there are served (retrieved 1 November 2026).

Option 2, a route handler. Create the folder app/.well-known/mcp/server-card.json/ and put a route.ts in it. A folder name that starts with a dot and ends in .json is legal, and next build listed it as ○ /.well-known/mcp/server-card.json, a static route. See the route handler docs (retrieved 1 November 2026).

// app/.well-known/mcp/server-card.json/route.ts
export const dynamic = "force-static";

const card = {
  serverInfo: { name: "example-mcp", version: "1.0.0" },
  description: "Search the example catalog",
  transport: { type: "streamable-http", url: "https://example.com/mcp" },
  tools: [{ name: "search", description: "Search the catalog" }],
};

const headers = {
  "Access-Control-Allow-Origin": "*",
  "Cache-Control": "public, max-age=3600",
};

export function GET() {
  return Response.json(card, { headers });
}

export function OPTIONS() {
  return new Response(null, { status: 204, headers });
}

Replace the example values with your real server name, endpoint and tools. The field names follow the serverInfo and transport shape that AIScan's own P2 guidance shows, the same shape the Astro section used. They are a convention, not a ratified schema; the server.json field names earlier in this guide are the registry's.

The OPTIONS export matters for browser-based clients. Without it, a preflight request to the route returned 405 Method Not Allowed with Allow: GET, HEAD. Use Response.json() rather than new Response(JSON.stringify(card)), because only the first sets Content-Type: application/json for you.

The trap: proxy.ts redirects the card to /login. Next.js 16 renamed the middleware.ts file to proxy.ts (see the proxy docs, retrieved 1 November 2026). If yours redirects visitors who have no session cookie, it also redirects the card, because a typical matcher catches every path except _next/static and a few assets. A six-line test file shows it:

// proxy.ts (the broken version)
import { NextResponse, type NextRequest } from "next/server";

export function proxy(req: NextRequest) {
  if (!req.cookies.get("session")) return NextResponse.redirect(new URL("/login", req.url));
  return NextResponse.next();
}

export const config = { matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"] };

With that file in place, both the route handler and the static file answered 307 Temporary Redirect with location: /login. A scanner that follows the redirect lands on an HTML page, which is not a card. Add .well-known to the negative lookahead:

export const config = {
  matcher: ["/((?!_next/static|_next/image|favicon.ico|.well-known).*)"],
};

After a rebuild the card returned 200 with content-type: application/json, while / still redirected to /login. The same exclusion covers /.well-known/mcp-registry-auth, the one-line domain-verification file from the registry path earlier in this guide.

Two more behaviours measured. A request to /.well-known/mcp/server-card.json/ with a trailing slash returned 308 Permanent Redirect back to the path without it, so publish and link the version without the slash. And /.well-known/mcp/nope.json returned a real 404, so a missing card does not pass as a soft 200 on Next.js (the soft 404 guide covers hosts where it does).

If the card still fails in production. A well-known folder without the dot serves /well-known/..., so check the spelling. Some CDNs and reverse proxies drop paths that begin with a dot; if next start serves the card and production does not, the proxy in front of Next.js is the cause. For the Next.js mechanics of the other checks, the Next.js platform page collects every guide, including Markdown for AI agents on Next.js.

Confirm the card is actually being served

One command answers this. Run npx aiscan-cli yoursite.com, or drop the URL into the box at aiscan.site; there is no signup and no charge. The capabilities dimension reads back every discovery surface in one pass: P1 API catalog, P2 MCP server card, P3 Agent Skills index, P4 OAuth discovery and E2 the service description. Pass on P2 means the card was found and read. The check IDs are documented on the capabilities checks page.

If you would rather check by hand, three requests settle it:

curl -sS -o /dev/null -w '%{http_code} %{content_type} %{size_download}\n' \
  https://yoursite.com/.well-known/mcp/server-card.json
curl -sS -o /dev/null -w '%{http_code} %{size_download}\n' \
  https://yoursite.com/.well-known/mcp/zz-does-not-exist.json
curl -sS https://yoursite.com/.well-known/mcp/server-card.json | jq -e '.name, .description, .version'
What you seeWhat it meansFirst step
200, application/json, control path 404Card is live and realNothing
200 on both, same byte countCatch-all route, not a cardFix routing before anything else
200 but text/htmlYour host is serving the app shellSet the content type explicitly
jq exits non-zeroMissing a required fieldAdd name, description, version
404No cardFollow path two above

Re-check after any deploy that changes routing. A card is a static file, so the failure mode is silent: nothing breaks, the file just stops being served.

If the URL returns 404 or 403 even though the file is in your repository, your host may be dropping dot-folders. See why /.well-known/ files return 404 or 403 on GitHub Pages, nginx and Apache.

Where AIScan fits, and where it doesn't

Two limits in our own check, both measured rather than guessed, both open on our backlog. For the population-wide picture across every scanned host, see MCP Server Cards on 808 Sites, which finds that 52 of the 65 partial results also fail the soft-404 check.

P2 decides on a status code. Grouping the evidence strings across 502 corpus hosts on 10 September 2026 returns a short vocabulary: HTTP 404 on 375 informational results, and the literal string HTTP 200 on 43 partials and 19 passes. The same evidence, two verdicts, and no statement of what the file contained. A live example from this run: one host serving a card with name, description, version, remotes and capabilities was graded partial, evidence "HTTP 200". The fix is one line, to parse the body and say what was found, and it belongs in our codebase rather than in your configuration.

P2 probes one path and misses the live endpoint. Across 30 Shopify storefronts, zero published /.well-known/mcp/server-card.json while 19 answered POST /api/mcp with a tool list. Those stores have a working MCP server and score as though they have nothing. The same shape affects P3, which probes /.well-known/agent-skills/index.json and not the legacy /.well-known/skills/index.json; across 52 documentation services the two paths reach 10 and 5 sites, the union is 11, and only 4 publish both.

So a passing P2 is evidence the file exists. It is not yet evidence the file is any good, and a failing P2 is not evidence you have no MCP server. Read it alongside what your platform already exposes.

Publish the card before the specification lands

The nameplate convention is unfinished, and the seven live files prove nobody is waiting for it to be finished. Write server.json because it is specified today, publish it to the registry if your server is public, and serve a subset at the well-known path so the scanners and marketplaces that already probe it find something to read.

Then check the whole discovery layer rather than one file: run npx aiscan-cli yoursite.com and read P1, P2, P3, P4 and E2 together, since a card pointing at an endpoint with no OAuth metadata leaves an agent one step short. Our platform walkthroughs, including the WebMCP measurement, the agentic commerce protocol study and the CI gate that catches a phantom file, are collected at aiscan.site/guides.

Once the card is live, the next question is who calls the server. We logged 67 days of calls to our own MCP server, including what its 401 responses mean.

If your server needs OAuth, the metadata file has its own path rule for endpoints like /mcp: fix the protected-resource metadata path.

Once agents can find your server, you will want to see what they do there. Log the requests to your MCP server shows a one-line-per-request log that records the method, tool and outcome.

Once the server is published, you can audit it from inside an assistant: scan a site from Claude with the AIScan MCP connector.

Frequently asked questions

My AIScan report says P2 is HTTP 404, but my MCP server works. Is the scan wrong?

Both are right. P2 probes one static path, /.well-known/mcp/server-card.json, and reports what it finds there. A working MCP endpoint at a different URL is invisible to that probe. Across 30 Shopify storefronts we measured, zero published a card while 19 answered POST /api/mcp with a tool list. If your server is live, the 404 means you have no card, not that you have no server. Publish the card so clients that have never met you can find the endpoint.

I published a card and AIScan reports P2 as partial rather than pass. What is missing?

Probably nothing in your file. Grouping P2's evidence strings across 502 corpus hosts on 10 September 2026 returns the literal string HTTP 200 for 43 partials and 19 passes, so the check awards two different verdicts on identical recorded evidence and never says what the body contained. This is an open bug on our side, not a configuration problem on yours. Confirm your card parses as JSON and carries name, description and version, then treat a partial as a pass.

My server card returns HTTP 200 but agents still cannot read it. What is wrong?

Check two things. First, the content type: if your host returns text/html, most clients will not parse it, so set application/json explicitly. Second, request a path under .well-known/mcp/ that has never existed. If it returns the same body and byte count as your card, your platform is answering every unknown path with the app shell and your card is not really being served. Two of the 79 hosts we probed were in exactly that state, reproduced on a second pass.

Which schema should I validate my server card against?

None of the card schemas resolve today. Four of the seven live cards we fetched declare a $schema, between them naming three different URLs, and all three return HTTP 404. The one MCP schema URL that does resolve is server.json's, hosted at static.modelcontextprotocol.io. Validate against that and use its field names, because the Server Card Working Group charter says the card format should stay as close as possible to a subset of server.json.

Do I need both a registry entry and a well-known card?

They answer different questions. The registry entry gets you into the REST API that MCP marketplaces and aggregators poll, which is how a client that has never heard of your domain finds you at all. The well-known card is what a crawler or a readiness scanner reads when it already has your domain. If your server is public, do both. If the registry will not accept it, the card is your only discovery surface.

mcp-publisher publish fails with a namespace error. How do I fix it?

The name field in server.json has to match the namespace your login authorised. GitHub login only authorises io.github.<your-username>/*, so a name like com.example/analytics will be rejected. Either change the name to match, or authenticate against the domain instead using DNS or HTTP login. For npm packages there is a second trap: the mcpName property in package.json must equal the name in server.json exactly.

Can I publish a private or internal MCP server to the official registry?

No. According to the registry documentation, it does not support servers that are only reachable by a narrow set of users, such as a host on a private network or a package on a private artifact registry. A remote server must be publicly accessible at its stated URL. For internal servers, run your own registry implementing the published OpenAPI interface, or serve a well-known card on the internal host and skip the registry entirely.

Where does the card go on WordPress, Shopify, Squarespace or Wix?

On WordPress, a real file under the web root, because .well-known is served before PHP runs. On Shopify you cannot add an arbitrary .well-known file, though the storefront already answers POST /api/mcp. On Squarespace and Wix there is no route for it on any plan. Wix documents the reason: a custom site API answers only at <baseUrl>/_functions/<functionName>, so checks P1 through P4 cannot pass there and the 404 is correct.

Where does the MCP server card go in an Astro project?

Either public/.well-known/mcp/server-card.json for a plain file, or src/pages/.well-known/mcp/server-card.json.ts for an endpoint. Both are served at /.well-known/mcp/server-card.json on Astro 7.3.6.

Why does my Astro card have no CORS header or redirect to /login?

A static build runs a prerendered endpoint once and writes a plain file, which drops the headers; add export const prerender = false and build with an adapter such as @astrojs/node. A redirect to /login is src/middleware.ts catching the endpoint; return next() early when the path starts with /.well-known/. A file in public/ is not affected by the redirect under the Node adapter.

Where does the MCP server card go in a Docusaurus project?

Put it at static/.well-known/mcp/server-card.json. Docusaurus copies static/ into build/ unchanged, so no plugin or config change is needed. If you set staticDirectories, keep 'static' in the list, because setting the option replaces the default.

Why does my Docusaurus card return 200 locally but fail the scan?

The docusaurus start dev server answers unknown paths with the HTML shell and a 200, so a typo in the folder name still looks like success. Build, then test with docusaurus serve, which returns a real 404, and request the live URL after a deploy. On GitHub Pages add an empty static/.nojekyll file as the Docusaurus docs recommend.

Where does the MCP server card go in a Hugo project?

Put it at static/.well-known/mcp/server-card.json, or generate it with a ServerCard output format and a section page whose url is /.well-known/mcp/. Both build to public/.well-known/mcp/server-card.json on Hugo v0.167.0.

Why does my Hugo build succeed but the card path return 404?

The section page probably has no url: /.well-known/mcp/ line, so Hugo wrote the card to public/mcp/server-card.json without a warning. Add the line and list public/.well-known/mcp/ after the build. If Hugo warns that it found no layout file for servercard, rename the layout to list.servercard.json.

Where does the MCP server card go in a Lovable project?

Put it at public/.well-known/mcp/server-card.json on either template, or on TanStack Start add a server route file named [.]well-known.mcp.server-card[.]json.ts under src/routes. A routeTree.gen.ts under src/ means TanStack Start.

Why does my Lovable card return 404 after I added a TanStack route file?

The file name probably has an unescaped dot. server-card.json.ts registers /server-card/json, not /server-card.json. Write server-card[.]json.ts and read the path line in routeTree.gen.ts. Also publish the project and test the custom domain, since a preview is not the live site.

Where does the MCP server card go in a Next.js project?

Either public/.well-known/mcp/server-card.json for a static file, or app/.well-known/mcp/server-card.json/route.ts for a route handler. Both are served at /.well-known/mcp/server-card.json on Next.js 16.3.8.

Why does my server card redirect to /login?

A proxy.ts (formerly middleware.ts) matcher that covers every path also covers .well-known. Add .well-known to the negative lookahead in config.matcher, rebuild and curl the card again.

Why does a browser-based client get a 405 from my card route?

A route handler that exports only GET answers a CORS preflight with 405 and Allow: GET, HEAD. Export an OPTIONS function that returns 204 with the same CORS headers.

Does the trailing slash matter on the card URL?

Yes. A request with a trailing slash got a 308 redirect to the path without it. Publish and link the version without the slash.

M Asif Rahman

About the author

Entrepreneur, curious about AI

I have been building companies for a long time, and lately most of my curiosity goes to AI. AIScan is a small personal project I built on a flight from Dubai to Narita. I use it to understand how ready the web is for AI agents, and I share what the scans teach me.

Related guides

Browse every guide by check and platform