WebMCP Experiment — Technical Report

Protocol-level comparison of AI-agent interaction with a standard vs MCP-enabled ecommerce site · 27 September 2026 · srv1322534 (76.13.246.122)

1. Abstract

We constructed two functionally identical ecommerce sites differing only in agent-facing interface exposure, then executed three identical shopping tasks against both with a deterministic agent driver. The MCP-enabled variant reduced agent-side data ingestion by 74% (33,971 → 9,157 bytes over 3 tasks) at equal task success (3/3) and equal output correctness (identical product selections). This report documents the architecture, protocol implementation, test methodology, and measured deltas.

2. Architecture

2.1 Deployment topology

nginx (80/443, LE cert SAN: demonomcp + demowithmcp)
  ├─ demowithmcp.converso.work → 127.0.0.1:9502  (server.py, env MCP=1)
  └─ demonomcp.converso.work   → 127.0.0.1:9501  (server.py, env MCP=0)

2.2 WebMCP layer (treatment site only)

Implemented the WebMCP concept (per W3C WebMachineLearning draft direction) as two endpoints:

EndpointRole
GET /.well-known/mcpDiscovery manifest: server metadata, transport (HTTP), tool registry with JSON-Schema inputSchema per tool
POST /mcpJSON-RPC 2.0 transport: initialize (protocolVersion 2025-06-18), tools/list, tools/call → returns both content[0].text (serialized) and structuredContent (native JSON)

2.3 Tool manifest (5 tools)

ToolParameters (inputSchema)Server-side behavior
search_productscategory ∈ {mice,laptops,phones}, max_price, min_rating, brand~, query~Filter+sort (rating desc), cap 10
get_product_detailsidFull record
add_to_cartid, qty=1Session-scoped cart mutation; returns count+total
get_cart—Items + total
checkout—Order creation, cart reset, returns order_id

Session affinity via Mcp-Session-Id/X-Session-Id headers (in-memory dict[sid → cart]). CORS: POST/GET/OPTIONS with wildcard origin (demo ceiling — production would pin origins).

2.4 Control site (plain)

Exposes REST only: GET /api/products[?category=] (full catalog or category slice, unfiltered), POST /api/cart/add, POST /api/checkout. No discovery document, no schema, no server-side filtering. This models the status-quo path for browsing agents: endpoint discovery from markup/JS, full-catalog retrieval, client-side reasoning.

2.5 Catalog

30 products (10 mice, 10 laptops, 10 phones), realistic Indian pricing (₹549–₹1,14,900), brand/spec/rating fields, static JSON. Skipped live scraping (bot-detection cost, zero demo value) — noted as upgrade path to live feeds.

3. Methodology

3.1 Agent driver

Deterministic rule-based driver (compare.py) — deliberately NOT an LLM, to isolate mechanism cost (I/O volume, request count, discovery burden) from model variance. Both drivers encode the same decision policy; only the access path differs:

2.6 Instrumentation

Meter wrapper: per-request count, accumulated response bytes, wall-clock. Session id pinned per task to make cart state coherent. Success assertion per task (e.g. task 2: pick == HP Pavilion 14 @ ₹52,990 — verified against catalog ground truth).

4. Results

TaskSiteRequestsBytes readTime (s)PickSuccess
1 — wireless mouse ≤ ₹1,500plain311,2810.03Portronics Toad 32 (₹749)✓
mcp43,0300.03Portronics Toad 32✓
2 — cheapest laptop ≥ 4.3★plain311,2830.03HP Pavilion 14 (₹52,990)✓
mcp43,0260.02HP Pavilion 14✓
3 — top-rated phone ≤ ₹30k + checkoutplain411,4070.02Redmi Note 13 Pro (₹21,999)✓
mcp53,1010.03Redmi Note 13 Pro✓
Totals10 / 1333,971 / 9,1570.08 / 0.08identical picks3/3 / 3/3
Per-task ingestion: full-catalog pull (plain) vs server-filtered tool result (MCP)
~4 bytes/token heuristic → ~8,500 vs ~2,300 LLM-input tokens per 3 tasks

4.1 Analysis

5. Implementation notes & known ceilings

6. Threat & robustness observations

7. Reproduction

# artifacts (srv1322534)
/root/webmcp_demo/server.py      # dual-mode server (MCP=1 gates the MCP layer)
/root/webmcp_demo/compare.py     # harness: Meter, run_plain, run_mcp, task checks
/root/webmcp_demo/results.json   # raw per-task/request metrics
/root/webmcp_demo/report.json    # aggregate summary
# run:  python3 /root/webmcp_demo/compare.py
# live: https://demowithmcp.converso.work/.well-known/mcp  (manifest)
#       https://demonomcp.converso.work/api/products       (control API)
Conclusion: at mechanism level, WebMCP-style tool exposure cut agent ingestion 74% at zero accuracy cost for the tested tasks, with overhead bounded by a constant discovery cost. The architecture is sound for the stated use case; the listed ceilings (auth, persistence, conformance subset) define the production upgrade path.

Artifacts: /root/webmcp_demo/ · Companion layman report: WebMCP_Comparison_Report.pdf · Contact: Hermes Agent on srv1322534

EOF echo done