
Mescio for Agents makes your WordPress site AI-ready by silently serving posts, pages and WooCommerce products as clean, structured Markdown to any AI agent or LLM pipeline that requests it — using the standard HTTP Accept: text/markdown content negotiation header.
Human visitors using a browser are completely unaffected. Mescio for Agents only activates when an AI agent or crawler explicitly asks for Markdown.
Feeding raw HTML to an AI is expensive and noisy. A heading like ## About Us costs ~3 tokens in Markdown vs 12–15 tokens as HTML — before accounting for <div> wrappers, navigation bars and script tags that carry zero semantic value. This blog post you are reading takes 16,180 tokens in HTML and 3,150 tokens in Markdown. That is an 80% reduction.
Markdown has become the lingua franca for AI systems. Mescio for Agents lets your site speak it natively, at zero cost to your human visitors.
When an HTTP client sends a request with Accept: text/markdown, Mescio for Agents intercepts the WordPress request lifecycle before any template is rendered, converts the post content to clean Markdown, and returns it with the correct Content-Type: text/markdown header.
curl https://yoursite.com/your-post/ \
-H "Accept: text/markdown"
/llms.txt endpoint — auto-generated index of all your content in the llmstxt.org standard format, so AI agents can discover what’s on your site/llms-full.txt endpoint — full site content in a single Markdown file, ready for RAG pipelinesllms.txtContent-Language and Link: rel=alternate headers/wp-json/mescio-for-agents/v1/markdown?id=<post_id> or ?url=<permalink>X-Markdown-Tokens tells AI pipelines how large the document is before processingContent-Signal: ai-train=yes, search=yes, ai-input=yesVary: Accept ensures CDNs cache HTML and Markdown versions separatelyContent-Type: text/markdown; charset=utf-8Content-Language: it (or detected language)Vary: AcceptX-Markdown-Tokens: 725Content-Signal: ai-train=yes, search=yes, ai-input=yesLink: <url>; rel="alternate"; hreflang="en" (when translations available)trp_language post metaGET /wp-json/mescio-for-agents/v1/markdown?id=42
GET /wp-json/mescio-for-agents/v1/markdown?url=https://yoursite.com/my-page/
Filter: mescio_enabled_post_types — add or remove post types dynamically.
Filter: mescio_pre_convert_content — modify the HTML before conversion to Markdown.
Filter: mescio_post_convert_content — modify the Markdown after conversion.
This plugin does not collect, store or transmit any personal data. It does not set cookies. It does not make external HTTP requests.