Main / Case studies / MCP Server for AI-Agent Discovery

MCP Server for AI-Agent Discovery: Making a Blog Machine-Readable for AI Assistants

A read-only Model Context Protocol (MCP) server that lets AI assistants like Claude and ChatGPT search, query, and cite the content of a live blog. Implemented as a 312-line Cloudflare Worker on the free tier, with zero secrets and full compliance with the emerging agent-readable web standards. The implementation raised Cloudflare's agent-readiness score for the testbed site from 36 to 79 out of 100, reaching Level 5 of 5, "Agent-Native".

Source: AI-generated image

Challenge

Search behavior is changing. A growing share of users no longer visits websites directly. Instead, they ask an AI assistant a question, and the assistant retrieves an answer on their behalf. For content owners, the question becomes, when an AI agent visits your site, does it find, understand, and quote your content correctly, or does it guess?

Most generative engine optimization (GEO) advice stops at "write clear headings and FAQs". The technical layer beneath, whether AI agents can programmatically discover, query, and cite specific content, is rarely addressed. This project set out to answer that question with a measurable, reproducible implementation and to test it against Cloudflare's public agent-readiness benchmark.

About the Project

The testbed was a live production blog running Ghost 6, self-hosted, with 30 published pages in three languages. A real site with real readers, not a sandbox environment. This let us measure real-world performance rather than optimized demo results.

Region
Poland
Time
~6 hours over 2 evenings

The Technologies We Used

The solution combines several emerging standards for the agent-readable web:

What Is GEO (Generative Engine Optimization)?

Generative Engine Optimization (GEO) is the discipline of making web content correctly discoverable, understandable, and citable by AI assistants such as Claude, ChatGPT, Perplexity, and Google's AI Overviews. Unlike traditional SEO, which optimizes for human search-result behavior (click-through, dwell time, and keyword relevance), GEO optimizes for the machine reader that increasingly stands between a website and its audience.

GEO breaks down into three layers:

Cloudflare's public benchmark at isitagentready.com tests all three layers and produces a 0–100 score across five categories, from robots.txt and content accessibility up to MCP and OAuth discovery.

What Is MCP (Model Context Protocol)?

Model Context Protocol (MCP), originally introduced by Anthropic in late 2024, is the standard that lets AI clients such as Claude, ChatGPT, and other LLM-based agents call external tools in a uniform way. An MCP server exposes a set of typed functions ("tools") that a client can discover and invoke, returning structured results back to the model.

The usual concern from engineering teams is security: an API into your CMS sounds like a potential vulnerability. The architecture we implemented answers those concerns by design: the server exposes only endpoints that are already public, holds no keys, has no database, and has no session state. There is nothing to steal because nothing sensitive lives inside the server.

Our Solution

We approached the implementation as three sequential layers: the MCP server itself, the discovery layer that makes the server findable, and the page-level integration for browser-based agents.

  1. The MCP server

    We implemented the entire server as a single Cloudflare Worker in 312 lines of JavaScript. Four tools are exposed: about_author, list_posts, search_archive, and get_post.

    The server reads llms.txt and the Markdown versions of blog posts exactly like any anonymous visitor. It caches responses at the edge for one hour, using Cloudflare's built-in cache API:

    async function cachedText(url, ttl = 3600) {
      const cache = caches.default;
      const key = new Request(url, { cf: { cacheTtl: ttl } });
      let res = await cache.match(key);
      if (!res) {
        res = await fetch(url, { headers: { 'User-Agent': 'yurisvirid-mcp-worker' } });
        if (res.ok) await cache.put(key, res.clone());
      }
      return await res.text();
    }
    

    Search is implemented as a plain scorer over the full-text llms-full.txt index. A hit in the title weighs five points, a hit in the body weighs one point. Top matches return with a snippet and the source URL:

    for (const t of terms) {
      if (title.includes(t)) score += 5;
      let i = -1, c = 0;
      while ((i = body.indexOf(t, i + 1)) > -1 && c < 20) { score += 1; c++; }
    }
    

    No embeddings, no vector database. For a 30-page archive, this approach is sufficient: warm responses take 0.4 seconds, cold responses stay under one second. If the worker fails, the worst case is that an agent receives a stale cached copy of already-public text. That is the entire risk surface.

  2. The discovery layer

    A working MCP endpoint is useless if agents cannot find it. Making the server discoverable turned out to require more standards work than the server itself.

    The site now serves a server card at /.well-known/mcp/server-card.json, an api-catalog linkset pointing to it, and an Agent Skills index with a sha256-checksummed SKILL.md file. A Cloudflare Transform Rule adds a Link header to every response of the main site:

    link: </.well-known/api-catalog>; rel="api-catalog",
          <https://mcp.yurisvirid.com/mcp>; rel="service"
    

    The most recent addition is a DNS-AID record that lets agents discover the endpoint from DNS alone:

    _mcp._agents.yurisvirid.com. 300 IN SVCB 1 mcp.yurisvirid.com. alpn="h2" port="443"
    

    DNS-based discovery only counts as trusted when DNSSEC is enabled, which required publishing a DS record at the registry. This was the single step of the whole implementation that could not be resolved with code alone: the registrar had no self-service for it and required a support ticket.

  3. Page-level tools with WebMCP

    WebMCP is the newest layer of the stack: JavaScript running on the page registers tools that browser-based agents can call directly, without going through a server. We proxied the same four tools to the same worker, keeping the logic in one place:

    if (navigator.modelContext?.provideContext) {
      navigator.modelContext.provideContext({
        tools: [/* the same four tools */]
      });
    }
    

    This ensures that agents inspecting the site through a browser context also see the same functional interface as agents connecting to the MCP server directly.

