Mission Growth

NLWeb Explained: Setup Routes Compared and Security Risks

NLWeb is Microsoft's open protocol for conversational website endpoints. See how /ask works, which setup route fits, and what to secure first.

Published 17 min read
NLWeb as a slate wall with an open glass hatch showing a solid card and a faded copy, one emerald bolt locking the side door
On this page

NLWeb is a protocol and a pile of reference code, and you reach it by three working routes. That distinction matters because it's easy to treat NLWeb as one switch that makes a site AI-ready. It isn't one.

Maybe you saw the name in an AI-search roundup, a Yoast announcement or a Cloudflare dashboard and asked yourself "what is NLWeb, and do I have to do anything?" Here is the short version.

An LLM makes several of the calls on every request, and the vector index is a copy of your data. The reference code has had a security flaw. And Google says it doesn't use special machine-readable files for its generative features.

In this guide:

  • The three layers behind the name: protocol, reference code, integrations.
  • One request, step by step, with the LLM calls marked.
  • Three working setup routes, plus the Wix route still in progress, compared side by side.
  • A pre-launch check based on the flaw's dated history.
  • A run, pilot or skip rule for your site.

What NLWeb is, and the three things the name covers

Microsoft's open protocol for asking a website questions in natural language is called NLWeb, and it ships with proof-of-concept reference code that runs on your own data.

The name covers three layers, and each has a different maintainer:

  • Protocol. NLWeb returns responses in JSON using Schema.org, through a question endpoint called /ask.
  • Reference code. The NLWeb GitHub repository holds five modules (AskAgent, AgentFinder, DataFinder, ModelRouter and NLWebScorer) under the MIT license. The repo now lives at nlweb-ai/NLWeb.
  • Integrations. Cloudflare, Yoast and Wix each offer their own way in, covered in the routes section below.
Stack of three NLWeb layers: the protocol with Schema.org JSON responses, the proof-of-concept reference code, and the Cloudflare, Yoast and Wix integrations.
NLWeb is a protocol, reference code and vendor integrations, and each layer has a different maintainer.

Microsoft's announcement credits R.V. Guha, who created RSS, RDF and Schema.org, with conceiving the project. The problem it targets is simple: a site gives people a search box and gives agents nothing to ask. The README points out that Schema.org and related formats like RSS are used by over 100 million websites, so a lot of sites already publish the raw material.

Microsoft names 12 launch collaborators: Tripadvisor, Snowflake, Shopify, Qdrant, O'Reilly Media, Milvus, Inception Labs, Hearst (Delish), Eventbrite, DDM (Allrecipes and Serious Eats), Common Sense Media and Chicago Public Media. Microsoft describes them as a small cohort of early adopters that tested and refined the approach.

Why "quick and ready" is the wrong framing

Some write-ups promise speed. One says NLWeb "provides immediate functionality without complex prompt engineering, allowing you to deploy a sophisticated AI interface in a matter of hours". Another says "enterprises can have a proof-of-concept up and running in as little as an hour".

Neither claim matches the project's own words. The README calls its code proof-of-concept demonstrations rather than the definitive solution. The control-flow doc says each request involves on the order of dozens of LLM calls, and the README adds that CI/CD pipelines are not yet included.

So read NLWeb as a protocol you can adopt and a reference you can learn from. A production service is work you still have to do.

How a request moves through NLWeb

An NLWeb request is a call to /ask or /mcp that runs dozens of small LLM checks, retrieves stored items, and returns them with scores and, optionally, LLM-generated snippets.

The /ask endpoint serves conversational queries from a human interface. The /mcp endpoint serves agents, and it takes the same arguments plus the core MCP methods. Every NLWeb instance is also an MCP server, so an agent can find your content if you choose to let it. The browser-side counterpart, where a page registers its own tools, is covered in WebMCP.

This NLWeb example shows the shape of a request, with a made-up site:

Code
https://example.com/ask?query=vegetarian+pasta+for+a+weeknight&prev=quick+dinners&mode=list

The mode argument takes 3 values:

  • list (the default) returns the matching items.
  • summarize adds a summary on top of the list.
  • generate works much like classic RAG: the list is generated, then one or more LLM calls try to answer the user's question.

The prev argument exists because the included server keeps no conversation state. The context of the conversation so far has to be passed back with every request, so your client sends the prior queries each time.

Here is where the LLM sits, step by step, using only what the docs state:

StepWhat happensStored item or LLM call
DecontextualiseThe query is rewritten using the conversation historyLLM call, run in parallel with the checks below
Relevancy and memory checksParallel checks decide whether items fit and what to rememberEach one is an LLM call
RetrieveItems come from the databaseStored data objects
ScoreRetrieved items are scored against the queryLLM-based
SnippetA snippet suited to the query is writtenThe LLM may be asked to generate it
Post-processingSummarising or answering is appliedOptional, only if the user requests it
Request pipeline from query through parallel relevancy and decontextualisation checks, retrieval, LLM scoring and a result list, with optional post-processing.
One request runs parallel LLM checks, retrieves stored items, scores them with the LLM and returns snippets.

