WebMCP, MCP-серверы и Agent-Ready бизнес на Next.js 15: как подключить сайт, CRM и Kaspi QR / Stripe напрямую к AI-агентам (Алматы, Астана, Шымкент и Global)
Практическое руководство от основателя MurdaSoft Александра Мурдасова: переход от пассивного llms.txt к транзакционному WebMCP и JSON-RPC 2.0 /api/mcp на Next.js 15. Интеграция с CRM, Telegram Mini App, Kaspi QR, Stripe, DevSecOps-защита и таблица цен/сроков для Казахстана и мирового рынка.
From Passive GEO to Agent-Ready Transactions in 2026
Across Almaty, Astana, Shymkent, and global US/EU/UAE markets, forward-thinking teams have already adopted llms.txt and Schema.org to earn citations in ChatGPT Search, Perplexity, and Google AI Overviews. However, a static text file solves only half of the funnel: brand discovery. When a buyer or procurement lead instructs an AI agent to calculate a quote, check availability, book a slot, or initiate an invoice, a traditional brochure website breaks the workflow.
To stop AI agents from guessing over fragile DOM layouts, modern companies are upgrading to an Agent-Ready architecture on Next.js 15: combining GEO (llms.txt + JSON-LD), client-side WebMCP (document.modelContext.registerTool), a server-side JSON-RPC 2.0 MCP endpoint (/api/mcp), unified CRM automation, and automated Stripe / Kaspi QR settlement.
Three Layers of an Agent-Ready Platform on Next.js 15
Production systems for B2B SaaS, e-commerce, clinics, and logistics rely on three cleanly decoupled layers:
- •Layer 1 — Discovery (GEO & Semantic Index): server routes
/llms.txtand/llms-full.txt, strict multilingualhreflangmapping, andService,BlogPosting, andFAQPageJSON-LD. This gives LLM crawlers verified pricing, stack specs, and regional coverage. - •Layer 2 — Execution (WebMCP + JSON-RPC 2.0
/api/mcp): browser tool registration viadocument.modelContext.registerToolalongside a deterministicPOST /api/mcpendpoint with strict JSON Schema contracts. Agents receive structured JSON payloads instead of scraping HTML. - •Layer 3 — Settlement & CRM (WhatsApp, Telegram Mini Apps, 1C, Stripe & Kaspi QR): real-time lead routing, conflict-free calendar booking, instant Stripe checkout in USD/EUR for global buyers or Kaspi QR in Kazakhstan, and full CRM synchronization.
We apply these exact patterns in live client deployments: in SAN Shymkent, the AI consultant handles inquiries across WhatsApp, Instagram, Telegram, and web chat before handing a structured order to sales; in StroySbyt-Yug (SILKCOAT), a WhatsApp AI bot collects project parameters and dispatches clean leads to Telegram; and in Proto4ka CRM, bot requests book directly into a conflict-free service schedule. You can explore our 89-chapter engineering blueprint on MurdaSoft Vibe Map.
Bridging WebMCP, CRM, and Payment Gateways Safely
Business owners rightly hesitate to expose internal databases or pricing logic directly to LLMs. The solution is strict contract separation across tool permissions:
- •Read-only tools (
readOnlyHint: true):list-services,estimate-project,check-availability, andsearch-catalog. Agents call these freely to fetch real-time pricing and availability directly from PostgreSQL without hallucinating numbers. - •Human-confirmed draft tools:
create-lead-draftorreserve-slot. The agent validates inputs with Zod, creates a short-lived draft token, and returns a confirmation link to a Telegram Mini App or checkout page. - •Deterministic payment settlement: an order never transitions to
paidbased on an LLM response. Final status updates happen exclusively via cryptographically verified Stripe or Kaspi Pay webhooks with idempotency keys.
DevSecOps Guardrails for Public AI Endpoints
Exposing /api/mcp and CRM integrations without hardening creates immediate operational risk. Every MurdaSoft production build enforces:
- •Prompt Injection Defense & Strict Validation: system instructions remain strictly isolated from user input and CRM records, while every tool payload is validated with Zod schemas and length caps.
- •Rate Limiting & Zero-Friction Anti-Bot: IP/token quotas and Cloudflare Turnstile protect public calculators, forms, and MCP endpoints from automated abuse and LLM token exhaustion.
- •HMAC-SHA256 & Idempotent Webhooks: every payment callback is verified with
crypto.timingSafeEqualand deduplicated against stored event IDs. - •Infrastructure Isolation: PostgreSQL and Redis bind exclusively to
127.0.0.1inside private Docker networks, backed by UFW firewall rules and PostgreSQL Row-Level Security (RLS) for multi-tenant SaaS.
Timelines & Pricing Matrix (2026)
| Implementation Tier | Core Stack & Deliverables | Timeline | Price (USD) | Price (KZT) |
|---|---|---|---|---|
| GEO + llms.txt + WebMCP Pack | llms.txt, Schema.org (Service, FAQPage), browser WebMCP tools on Next.js | 3–7 days | from $320 | from 150,000 ₸ |
| DevSecOps & API Hardening | OWASP Top 10 audit, HMAC-SHA256 webhooks, Docker/UFW lockdown, rate limiting | 3–5 days | from $320 | from 150,000 ₸ |
| Telegram Mini App + Payments | Native TMA storefront or booking flow, Kaspi QR / Stripe checkout, CRM sync | 2–3 weeks | from $550 | from 250,000 ₸ |
| Autonomous AI Agent + CRM | RAG over catalog & pricing, WhatsApp API + Telegram + web chat lead qualification | 2–3 weeks | from $650 | from 300,000 ₸ |
| Turnkey Next.js 15 SaaS / B2B Portal | Custom CRM/portal, /api/mcp, PostgreSQL RLS, Stripe + Kaspi QR, 1C OData | 3–4 weeks | from $950 | from 450,000 ₸ |
Step-by-Step Rollout Plan
Channel & Lead-Loss Audit: map where inquiries drop off across WhatsApp, Telegram, web forms, and manual quoting.
GEO Foundation & llms.txt: structure services, verified pricing tables, regional coverage, and FAQPage JSON-LD for ChatGPT, Perplexity, and Google AI Overviews.
WebMCP & /api/mcp Contract Design: define JSON Schemas for read-only estimation/search tools and validated lead-draft endpoints.
CRM & Messenger Integration: connect WhatsApp Business API, Telegram bots/Mini Apps, and web chat into a single pipeline with attribution tracking.
Payment & ERP Settlement: wire Stripe (USD/EUR) and Kaspi QR (KZT) webhooks with HMAC verification, idempotency, and 1C/ERP sync where required.
Security & Load Verification: test prompt-injection resilience, duplicate webhook delivery, rate limits, and Core Web Vitals.
Launch & AI Attribution Monitoring: track /llms.txt crawls, /api/mcp tool calls, and dialog-to-payment conversion rates.
FAQ
How is WebMCP and /api/mcp different from a standard llms.txt file?
llms.txt is a read-only discovery index that helps ChatGPT, Perplexity, and Claude cite your business accurately. WebMCP and a server-side /api/mcp (JSON-RPC 2.0) endpoint expose live, schema-validated tools so AI agents can calculate quotes, check availability, or draft bookings without scraping HTML.
Can we connect an AI agent to an existing CRM or ERP without rebuilding our entire site?
Yes. We deploy a lightweight Next.js 15 / Node.js integration gateway with Zod validation and /api/mcp connected to your existing CRM or 1C via API/OData, while adding llms.txt, Schema.org, and WebMCP to your frontend within 3–7 days.
How do you prevent the AI agent from hallucinating prices or discounts?
Pricing calculations never rely on LLM text generation. The model invokes a deterministic estimate-project or search-catalog tool backed directly by your database rules and returns exact server-computed figures.
Is it safe to connect Stripe or Kaspi QR checkout to an AI workflow?
Yes, because the AI agent never controls payment state or holds merchant secrets. It can only generate a validated draft order, while payment confirmation occurs strictly via server-side Stripe or Kaspi Pay webhooks verified with HMAC-SHA256 signatures and idempotency keys.
Which regions does MurdaSoft serve?
MurdaSoft delivers locally across Kazakhstan (Almaty, Astana, Shymkent) with full official B2B paperwork, and builds global English-language Next.js SaaS, AI agent, and GEO systems for clients in the US, UAE, EU, and UK.
How can we start a project or technical audit?
Explore our architecture blueprint on MurdaSoft Vibe Map and message founder Alexander Murdasov directly on Telegram at @murdasoft for a scope review and fixed estimate.