Project Results

The Cloudflare agent-readiness score moved from 36 out of 100 (before implementation) to 79 out of 100 (after implementation). This corresponds to Level 5 of 5, labeled "Agent-Native". Three sub-scores reached 100%: Discoverability, Content, and Bot Access Control.

The remaining red items on the test all relate to OAuth metadata, and they remain red by design. The archive is public and read-only. There is nobody to authenticate. For this architectural choice, 79 out of 100 is the ceiling and it is the correct ceiling.

The implementation is publicly verifiable. Any reader can add https://mcp.yurisvirid.com/mcp to Claude as a custom connector (Settings → Connectors → Add custom connector) and ask the assistant to query the blog. Responses include source URLs, which the assistant can then cite. This transparency was a deliberate choice: the whole architecture is designed so that its correctness can be tested by anyone in minutes.

Key Metrics

Conclusion

The value of this project is not the MCP server itself, but the demonstration that a comprehensive agent-readable implementation can be built with modest engineering effort on standard infrastructure. Any organization that maintains documentation, a knowledge base, a product catalog, or a content library can apply the same pattern: expose already-public content through MCP, add the discovery layer, keep secrets out by design.

For businesses evaluating GEO investment, this case study establishes a baseline: measurable improvement in agent-readiness is achievable in single-digit engineering hours if the underlying content is already well-structured. For businesses with more complex content or authenticated resources, the same architectural principles apply, extended with proper OAuth flows and access controls appropriate to the sensitivity of the data.

The full architecture is documented, the demo is public, and the entire code fits in a single file. This is the level of transparency and reproducibility that we recommend as a starting point for any organization entering the agent-readable web.

Our Expert

Yuri Svirid

‘The surprise in this project wasn't the MCP server. Writing 312 lines of JavaScript to expose four tools is trivial engineering. The surprise was the discovery layer: server cards, api-catalog links, Agent Skills indices, DNSSEC-signed SVCB records. That was where most of the standards-reading time went, and that's where the actual competitive advantage lives right now. Anyone can serve content. Making that content programmatically findable by AI agents is the discipline that separates sites that get cited from sites that get ignored.’

Yuri Svirid, PhD, CEO at Silk Data Yuri Svirid on LinkedIn

Frequently Asked Questions

What is the difference between GEO and traditional SEO?

Traditional SEO optimizes websites for human search-result behavior, focusing on click-through rates, dwell time, and keyword relevance. GEO (Generative Engine Optimization) optimizes for AI assistants that read websites on users' behalf. GEO adds three technical layers: content accessibility for machines (Markdown alternatives, llms.txt), programmatic discoverability (MCP servers, well-known URIs), and programmatic queryability (exposed tools, not just documents).

Is exposing content via MCP a security risk?

It depends entirely on the architecture. An MCP server that exposes only endpoints already public on your website has essentially no additional attack surface. The server in this case study holds no keys, no database, and no session state, and it reads only content that any anonymous visitor could access directly. For MCP integrations that need authenticated write access or private data, additional controls (OAuth, RBAC, audit logging) are required.

What is DNS-AID and why does DNSSEC matter?

DNS-AID (Agent Interface Discovery) is a proposed convention that lets AI agents discover an organization's MCP endpoints from DNS records alone, using SVCB records under a well-known _mcp._agents prefix. DNSSEC (DNS Security Extensions) cryptographically signs those records, preventing spoofing. Without DNSSEC, the DNS discovery layer is not considered trusted and does not score in the Cloudflare agent-readiness test.

How much does an MCP implementation cost?

The implementation in this case study runs at zero recurring infrastructure cost on Cloudflare's free tier. Engineering time was approximately 6 hours for a single developer. For a fully-featured MCP implementation with authenticated write access, vector search, and custom OAuth flows, engineering time typically runs 3–4 weeks. The right architecture depends on what content your organization exposes and how sensitive that exposure is.

Which industries benefit most from GEO and MCP investment?

Publishing, marketing, retail e-commerce, and any business with a substantial content library or product catalog see the clearest early returns. Regulated sectors (finance, healthcare, education) benefit from the same technical architecture but with additional access controls and audit trails layered on top. The value scales with the volume and structure of the content you want AI agents to reference correctly.

This case study documents an internal Silk Data R&D project completed in July 2026 on the founder's personal travel blog, used as a real-world testbed for emerging agent-readable web standards. The implementation is live, publicly verifiable, and demonstrates architectural patterns that Silk Data applies in client engagements requiring AI-agent integration.