One shortcut sits beside this flow. After a light check that the query needs no decontextualisation, a fast track path to tool selection starts in parallel with the query analysis. Its results wait until the analysis finishes, and they can be dropped entirely.

The table separates what is stored from what an LLM does. The returned items are stored data objects, and the docs say none of the results are made up. But relevancy, decontextualisation and scoring are LLM calls in the normal flow, the LLM may generate the snippet, and summarize or generate are optional post-processing layered on top.

That means list mode is not LLM-free. The REST doc marks the description field as LLM-generated and the schema object as the stored item, but it doesn't say per mode which fields an LLM wrote, so treat finer claims about field provenance as unsupported. What the docs do promise is that a result can be less than most relevant, but it won't be invented.

Two columns separating stored items from the LLM calls that check, score and may caption them, with summarize and generate as optional steps.
The items are stored objects, while LLM calls check, score and may write snippets, and summarize or generate are optional extras.

One more control sits in the response. NLWeb supports customizable response headers that can state licensing, caching policy and UI preferences. If you publish content under terms, this is where you say so. It states your terms and doesn't enforce them.

What NLWeb reads, and why answers can go stale

A vector database that the loader fills with a copy of your structured data is what answers each request, and the README warns about freshness issues when content is duplicated rather than read from live databases.

The loader's job is to compute embeddings and load the data into a vector database. It accepts JSON, TSV, CSV, RSS or Atom feeds, or a URL. Once loaded, the database is the thing /ask queries. Your live site is not.

Here is a local run with the current commands:

  1. Clone the nlweb-ai/NLWeb repository and open the AskAgent/python folder.
  2. Install the dependencies with pip install -r requirements.txt.
  3. Copy .env.template to .env, add your LLM API key and match the provider names in the config files; the local vector database variables are already set.
  4. Load a feed or a file with python -m data_loading.db_load <file-path> <site-name>.
  5. Start the server from the same folder with python app-aiohttp.py, as the hello-world doc describes, and send a request like the example above.

If you're searching for an NLWeb tutorial, that run is the core of it. Older quick-start paths such as cd code and tools.db_load have moved, so ignore any guide that still uses them.

The README documents 7 vector stores: Postgres, Elasticsearch, Azure AI Search, Milvus, Snowflake, Qdrant and Cloudflare AutoRAG. Cloudflare's own docs call that last one AI Search, so expect both names. The store you pick sets what the loader writes to and what each request queries.

Because the index is a copy, it can drift from the page. If you change a price or retire a product and nobody reloads the data, /ask still returns the old item. For production, the README tells you to read from live databases rather than copy content into a separate index, which sidesteps the freshness problem. If you can't, reloading becomes a job someone owns.

What should you publish? That's our judgment, not a documented rule: NLWeb returns items it can find, so give it complete schema.org lists and full-text feeds. A list missing half your products can't return them, and a summary-only feed gives the scorer little to match. Which schema types are worth the effort is a separate question, and our guide to schema for AI search covers it.

Four ways to get an NLWeb endpoint

You can get an NLWeb endpoint by self-hosting the reference code, enabling Cloudflare's NLWeb Worker, switching on Yoast's schemamap endpoint, or waiting on Wix, and only the first two give you a conversational /ask.

RouteWho hosts itWhat it returnsWhat it leaves to you
Self-hostYou/ask and /mcp, conversationalLoading and reloading data, picking the LLM and vector store, patching, security
CloudflareCloudflare deploys a Worker for you/ask and /mcpChecking the crawled index stays current and reviewing the endpoint before agents use it
YoastYour WordPress siteA schemamap of your structured data graphWhatever agent or interface consumes the data
WixWix, per its own pageNothing you can switch on yetWaiting

The pattern is simple. The more the route does for you, the less of /ask you control. And only the first two rows answer with a conversation. Yoast's pages describe a data endpoint, and Wix's page doesn't yet describe an endpoint at all.

Self-host the reference code

Self-hosting is the right route when you want to see how every step works and can patch a public service. You run the five modules, choose the LLM and vector database, and own the freshness and security problems described in this post. It's also the only route that gives you the full reference code to change.

Cloudflare NLWeb Worker

Cloudflare NLWeb is the managed way to a conversational endpoint, with no server for you to run. Cloudflare's template fetches your pages, builds an index from them and stands up endpoints for people and AI agents alike. Its page calls the template a public preview ideal for experimentation and asks teams that want production use to contact Cloudflare.

