---
title: "NLWeb"
description: "NLWeb is Microsoft's open project that lets a website answer plain-language questions from its schema.org data, and works as an MCP server for AI agents."
url: https://ursy.com/wiki/nlweb/
updated: 2026-11-25T01:34:16+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/nlweb/
---

# NLWeb

> NLWeb is Microsoft's open project that lets a website answer plain-language questions from its schema.org data, and works as an MCP server for AI agents.

**NLWeb is an open project, started by Microsoft in May 2025, that lets a website answer questions typed in everyday language, using the structured data the site already publishes, and that also opens the site to AI agents as an MCP server.** In short, it puts a “talk to this site” layer on top of your schema.org markup and feeds.

## What is NLWeb? {#what-is-nlweb}

Microsoft [announced NLWeb](https://news.microsoft.com/source/features/company-news/introducing-nlweb-bringing-conversational-interfaces-directly-to-the-web/) on 19 May 2025. The name stands for natural language web. Microsoft says it was conceived and developed by R.V. Guha, who had joined the company as a corporate vice president and Technical Fellow, and who created web standards such as RSS, RDF and Schema.org. The code is on GitHub under the MIT licence.

The [project’s README](https://github.com/microsoft/NLWeb) describes it as a set of open protocols and open source tools for adding natural language interfaces to websites. The repository holds a Python reference implementation, and the README says the sample code is one possible approach, not the only one.

## How does it work? {#how-does-it-work}

NLWeb starts from data a site may already have. Most product, recipe, event and article pages carry [schema markup](https://ursy.com/wiki/schema-markup/), often as [JSON-LD](https://ursy.com/wiki/json-ld/), and many sites publish an [RSS feed](https://ursy.com/wiki/rss-feed/). NLWeb loads those items into a [vector database](https://ursy.com/wiki/vector-database/), so it can find the ones that best match a question by meaning rather than exact words. Our pages on [vector search](https://ursy.com/wiki/vector-search/) and [embeddings](https://ursy.com/wiki/embeddings/) explain that step.

When someone asks a question, NLWeb finds the closest items and can pass them to a [large language model](https://ursy.com/wiki/large-language-model/) of the site owner’s choice. The README lists support for several model providers (including OpenAI, Anthropic, Gemini and [DeepSeek](https://ursy.com/wiki/deepseek/)) and several vector stores (including Qdrant, Milvus, Elasticsearch, Postgres and Snowflake). This pattern of “find, then let the model answer” is [retrieval-augmented generation](https://ursy.com/wiki/retrieval-augmented-generation/).

## What does a request look like? {#what-does-a-request-look-like}

The [NLWeb REST API document](https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-rest-api.md) says it supports 2 endpoints: /ask and /mcp. The /ask endpoint takes these parameters:

| Parameter | What it does |
| --- | --- |
| query | The question, in natural language. This one is required. |
| site | Limits the search to one part of the data. |
| prev | Earlier questions in the same chat, comma separated. |
| mode | list (the default), summarize or generate. |

In list mode it returns the best matches. Summarize adds a summary on top of the list. Generate works like classic retrieval-augmented generation and asks a model to answer. The reply is JSON, and each result carries a url, name, site, score, a description and the original schema object. So the answer stays tied to your own structured facts.

## How does it relate to MCP? {#how-does-it-relate-to-mcp}

Closely. Microsoft’s announcement says every NLWeb instance is also a Model Context Protocol server. The [MCP documentation](https://modelcontextprotocol.io/docs/getting-started/intro) calls MCP an open standard that links AI apps to data, tools and workflows elsewhere, much like a USB-C port links devices. The NLWeb README puts it this way: NLWeb is to MCP and A2A what [HTML](https://ursy.com/wiki/html/) is to [HTTP](https://ursy.com/wiki/http/). MCP is the pipe; NLWeb is a ready-made way to put a website’s content through it. See our pages on [MCP](https://ursy.com/wiki/mcp/), [A2A](https://ursy.com/wiki/a2a/) and our own [MCP server](https://ursy.com/mcp/).

NLWeb is not the same as [WebMCP](https://ursy.com/wiki/webmcp/). WebMCP is about a page in the browser offering tools to an agent. NLWeb runs on the server and answers questions about the whole site’s data.

## Why does it matter for search? {#why-does-it-matter-for-search}

NLWeb rewards the same clean structured data that already earns [rich snippets](https://ursy.com/wiki/rich-snippet/). If your markup is missing or wrong, an NLWeb layer has little to work with. So the first job is the old one: correct, complete [product structured data](https://ursy.com/wiki/product-structured-data/) and markup that matches the visible page. It also shows a trend: site search is moving from [keyword](https://ursy.com/wiki/keyword/) boxes towards [conversational search](https://ursy.com/wiki/conversational-search/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

It gives [AI agents](https://ursy.com/wiki/ai-agent/) a front door. Instead of [crawling](https://ursy.com/wiki/crawling/) and guessing, an agent can call the site’s MCP endpoint and ask a direct question, getting back facts the owner controls. That is the idea of the [agentic web](https://ursy.com/wiki/agentic-web/) and a part of [agent readiness](https://ursy.com/wiki/agent-readiness/). It is one option among several: [llms.txt](https://ursy.com/wiki/llms-txt/) files, clean HTML and public feeds all help too.

## A worked example {#a-worked-example}

A small cookery school lists 40 courses. Each course page has Course and Event markup with the date, price, place and skill level. With NLWeb set up, a visitor types “Is there a beginner bread class on a Saturday in March under £80?” NLWeb finds the matching course items, and in generate mode a model writes a short answer with links to the right pages. An [AI assistant](https://ursy.com/wiki/ai-assistant/) could ask the same question through /mcp. If a price in the markup is out of date, both answers are wrong, which is why the data must be kept fresh.

## Common mistakes {#common-mistakes}

- **Thin markup.**  NLWeb can only answer from what the data holds. Missing prices or dates mean missing answers.
- **Markup that disagrees with the page.**  Fix this first with our live [schema checker](https://ursy.com/schema-checker/) or build fresh markup with the [schema generator](https://ursy.com/schema-generator/).
- **Forgetting security.**  Any endpoint that feeds a model can be fed hostile text. Read about [prompt injection](https://ursy.com/wiki/prompt-injection/) and test pages with the [prompt injection checker](https://ursy.com/prompt-injection-checker/).
- **Treating it as a ranking trick.**  NLWeb is a way to serve your data, not a signal that moves [Google](https://ursy.com/wiki/google/) rankings.

## How to check your site is ready {#how-to-check-your-site-is-ready}

1. Check your structured data on key templates with the [schema checker](https://ursy.com/schema-checker/).
2. Run our live [agent readiness checker](https://ursy.com/agent-readiness-checker/) to see which agent doors your site already opens.
3. Check your feeds and [llms.txt](https://ursy.com/llms-txt-checker/) file.
4. Follow new agent standards on our [agent standards watch](https://ursy.com/data/agent-standards-probe-watch/).
5. Once an MCP door is open, our [MCP and agent call analytics](https://ursy.com/pro/mcp-and-agent-call-analytics/) (Pro) is built to show who calls it.

## Questions {#questions}

### Is NLWeb a Microsoft product I have to buy? {#is-nlweb-a-microsoft-product-i-have-to-buy}

No. It is an open project with MIT-licensed code on GitHub. You choose your own model and database.

### Who uses it? {#who-uses-it}

Microsoft’s announcement named early partners, including Shopify, Tripadvisor, Eventbrite, O’Reilly Media and Chicago Public Media.

### Do I need it to appear in AI answers? {#do-i-need-it-to-appear-in-ai-answers}

No. It is optional. Good structured data and clear pages help with or without it.

## Related words {#related-words}

- [MCP](https://ursy.com/wiki/mcp/)
- [Schema markup](https://ursy.com/wiki/schema-markup/)
- [Agentic web](https://ursy.com/wiki/agentic-web/)
- [Callable entity](https://ursy.com/wiki/callable-entity/)
- [Agentic web and protocols](https://ursy.com/wiki/topics/agentic-web/)

## Sources {#sources}

- [Microsoft: Introducing NLWeb (19 May 2025)](https://news.microsoft.com/source/features/company-news/introducing-nlweb-bringing-conversational-interfaces-directly-to-the-web/), checked 25 November 2026
- [NLWeb on GitHub: README](https://github.com/microsoft/NLWeb), checked 25 November 2026
- [NLWeb on GitHub: REST API document](https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-rest-api.md), checked 25 November 2026
- [Model Context Protocol: what is MCP?](https://modelcontextprotocol.io/docs/getting-started/intro), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
