Verified 10/10 Agent Interaction Score on swap-design.comSEP-1649 MCP Server Card + WebMCP + HTTP Markdown Negotiation
Make Your Website 100% AI-Agent Ready: Complete WebMCP (SEP-1649), llms.txt, Markdown Negotiation & Technical GEO Implementation Guide (2026)
I'm Swapnil Patil, founder and senior WordPress & PHP architect at Swap Design (https://swap-design.com/). Our own production site passes 10/10 on the 2026 AI Agent Readiness & Technical GEO Audit—serving a live SEP-1649 MCP Server Card at /.well-known/mcp/server-card.json, in-browser navigator.modelContext WebMCP tools, Accept: text/markdown content negotiation, HTTP Link discovery headers, and Content-Signal rules. Below is the exact code we run in production, or you can hire me to implement the entire stack on your website in 48 hours.
Turnaround & Direct Support48 Hours Fixed USDReply from Swapnil in 1–2 hours
Audit Check #1 & #2 • Model Context Protocol
How to publish an MCP Server Card (SEP-1649) at /.well-known/mcp/server-card.json
External AI agents (ChatGPT Operator, Claude Computer Use, Perplexity Assistant, and autonomous procurement crawlers) look for a machine-readable Model Context Protocol (MCP) Server Card defined by SEP-1649 at /.well-known/mcp/server-card.json (and fallback aliases /.well-known/mcp.json and /.well-known/mcp-server-card.json). Instead of scraping brittle DOM elements to guess what your business sells or how to book a call, the agent reads your Server Card to discover your transport endpoint, resources (/llms.txt, /index.md), and callable tools.
Below is the exact SEP-1649 JSON structure we serve on https://swap-design.com/.well-known/mcp/server-card.json:
Fix /.well-known/mcp/server-card.json did not return HTTP 200
If your audit fails with /.well-known/mcp/server-card.json did not return HTTP 200, one of three server misconfigurations is happening:
Dotfile Security Block: Apache, LiteSpeed, or Nginx rules that block ^\. paths accidentally block /.well-known/mcp/ while only exempting /.well-known/acme-challenge/.
WordPress Catch-All Rewrite: Your WordPress or PHP front-controller catches the request before static file resolution and returns a soft 404 HTML page with text/html instead of application/json.
Missing CORS & OPTIONS Preflight: Browser-based MCP inspectors send an OPTIONS preflight with MCP-Protocol-Version headers that gets rejected with 403 or 405.
Place this rule at the very top of your .htaccess file (above # BEGIN WordPress) and route it to a dedicated PHP handler:
.htaccess + mcp-server-card.php (HTTP 200 + CORS Fix)
# 1. Add at the very top of .htaccess (BEFORE WordPress / front-controller rules)
RewriteEngine On
RewriteRule ^\.well-known/mcp/server-card\.json$ mcp-server-card.php [NC,L]
RewriteRule ^\.well-known/mcp(-server-card)?\.json$ mcp-server-card.php [NC,L]
# 2. Inside mcp-server-card.php: force HTTP 200, CORS, and clean JSON output
<?php
http_response_code(200);
header_remove('Link');
header('Content-Type: application/json; charset=utf-8', true);
header('Access-Control-Allow-Origin: *', true);
header('Access-Control-Allow-Methods: GET, HEAD, OPTIONS', true);
header('Access-Control-Allow-Headers: Content-Type, Accept, Authorization, MCP-Protocol-Version', true);
header('Cache-Control: public, max-age=3600', true);
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'OPTIONS') {
http_response_code(204);
exit;
}
echo json_encode($serverCard, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
exit;
Audit Check #3 • In-Browser Agent API
How to expose WebMCP tools to in-browser agents (navigator.modelContext)
While /.well-known/mcp/server-card.json serves external server-to-server agents, WebMCP (navigator.modelContext) lets in-browser AI assistants (Chrome built-in AI agents, Edge Copilot, and browser extensions) call structured JavaScript functions directly inside the active tab without guessing CSS selectors or fighting CAPTCHAs.
To pass the How to expose WebMCP tools to in-browser agents (navigator.modelContext) check across both native WebMCP browsers and headless audit runners, register your tools via navigator.modelContext.provideContext() and navigator.modelContext.registerTool() with a safe fallback shim:
Live Browser Verification: Test navigator.modelContext on This Page
Click "Run navigator.modelContext.getTools()" to inspect the live WebMCP tools registered on swap-design.com right now.
Audit Check #4 • Token-Efficient Content Delivery
How to serve Markdown when an AI agent asks for it (Accept: text/markdown)
Modern AI crawlers, RAG pipelines, and coding agents send Accept: text/markdown (or request /index.md / ?format=md) so they can ingest your pricing, case studies, and service scope without burning 18,000+ tokens on HTML tags, SVG icons, and inline scripts.
When our PHP middleware detects Accept: text/markdown (and no higher-priority text/html;q=1.0 browser preference), it returns a clean Markdown document with Content-Type: text/markdown; charset=utf-8, Vary: Accept, and an X-Markdown-Tokens header:
Homepage advertises resources via HTTP Link headers (llms-txt, mcp-server-card)
AI agents often perform a lightweight HEAD or GET request on your homepage before deciding which discovery endpoints to fetch. To pass Homepage advertises resources via HTTP Link headers (llms-txt, mcp-server-card), your server must emit RFC 8288 Link headers advertising rel="llms-txt", rel="mcp-server-card", rel="alternate"; type="text/markdown", and rel="service-desc"—plus matching HTML <link> tags inside <head>.
# Option A: Apache / LiteSpeed .htaccess
<IfModule mod_headers.c>
Header add Link "<https://swap-design.com/llms.txt>; rel=\"llms-txt\"; type=\"text/plain\""
Header add Link "<https://swap-design.com/.well-known/mcp/server-card.json>; rel=\"mcp-server-card\"; type=\"application/json\""
Header add Link "<https://swap-design.com/index.md>; rel=\"alternate\"; type=\"text/markdown\""
Header set Vary "Accept"
</IfModule>
# Option B: PHP header() emission (with second parameter false to preserve multiple Link headers)
header('Link: <https://swap-design.com/llms.txt>; rel="llms-txt"; type="text/plain", <https://swap-design.com/.well-known/mcp/server-card.json>; rel="mcp-server-card"; type="application/json", <https://swap-design.com/index.md>; rel="alternate"; type="text/markdown"', false);
Audit Check #6 • AI Permission Signals
Add Content-Signal directive in robots.txt (search=yes, ai-input=yes, ai-train=no)
Blocking AI bots completely in robots.txt wipes your brand out of ChatGPT Search, Perplexity, and Google AI Overviews. Leaving robots.txt without a Content-Signal policy fails the 2026 agent readiness audit. By adding Content-Signal: search=yes, ai-input=yes, ai-train=no alongside explicit Allow: /scripts/webmcp-tools.js rules, you grant real-time search grounding and RAG citation rights while opting out of foundation model pre-training.
/robots.txt (2026 Content-Signal & AI Crawler Configuration)
Complete Organization & LocalBusiness Schema for Remote Service-Area Businesses
When a founder in Austin, London, or Dubai asks ChatGPT or Perplexity for a "reliable remote WordPress developer with transparent USD pricing", the answer engine cross-checks your visible copy against your @graph JSON-LD entity nodes. Remote studios and agencies often fail entity validation because they either omit ProfessionalService / LocalBusiness fields or forget to link founder, areaServed, contactPoint, and hasOfferCatalog via persistent @id URIs.
Connected JSON-LD @graph for Remote Service-Area Businesses
Official Pricing Tiers • US Timezone Overlap: Morning EST/CST & Late PST
Don't Want to Touch Code? Let Swap Design Implement It For You
You deal directly with me, Swapnil Patil, with daily US Timezone Overlap (Morning EST/CST & Late PST) across the USA, UK, UAE, and India. Every tier below matches our official Agentic SEO & AI-Agent Ready Website Development pricing 100%.
Concise 45–60 word engineering answers for WordPress, Shopify, and custom PHP architectures.
01Why does /.well-known/mcp/server-card.json return a 404 or 403 error on WordPress and Apache servers?
Most Apache, LiteSpeed, and WordPress hosts block hidden dot-directories like /.well-known/ or route unknown paths to index.php with a 404 header. You fix this by placing an explicit RewriteRule at the top of .htaccess before the WordPress front-controller block and returning a 200 application/json header.
02How do I expose WebMCP tools through navigator.modelContext without breaking normal browsers?
Load a lightweight JavaScript file with defer that checks whether navigator.modelContext exists and polyfills a safe registration wrapper when absent. Register structured tools like get_services, get_contact_info, and request_project_quote with JSON Schema inputs so in-browser AI agents can call them directly.
03How does Accept: text/markdown HTTP content negotiation reduce AI agent token usage?
When an AI crawler or LLM agent sends Accept: text/markdown, your server skips rendering heavy HTML, CSS, and navigation wrappers and returns clean Markdown with a Content-Type: text/markdown; charset=utf-8 header and X-Markdown-Tokens count. This cuts token consumption by roughly 75 percent.
04Can WordPress, WooCommerce, and custom PHP websites pass all 10 AI Agent Readiness checks?
Yes. On self-hosted WordPress, WooCommerce, and custom PHP sites, you have full control over .htaccess rules, PHP response headers, /.well-known/ endpoints, robots.txt Content-Signal directives, and JSON-LD schema. We configure all ten checks on staging and deploy in 48 hours without slowing down mobile speed.
05Can Shopify or Webflow stores pass the SEP-1649 MCP Server Card and HTTP Link header checks?
Locked SaaS platforms like Shopify and Webflow restrict custom /.well-known/mcp/server-card.json paths and custom HTTP Link response headers on the root domain. To pass 10/10 on Shopify or Webflow, we place a Cloudflare Worker in front of your domain to serve the headers, Markdown, and MCP Server Card.
06What are Swap Design's official pricing tiers for AI-Agent Ready websites and ongoing care?
A 5-Page Service Website costs $450 – $1,100 USD (with llms.txt, Markdown negotiation, and JSON-LD Schema). A Full Small Business Build costs $1,200 – $2,500 USD (with custom WordPress/PHP architecture, navigator.modelContext WebMCP tools, and SEP-1649 MCP Server Card). Monthly Care & Updates costs $120 – $250 / mo with Morning EST/CST & Late PST overlap.
Ready to Pass 10/10 on Your AI Agent Readiness Audit?
Send me your website URL. I'll inspect your current headers, /.well-known/mcp/server-card.json status, and schema graph for free, and reply personally within 1 to 2 hours.