Here is the route in four steps:

  1. In the Cloudflare dashboard, go to AI > AI Search and select Create AI Search, following Cloudflare's NLWeb how-to.
  2. Choose Website as the data source and point it at your site so it can crawl and index the content.
  3. Open the instance's Settings, find NLWeb Worker and enable it, and AI Search deploys an NLWeb Worker for you.
  4. Call the two NLWeb API endpoints the Worker exposes, /ask and /mcp.

Because Cloudflare indexes the crawl for you, the freshness question from the previous section still applies: the index is a copy of what the crawler saw.

Yoast schemamap endpoint

Yoast's route is a data endpoint, and it doesn't add a chat interface. In March 2026 Yoast added an endpoint to Yoast SEO (free), making its Schema Aggregation feature available to all customers who choose to enable it.

The schemamap endpoint exposes your site's full structured data graph in a proposed new standard called a schemamap. Yoast says an agent gets a complete, deduplicated view of your authors, products and articles in one API call, instead of crawling hundreds of pages individually.

So this route is best if you already run WordPress and want agents to read your structured data in one place. It won't answer a visitor's question for you.

Wix and the partner status

Wix's own page calls it a platform partner and says the company is working on bringing NLWeb to Wix, Wix Studio and Wix Harmony sites. That's the full extent of what the page states, so don't plan around a working /ask on a Wix site yet.

NLWeb vs MCP, WebMCP, llms.txt and schema markup

A site-side question endpoint is what NLWeb offers, while MCP is the transport it speaks, WebMCP is a set of in-page browser tools, llms.txt is a static file and schema markup is the data NLWeb reads.

The five are often lumped together, so here is where each runs:

ThingWhere it runsWho calls itWhat it returns
NLWebA server you run or a host runs for youPeople through a UI, agents through /mcpJSON using Schema.org
MCPBetween an AI client and a serverAI clients and agentsTool results over a shared protocol
WebMCPIn the browser pageBrowser agentsStructured tools the page registers
llms.txtA static file on your siteCrawlers and agents that choose to fetch itCurated plain text
Schema markupInside your pagesCrawlers, and NLWeb's loaderStructured data about the page

NLWeb vs MCP is a false contest, because the first two rows aren't rivals. Microsoft says every instance is also an MCP server, so agents reach it that way. Our post on SEO MCP servers covers the opposite direction: using tools from your AI client.

WebMCP is a proposed web standard to help you build and expose structured tools for AI agents, and the tools live in the page. NLWeb is the site-side endpoint, and WebMCP is the in-page counterpart. They can coexist.

The static file differs from a live endpoint. missiongrowth.io publishes its own llms.txt and llms-full.txt as a curated plain-text knowledge base for AI crawlers, and a crawler reads it as is. An NLWeb endpoint answers a question on demand. Our llms.txt guide covers the file and whether it gets read.

ChatGPT reaches NLWeb through an MCP server and adapter that ship in the repo. You deploy them yourself, so ChatGPT doesn't call your site just because the endpoint exists. On the client side, the ChatGPT desktop app (an OpenAI Apps SDK client) calls the nlweb-list tool over MCP and renders the results in an interactive widget.

Does an NLWeb endpoint help you show up in AI answers?

No primary source says an NLWeb endpoint changes rankings or citations, and Google says it doesn't use special machine-readable files or markup to appear in Search's generative AI features.

Google's AI optimization guide is direct: "You don't need to create new machine readable files, AI text files, markup, or Markdown to appear in Google Search (including its generative AI capabilities), as Google Search itself doesn't use them." It adds that structured data isn't required for generative AI search, and there's no special schema.org markup you need to add.

An NLWeb endpoint is special markup's more elaborate cousin, so the same reasoning applies. We would not sell it internally as an AI-visibility project.

What it does change is what an agent that finds your endpoint can do. It gets structured items instead of scraping pages. The repo's discovery piece is AgentFinder, the module that finds other NLWeb agents on the web and routes requests to them. That's discovery by agents, and nothing in the docs ties it to a ranking signal.

If your goal is visibility, the work still sits in technical GEO: crawlable pages, clean structure and extractable answers. And if you're sorting agents that call your site from agents that do your SEO, the AI SEO agent post draws that line.

What to check before you expose /ask

Before you expose /ask, treat the endpoint as a public service holding LLM API keys: update to a build after the July 1, 2025 fix, keep .env and config files unreachable, and put your terms in the response headers.

The reason is on record. The Verge reported in August 2025 that researchers Guan and Wang told Microsoft about a path traversal flaw in the reference implementation on May 28, 2025. The flaw let any remote user read sensitive files, including system configuration files and OpenAI or Gemini API keys.

The Verge reports that Microsoft issued a fix on July 1, 2025, 34 days after the report, with no CVE issued as of its report. The public repository had already merged a pull request titled "Fix path traversal vulnerability in static file handler" on June 24, 2025, so a build dated after July 1, 2025 postdates both.

Timeline of the NLWeb path traversal flaw from report on May 28, 2025 to fix on July 1, 2025, 34 days, with no CVE issued.
By The Verge's account, the path traversal flaw was reported on May 28, 2025 and fixed on July 1, 2025, 34 days later, without a CVE.

Two statements on the flaw

The two sides describe the situation differently, and both are worth reading:

  • Microsoft: "Microsoft does not use the impacted code in any of our products. Customers using the repository are automatically protected."
  • The researcher: Guan says users "must pull and vend a new build version to eliminate the flaw," otherwise any public-facing NLWeb deployment "remains vulnerable to unauthenticated reading of .env files containing API keys."

The practical reading: if you copied the repository before the fix, don't assume you're covered. Check your build.

The four checks

Run these before the endpoint goes public:

  1. Confirm the build. Make sure your copy postdates the July 1, 2025 fix.
  2. Probe from outside. Request your .env and config paths from outside your network and expect a refusal, since the flaw exposed .env files.
  3. Set your terms. Put license, caching and usage terms in the response headers. They state your terms and don't defend anything.
  4. Query live data. For production, connect to live databases instead of a duplicated copy.

Should you deploy NLWeb now?

Deploy NLWeb now if you already publish schema.org lists, have a question your search box can't answer, and can patch a public LLM-backed service; skip it if your goal is Google ranking or AI Overview citations.

Use these conditions to decide:

  • Run it if your content is already lists of items (recipes, events, products, articles) in schema.org or a feed, someone can own reloads, and someone can apply security fixes to a public service.
  • Pilot it if you're unsure: load one content type locally, send real questions to /ask and read what comes back before exposing anything.
  • Skip it if the goal is Google ranking or citations in AI Overviews, since Google's guide says it doesn't use special files for those features.
  • Take Yoast's toggle if you run WordPress and only want agents to read your structured data. Switching on an endpoint is a smaller commitment than running a service.

Which sites can use it? Any site that publishes schema.org or RSS data, which the README puts at over 100 million. The code is MIT-licensed, so cost lives in the LLM and the vector database you connect.

What outcome should you expect? People and agents can ask your content questions in plain language and get stored items back. NLWeb's own control-flow doc says the site keeps more constrained, traditional design patterns for down-funnel transactions, because those can't afford the ambiguity inherent in natural language. So keep checkout and booking steps as they are.

The thesis, then: NLWeb is a protocol and a reference implementation, reached by three working routes, with an LLM in the middle of every request and a copy of your data behind it. Treat it that way. This week, load one content type from your own site into a local instance, send it ten real customer questions, and decide from what comes back.

Frequently asked questions

Is NLWeb the same as MCP?

No. MCP is the protocol agents use to talk to servers, and NLWeb is a way for a website to answer questions. Microsoft says every NLWeb instance is also an MCP server, so the two meet at /mcp. The repo says A2A support is coming too.

Do I need a vector database?

For the reference code, yes: its loader computes embeddings and loads them into a vector database. Cloudflare's route indexes your site for you instead, and Yoast's endpoint exposes your structured data graph with no chat layer, so neither asks you to set up a store.

Is NLWeb free to use?

The code is free: the repo uses the MIT license, and Yoast's endpoint is in Yoast SEO (free) for customers who enable it. The LLM, the vector database and any Cloudflare usage carry their own terms, so check those pricing pages before you plan a budget.

Can ChatGPT call my NLWeb endpoint?

Only through an adapter you deploy. The repo ships an MCP server and adapter that connect NLWeb to ChatGPT, and a publisher has to run them. Microsoft adds that instances make content discoverable to agents if you choose, so the choice is yours.

Does Yoast's NLWeb integration add a chatbot to my site?

No. Yoast's pages describe a schemamap data endpoint that exposes your structured data graph, available in Yoast SEO (free) when you enable it. Agents can read your authors, products and articles in one call, but nothing on those pages describes a conversational interface for visitors.

Cite this page

Aktaş, F. (2026, November 29). NLWeb Explained: Setup Routes Compared and Security Risks. Mission Growth. https://missiongrowth.io/blog/nlweb

Figures we made for this post are free to reuse under CC BY 4.0 with credit to Mission Growth.

Up nextWebMCP Explained: Nov 2026 Draft Status, Code and Fixes
21 min read
Next step

Put these playbooks to work

Start with a free audit. See where the lift is before you commit.

How it works

  1. 01

    30-minute audit call

    We map your funnel against your goal and pull live data from your channels.

  2. 02

    Lift estimate

    You get a written estimate of where the lift is, with a 30-day plan to capture it.

  3. 03

    You decide

    Run it with us, run it in-house, or shelve it. No commitment from the audit.