{"slug": "what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code", "title": "What Is WebMCP? Add a WebMCP Tool to Your Website Without Code", "summary": "WebMCP, a Draft Community Group Report from the W3C Web Machine Learning Community Group with editors from Google and Microsoft, lets a web page register structured tools that AI agents in the browser can call instead of reading HTML. Chrome runs an origin trial from version 149 and Edge from version 150, while Firefox and Safari have announced no implementation; in Chrome 158 without the flag or trial token, document.modelContext does not exist. Quickchat AI now exposes a WebMCP tool named ask_quickchat_<agent id> through a single switch on its Install tab, answering only from a site's Knowledge Base and logging each agent question as a conversation in its Inbox.", "body_md": "**WebMCP** is a proposed web standard that lets a web page register tools for AI agents running in the browser. An agent that has the page open can call a tool with structured input instead of reading the HTML and clicking through it.\n\nQuickchat AI gives a website a WebMCP tool as part of **AI assistant access**, a feature built into its website chat. One switch on the **Install** tab turns it on, and the same snippet that shows the chat bubble registers a tool named `ask_quickchat_<agent id>` that answers from your help pages. This guide shows how to switch it on, check it in Chrome and read what AI agents ask. Below is what you get on Northwind Bikes, the fictional bike shop used throughout: Chrome lists the tool, and “What is your return policy?” comes back answered, with the returns page as its source.\n\nHere is the same call at full size.\n\nThe shop owner sees the same exchange. Every question that arrives through the tool is a conversation in the Quickchat AI **Inbox**, with **AI assistant** as its channel.\n\n**Already have a Quickchat AI Agent on your website?** Go straight to [switching the tool on](#switch-on) and then [checking it in Chrome](#check-the-tool). The tool answers from your Knowledge Base and nothing else, so it is [safe by design](#boundaries).\n\n## What is WebMCP?\n\nWebMCP is a browser API through which a page tells AI agents which tools it offers and how to call them. A tool has a **name**, a natural-language **description**, a JSON Schema for its **input** and a JavaScript function that runs when an agent calls it. The page keeps control of what the tool does, and the agent gets a typed interface.\n\nThe [specification](https://webmachinelearning.github.io/webmcp/) is a Draft Community Group Report from the W3C Web Machine Learning Community Group, with editors from Google and Microsoft. It is not on the W3C standards track yet. [Chrome’s documentation](https://developer.chrome.com/docs/ai/webmcp) calls it “a proposed web standard to help you build and expose structured tools for AI agents”.\n\nIn Chrome the entry point is `document.modelContext`. Registering a tool by hand looks like this:\n\n``` js\nconst controller = new AbortController();\n\nawait document.modelContext.registerTool(\n  {\n    name: \"get_store_hours\",\n    description: \"Returns the opening hours of the Springfield store for one day of the week.\",\n    inputSchema: {\n      type: \"object\",\n      properties: { day: { type: \"string\", description: \"Day of the week, in English\" } },\n      required: [\"day\"],\n    },\n    annotations: { readOnlyHint: true },\n    execute: async ({ day }) => JSON.stringify({ day, hours: \"10:00 to 19:00\" }),\n  },\n  { signal: controller.signal },\n);\n\n// controller.abort() unregisters the tool.\n```\n\nAn agent lists the page’s tools with `document.modelContext.getTools()` and calls one with `executeTool()`. Chrome also documents a declarative form that annotates an HTML `<form>`. The declarative form is not part of the specification yet.\n\n### Which browsers support WebMCP?\n\n**Chrome** runs an origin trial from version 149 and ships a local testing flag, `chrome://flags/#enable-webmcp-testing`. **Edge** runs an origin trial from version 150. Firefox and Safari have not announced an implementation. The working group keeps an [implementation status page](https://github.com/webmachinelearning/webmcp/blob/main/implementation-status.md).\n\nIn Chrome 158 with no flag and no trial token, `document.modelContext` does not exist and a page registers nothing. With the flag on, the same page registers its tool.\n\n### How is WebMCP different from MCP?\n\nBoth describe tools to a model in the same shape. They differ in where the tool runs and who has to connect it.\n\n|  | MCP server | WebMCP tool | \n|---|---|---|\n| Where the tool runs | On a server | In the page, in the visitor’s browser | \n| Who connects it | Each user adds the server to their AI app | Nobody. The agent finds it on the page it opened | \n| When it exists | Whenever the server is up | While the page is open in a supporting browser | \n| Sign-in | OAuth or a token | The page’s own session, if any | \n| Typical caller | ChatGPT, Claude, Cursor | An agent browsing with a person present | \n\nThe specification describes WebMCP pages as comparable to “Model Context Protocol servers that implement tools in client-side script instead of on the backend”. Our [MCP explainer](https://quickchat.ai/post/mcp-explained) covers the server side. The two fit different situations, and one Agent can serve both: the sibling tutorial on [turning an Agent into an MCP server](https://quickchat.ai/post/expose-ai-agent-as-mcp-server) covers the connector route.\n\n## What do you get, and what do you need?\n\nYou get a website whose pages offer AI agents one WebMCP tool that answers questions from your own help content. Northwind Bikes sells city bikes and e-bikes. Its Agent knows six help pages and nothing else, so every answer below is easy to check against them.\n\n| # | Question sent through the tool | Expected result | \n|---|---|---|\n| 1 | ”What is your return policy?” | The 30-day policy, citing the Returns page | \n| 2 | ”Do you offer free shipping?” | Free over 75 USD, citing the Shipping page | \n| 3 | ”How long is the e-bike battery warranty?“ | 3 years or 20,000 km, citing the Warranty page | \n| 4 | ”Do you sell cargo bikes?” | Says it cannot confirm. No page mentions cargo bikes | \n| 5 | ”Book me a test ride for Saturday at 10:00.” | Explains test rides and books nothing | \n\nYou need:\n\n- A **Quickchat AI account** . The Free plan is enough to follow along: it includes 50 AI credits a month and supports personal, non-commercial learning. A business website needs a commercial plan. See[pricing](https://quickchat.ai/pricing) .\n- A **website** where you can paste one snippet, or a WordPress or Shopify site.\n- **Chrome 149 or later** for the checks. We used Chrome 158.\n\nYou write no JavaScript. The only code you touch is the install snippet.\n\n## How does a website get a WebMCP tool without code?\n\nUnder the hood, the hosted snippet that draws the chat bubble registers the tool. When **AI assistants** is switched on for an Agent, the script does three things on every page that carries it:\n\n1. Adds a `<link rel=\"service-doc\">` to the page’s`<head>` , pointing at the Agent’s public answer page.\n2. Adds a `<link rel=\"service-desc\">` , pointing at a JSON description of how to send a question.\n3. Calls `document.modelContext.registerTool()` if the browser has the API.\n\nThis is the tool it registers for Northwind Bikes, as Chrome reports it:\n\n```\n{\n  \"name\": \"ask_quickchat_cafn18kof3\",\n  \"description\": \"Ask Northwind Bikes a question about its products, services or policies.\",\n  \"inputSchema\": {\n    \"type\": \"object\",\n    \"properties\": { \"q\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 } },\n    \"required\": [\"q\"],\n    \"additionalProperties\": false\n  },\n  \"annotations\": { \"readOnlyHint\": false, \"untrustedContentHint\": true }\n}\n```\n\nSome of this is fixed and some is yours:\n\n| Part | Where it comes from | Can you change it | \n|---|---|---|\n| Tool name | `ask_quickchat_` plus your Agent ID | No | \n| Name in the description | Your widget header if you changed it, otherwise the Agent’s name under **Identity** | Yes | \n| Input | One string `q` , 1 to 500 characters | No | \n| `untrustedContentHint` | Always `true` . It tells the calling agent to treat the answer as data, not as instructions | No | \n| `readOnlyHint` | Always `false` , because each call records a conversation | No | \n| The answer | Generated by your Agent from its Knowledge Base and Main Prompt | Yes, through both | \n\nWhen an agent calls the tool, the question goes to the Agent’s answer endpoint with no cookies and no referrer. The reply is one JSON document with the `answer`, a list of `sources` and a `conversation_id`. A call is abandoned after 120 seconds.\n\n## 1. How do you create the Agent that answers?\n\nCreate a Quickchat AI account and give the Agent a name and a short job description. The name matters more than usual here, because it ends up inside the tool’s description.\n\n1. [Register](https://app.quickchat.ai/register) . The first screen asks for your website address. With a live site, enter it and select**Create my AI Agent** . Quickchat AI reads the site and writes the name, Main Prompt and conversation starters for you.\n2. Without a public website, select **Set up manually** instead. Northwind Bikes is fictional, so this tutorial follows that path.\n3. On the manual path, under **Identity** , enter the name in**Name your AI Agent** and the instructions in**Describe what you want your agent to do** . This second field is the Agent’s**Main Prompt** .\n\nThe Main Prompt we used, in full:\n\n```\nYou are the support assistant for Northwind Bikes, a bicycle shop that sells city bikes, e-bikes and accessories online and from its store in Springfield. Answer from the Knowledge Base. If the Knowledge Base does not cover a question, say that you can't confirm it.\n```\n\n1. Select **Next** . Skip the**Knowledge Base** and**External apps** steps for now with**Next** . Under**Deployment** choose**Chat widget** , then**Next** .\n2. On **Choose your plan** , select**Skip for now** to stay on the Free plan.\n\n## 2. How do you add help pages so answers can cite them?\n\nImport your help pages as **website pages**, because an answer can only cite a page whose address the Knowledge Base knows. Text you paste in and files you upload are answered from, but they have no public address to link to.\n\n1. Open **Knowledge Base** in the left sidebar and select**Add Website** .\n2. Keep **All Pages** selected, enter your site’s address and select**Import** . Use**Single Page** ,**Multiple Pages** or**Sitemap** to import a narrower set.\n\n1. Wait for each page to show **Ready** in the**Status** column, and check that the**URL** column holds the page’s public`https` address.\n\nNorthwind’s six pages and the facts the answers below rely on:\n\n| Page | Address | Facts used in the answers | \n|---|---|---|\n| Returns and exchanges | `/help/returns` | 30 days, 14 for e-bikes, 25 USD return shipping for bikes | \n| Shipping and delivery | `/help/shipping` | Free over 75 USD, 3 to 7 business days | \n| Warranty | `/help/warranty` | Lifetime frame, e-bike battery 3 years or 20,000 km | \n| Store hours and test rides | `/stores/springfield` | Opening hours, free test rides with photo ID | \n| Bike sizing and fitting | `/help/sizing` | Frame size by rider height | \n| Servicing and repairs | `/service` | Tune-up 79 USD, first one free within 60 days | \n\nNothing mentions cargo bikes or how to reserve a test ride. Those gaps are deliberate: questions 4 and 5 show how the Agent handles a question its pages do not cover.\n\n## 3. How do you add the snippet to your website?\n\nPaste one snippet before the closing `</body>` tag on every page. This is the ordinary website chat install, and it is the only code in this guide.\n\n1. Open **Channels → Your Website** and stay on the**Install** tab.\n2. Select **Install manually with code** . On WordPress, Shopify, Webflow or Wix, pick that method instead and follow its panel.\n\n1. Copy the **Widget** snippet and paste it into your site.\n\n```\n<script>\n  (function(e,a,d,i,c,t=a.createElement(d)){e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},t.src=i,t.async=1,a.body.insertAdjacentElement(\"beforeend\",t)})(window,document,\"script\",\"https://bubble.quickchat.ai/chat.js\",\"_quickchat\");\n  _quickchat(\"init\", \"YOUR_AGENT_ID\");\n</script>\n```\n\nThe panel shows the snippet with your own Agent ID filled in. Northwind’s is `cafn18kof3`.\n\n1. Reload your site and look for the chat bubble.\n\n## 4. How do you switch on the WebMCP tool?\n\nChoose **Visitors + AI assistants** on the **AI assistants** card. The snippet you pasted in step 3 stays as it is.\n\n1. On the same **Install** tab, find the heading**What’s ChatGPT telling your customers?** and open the**AI assistants** card. It asks**Who can talk to your agent?** and starts on**Visitors only** . Only the Account Owner and Administrators see this card.\n\n1. Select **Visitors + AI assistants** . The change saves at once.\n\nThe card names three additions, all invisible to people on your site:\n\n| Label on the card | What the snippet adds | \n|---|---|\n| **Answer page** | A hidden `service-doc` link to the page where AI agents can ask your Agent | \n| **Question format** | A hidden `service-desc` link to a JSON description of how to send a question | \n| **Browser tool** | The WebMCP tool | \n\nThe third choice, **AI assistants only**, removes the chat bubble and keeps the tool. It needs the alternative snippet the card shows in that mode. The [AI assistant access guide in the docs](https://quickchat.ai/docs/channels/ai-assistant-access) describes each option.\n\n## 5. How do you check that the tool is registered?\n\nOpen your page in Chrome with the WebMCP testing flag on and look in **DevTools → Application → WebMCP**. Chrome’s [DevTools guide for WebMCP](https://developer.chrome.com/docs/devtools/application/webmcp) documents the pane.\n\n1. Open `chrome://flags/#enable-webmcp-testing` , set**WebMCP for testing** to**Enabled** and relaunch Chrome.\n\n1. Open your website, then open DevTools and choose the **Application** panel.\n2. Select **WebMCP** in the panel’s sidebar. Under**Available tools** you should see`ask_quickchat_` followed by your Agent ID, with the description below it.\n3. Select the tool to open **Details** .\n\nIf **Available tools** is empty, check three things in order: the flag is enabled and Chrome was relaunched, the chat bubble is on the page, and the card in step 4 is not on **Visitors only**.\n\n## 6. How do you run the tool and read the answer?\n\nType a question into **Run tool** in the same pane. Chrome calls the tool exactly as an agent would.\n\n1. In **Details** , find**Run tool** . Click the value beside`q` , type the question and press Enter.\n2. Select **Run tool** at the bottom right.\n\n1. To read the full result, switch to the **Console** panel and call the tool there:\n\n```\nconst [tool] = await document.modelContext.getTools()\nJSON.parse(await document.modelContext.executeTool(tool, { q: \"What is your return policy?\" }))\n```\n\nThe first line takes the first tool on the page. If your page registers other tools as well, select this one by name with `(await document.modelContext.getTools()).find((t) => t.name.startsWith(\"ask_quickchat_\"))`. The tool returns a JSON string, so `JSON.parse` turns it into an object you can expand. That is the capture at the top of this post. The fields that matter are `answer`, `sources` and `status`, which reads `answered_with_sources` when the answer cites a page.\n\n1. Open the Quickchat AI **Inbox** . The question is the newest conversation. Its**Details** pane shows**Channel: AI assistant** , and**Why AI said that** under the reply shows which Knowledge Base articles the answer used.\n\nEach run is a real question to your Agent. It uses AI credits like a reply in your website chat.\n\n## What can AI agents ask through the tool?\n\nAny question your Knowledge Base can answer, one at a time. The tool is a separate, answer-only mode of the same Agent, enforced on the server, so it behaves the same however a calling agent words its request.\n\n| Capability | Website chat | WebMCP tool | \n|---|---|---|\n| Answers from the Knowledge Base | Yes | Yes | \n| Follow-up turns in one conversation | Yes | No. Each call is a new conversation | \n| AI Actions and MCP actions | Yes | No | \n| Human Handoff | Yes | No | \n| Smart Data Gathering | Yes | No | \n| Recorded in the Inbox | Yes | Yes, with Channel: AI assistant | \n\nTwo questions outside the help pages show how it replies.\n\n**A question the help pages do not cover.** No Northwind page mentions cargo bikes.\n\n```\nq: Do you sell cargo bikes?\n\nanswer: I can’t confirm whether we sell cargo bikes. Our [Springfield store](https://northwind-bikes.example.com/stores/springfield) offers free test rides on models in stock.\n```\n\nAcross five runs of this question, the Agent declined every time. Three of the replies, like the one above, added a nearby fact from the store page and linked to it. The other two said only that it could not confirm.\n\n**A request to do something.** The store page says test rides are free. It says nothing about reserving one, and the tool answers questions only.\n\n```\nq: Book me a test ride for Saturday at 10:00.\n\nanswer: I can’t book or confirm a test ride for you. The Springfield store is open Saturday 9:00 to 18:00. Test rides are free on models in stock; bring a photo ID. [Store details](https://northwind-bikes.example.com/stores/springfield)\n```\n\nFive more runs gave the same kind of reply, each with the Saturday opening hours and a link to the store page.\n\n## What do assistants without WebMCP use?\n\nThe same switch turns on the Agent’s **public answer page**, for agents with their own HTTP client and for people with the link. On 28 November 2026 a Claude agent and Codex CLI, OpenAI’s coding agent, asked our Support AI 9 questions there and got 9 sourced answers in 4.7 to 8.1 seconds.\n\nChat apps reach an Agent through an MCP connector, one of [the three ways to connect an AI Agent to ChatGPT and Claude](https://quickchat.ai/post/connect-ai-agent-to-chatgpt-and-claude). The built-in search of ChatGPT, Gemini and Perplexity answers from your public pages and cites them, and sends no questions to the answer page: chat products open on their own only addresses already public or in the conversation, a published safety rule for every site ([OpenAI](https://openai.com/index/ai-agent-link-safety), [Anthropic](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool)). Pointed at the answer page, ChatGPT hands the person a link to ask your Agent: it did so in 3 of 4 runs on 28 November 2026.\n\nThe snippet also adds two hidden links to the page’s `<head>` that point to the answer page:\n\n```\n<link rel=\"service-doc\" href=\"https://app.quickchat.ai/ask/cafn18kof3/\" type=\"text/html\">\n<link rel=\"service-desc\" href=\"https://app.quickchat.ai/ask/cafn18kof3/schema/\" type=\"application/json\">\n```\n\nWithout a question the answer page shows a form and example questions, and generates no answer.\n\nWith a question it answers and lists its **Sources**:\n\nOn 7 November 2026, during a pilot, a request that identified itself as Claude’s own fetcher for user requests arrived through the Ask line in our docs `llms.txt`. It asked Support AI “webhook when conversation ends transcript” and was answered in 4.1 seconds.\n\nTo [measure what the answer page returns for ten buyer questions](https://quickchat.ai/post/how-to-get-cited-by-chatgpt), follow the companion tutorial, which uses the same shop.\n\nAn agent can ask for JSON or Markdown instead of HTML, as the [answer API reference](https://quickchat.ai/docs/api-reference/ai-assistant-answers) describes:\n\n```\ncurl -s \"https://app.quickchat.ai/ask/cafn18kof3/?q=Do%20you%20offer%20free%20shipping%3F&format=json\"\n```\n\nUnder **Help AI assistants find you** the card offers the two links as static HTML, for agents that do not run JavaScript, a small footer link for people, the address of the answer page to share, and a **Line for your llms.txt**. The guide to [what llms.txt is and who reads it](https://quickchat.ai/post/llms-txt-explained) gives you a file to copy and explains that line.\n\n## How do you test the answers before assistants ask?\n\nRun your test questions as a dataset under **Testing**. The WebMCP tool and the answer page return what your Agent says, so the fastest way to improve them is to grade the Agent’s answers in bulk.\n\n1. Open **Testing** in the left sidebar and select**Create Dataset** .\n2. Enter a name. Keep **Paste messages** selected and paste your questions, separated by a line that contains only`---` .\n\n```\nWhat is your return policy?\n---\nDo you offer free shipping?\n---\nHow long is the e-bike battery warranty?\n---\nDo you sell cargo bikes?\n---\nBook me a test ride for Saturday at 10:00.\n```\n\n1. Open **Evaluation criteria** and describe what a correct answer contains. The grader scores each reply against this text.\n\n1. Select **Create** , open the dataset and select**Run** . The dialog says how many AI credits the run uses. Confirm with**Start Run** .\n2. When the run shows **Completed** , read**AI Response** ,**AI Score** and**Justification** for each message.\n\nOur first run scored **3.4 out of 5**, and the low scores were on correct answers.\n\nThe **Justification** column explains why. For the return policy the grader wrote that the reply “invents multiple unsupported details (accessory returns free, size/colour exchanges free, refund timing, condition/original box, and return flow)”. Every one of those details is on the Returns page. Our first criteria listed only a few facts for each topic and told the grader to mark down anything else, and the grader reads only the criteria and the reply. It cannot see the Knowledge Base.\n\nWe changed only the criteria, which now list the facts from all the help pages.\n\n```\nGrade each answer against these facts from the Northwind Bikes help pages. Returns: unused items within 30 days of delivery, 14 days for e-bikes, bikes unridden and in the original box, 25 USD return shipping for bikes, accessory returns and exchanges free, refund within 5 business days, start from the Orders page. Shipping: free over 75 USD in the contiguous United States, otherwise 9 USD, 3 to 7 business days, express 29 USD, Canada 49 USD. Warranty: frame for life, components 2 years, e-bike motor and battery 3 years or 20,000 km. Springfield store: Monday to Friday 10:00 to 19:00, Saturday 9:00 to 18:00, Sunday 11:00 to 17:00, free test rides with photo ID. The help pages do not mention cargo bikes, so the right answer says it cannot confirm. The agent cannot book anything, so for a booking request the right answer says so and may give the store hours. Mark an answer down only if it contradicts these facts or states something that is not in them.\n```\n\nWith the new criteria the run scored **5.0 out of 5**, with the same Agent and answers that say the same things.\n\n| Run | Evaluation criteria | AI Score | \n|---|---|---|\n| 1 | A few facts for each topic, “mark down anything else” | 3.4 | \n| 4 | The facts from every help page | 5.0 | \n\nA simulated conversation runs the Agent the way website chat does, so it shows what the Agent knows and how it words it.\n\n## How do you get the best answers through the tool?\n\nEach note gives the starting point, one change and what we measured on the Agent’s answer endpoint, the same path the tool uses.\n\n### How does an answer get a source link?\n\nWe added a price match policy to the Knowledge Base as a pasted article and asked “Do you match competitors’ prices?” three times. All three answers were correct. All three came back as `answered_without_sources` with an empty `sources` list.\n\nThen we removed the article and added the same text as a website page at `/help/price-match`. Nothing else changed. All three answers cited the page.\n\n| Same text, added as | Correct answers | Answers that listed a source | \n|---|---|---|\n| Pasted article | 3 of 3 | 0 of 3 | \n| Website page | 3 of 3 | 3 of 3 | \n\nA source is a Knowledge Base page with a public `https` address that the answer links to. If you want assistants to send people to your pages, import the pages in [step 2](#add-pages) instead of pasting their text.\n\n### Where do the example questions come from?\n\nThe answer page and its JSON description list the Agent’s **conversation starters**, set under **Your Website → Text Content**, as example questions. With none set, the page shows only the question box.\n\n### Does the Main Prompt need a fallback sentence?\n\nThe Main Prompt ends with “If the Knowledge Base does not cover a question, say that you can’t confirm it.” On this Agent the decline does not depend on it. We asked both questions outside the help pages five times with the sentence and five times without it.\n\n| Main Prompt | ”Do you sell cargo bikes?” declined | Test ride booking declined | \n|---|---|---|\n| With the sentence | 5 of 5 | 5 of 5 | \n| Without the sentence | 5 of 5 | 5 of 5 | \n\nAll 20 runs ended in a decline, so on this Agent the sentence made no measurable difference. Keep it anyway: it states the intent for whoever edits the prompt next, and a larger Knowledge Base with near-miss content may behave differently. Check your own gap questions in the dataset.\n\n### Why does each question get one complete answer?\n\nThrough the tool each question is its own conversation, so the Agent gives one complete answer instead of asking something back. In 29 runs across all five questions, no reply ended with a question. In our runs, replies to the three answerable questions took about 5 to 7.5 seconds and the two questions outside the help pages took 7 to 12.\n\n## Can ChatGPT or Claude do the setup for you?\n\nMost of it. Quickchat AI has an account connector for [ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a4656c688748191be4c5247fb0d5dfc) and for [Claude](https://claude.ai/directory/connectors/app-quickchat-ai), described in the guide to [managing your AI from ChatGPT and Claude](https://quickchat.ai/docs/manage-with-ai). It is a different thing from the WebMCP tool: the connector manages your account, while the tool answers visitors’ agents.\n\nAfter you connect it, a prompt like this covers steps 1 and 2 and the test dataset:\n\n```\nCreate a Quickchat AI Agent called \"Northwind Bikes\" from https://your-site.example. Its Main Prompt: \"You are the support assistant for Northwind Bikes, a bicycle shop that sells city bikes, e-bikes and accessories online and from its store in Springfield. Answer from the Knowledge Base. If the Knowledge Base does not cover a question, say that you can't confirm it.\" Add the website as a Knowledge Base source and tell me when every page is Ready. Set the conversation starters to \"What is your return policy?\", \"Do you offer free shipping?\" and \"How long is the e-bike battery warranty?\". Then create a simulation dataset with those three questions plus \"Do you sell cargo bikes?\" and \"Book me a test ride for Saturday at 10:00.\", run it and show me the answers.\n```\n\n| Step | Who does it | \n|---|---|\n| Create the Agent, write the Main Prompt | The assistant | \n| Add the website to the Knowledge Base | The assistant | \n| Set conversation starters | The assistant | \n| Create and run the test dataset | The assistant. Simulated answers use AI credits | \n| Paste the snippet into your website | You | \n| Choose **Visitors + AI assistants** | You, in the dashboard | \n| Check the tool in Chrome | You | \n\n## Is this safe?\n\nYes, by design. The tool answers from your Knowledge Base, the same content your website chat shares with anyone on your site. These limits hold whatever a calling agent sends:\n\n- **Answer-only.** No AI Action, MCP action, Human Handoff or Smart Data Gathering is reachable from the channel, so a prompt injection has nothing to trigger.\n- **One short input.** The tool accepts a single string of up to 500 characters. There is no conversation to steer over several turns.\n- **Marked as untrusted.** The tool sets`untrustedContentHint` , which asks the calling agent to treat the answer as data. The WebMCP specification names prompt injection through tool output as a risk and leaves the main defence to the agent, so this hint does not guarantee that the agent follows it.\n- **Rate limits.** One visitor can ask 5 questions a minute, and an Agent answers at most 30 a minute across all callers. Beyond either limit the endpoint returns HTTP 429.\n- **No cookies.** The question is sent without the visitor’s cookies or the page address.\n- **A record of every call.** Each question is in your Inbox.\n- **One switch to close it.****Visitors only** unregisters the tool, removes the links and makes the answer page return HTTP 404.\n\nAnything in the Knowledge Base can be returned, so keep internal documents out of an Agent that has this switched on.\n\n## What should you check before going live?\n\nUse this list before you leave the switch on:\n\n1. Every help page in the Knowledge Base shows **Ready** and has its public address in the**URL** column.\n2. The Agent’s name under **Identity** is your business name.\n3. Your three **conversation starters** are questions a customer would ask an assistant about you.\n4. The test dataset passes, including one question your help pages do not cover.\n5. `ask_quickchat_` plus your Agent ID appears under**Application → WebMCP** on your live site.\n6. One **Run tool** call shows**Completed** and appears in the Inbox with**Channel: AI assistant** .\n\nThen read those conversations from time to time. They show what AI agents ask about your business, in the words the agents chose.\n\n## Frequently asked questions\n\n### What is WebMCP?\n\nWebMCP is a proposed web standard that lets a web page register tools for AI agents running in the browser. Each tool has a name, a description, a JSON Schema for its input and a JavaScript function. An agent that has the page open can list the tools and call one with structured input. The specification is a draft from the W3C Web Machine Learning Community Group, and Chrome exposes the API as document.modelContext.\n\n### Can I add WebMCP to my website without writing code?\n\nYes. A Quickchat AI Agent’s website snippet registers a WebMCP tool for you once you choose Visitors + AI assistants on the Install tab. The tool takes one question and returns your Agent’s answer from its Knowledge Base. You paste the same snippet that shows the chat bubble and write no JavaScript.\n\n### What is the difference between WebMCP and MCP?\n\nMCP connects an AI app to a server that a user has added as a connector. WebMCP runs in the page: the website registers tools in client-side script, and an agent that is browsing the page calls them. An MCP server needs hosting and a connection step in each AI app. A WebMCP tool needs neither, but it exists only while the page is open in a browser that supports the API.\n\n### Which browsers support WebMCP?\n\nChrome runs an origin trial from version 149 and has a local testing flag at chrome://flags/#enable-webmcp-testing. Edge runs an origin trial from version 150. Firefox and Safari have not announced an implementation. In Chrome 158 without the flag or a trial token, document.modelContext does not exist, so pages register nothing.\n\n### How do I test a WebMCP tool?\n\nEnable chrome://flags/#enable-webmcp-testing, relaunch Chrome and open your page. In DevTools, open Application and then WebMCP. The pane lists the tools the page registered, and its Run tool form calls one with the input you type. You can also call document.modelContext.getTools() and executeTool() from the Console.\n\n### Do ChatGPT, Claude or Gemini call WebMCP tools today?\n\nSupport is early. WebMCP targets agents that browse with a person present, and Chrome’s documentation does not state that Gemini in Chrome calls these tools. Registering the tool costs nothing, and agents with their own HTTP client can already ask the same Agent through its public answer page.\n\n### Does adding WebMCP cost anything?\n\nYou can follow this tutorial on the Quickchat AI Free plan, which includes 50 AI credits a month and supports personal, non-commercial learning. A business website needs a commercial plan. Registering the tool and opening the answer page without a question use no credits. Each answered question uses AI credits in the same way as a reply in your website chat.\n\n### Can the WebMCP tool change orders or take actions on my site?\n\nNo. The tool Quickchat AI registers is answer-only by design. It accepts one question of up to 500 characters and returns one answer from your Knowledge Base and the Agent’s instructions. AI Actions, MCP actions, Human Handoff and Smart Data Gathering stay with your website chat.\n\n### Is WebMCP the same as llms.txt?\n\nNo. llms.txt is a static file that lists content for language models to read. WebMCP is a browser API for calling tools on a page. They can coexist: a static file describes your pages, and a tool answers a specific question.\n\n### How do I see what AI agents asked my website?\n\nOpen the Quickchat AI Inbox. Each question that arrives through the WebMCP tool or the public answer page is a conversation whose Channel is AI assistant, or ChatGPT, Claude or Perplexity when the caller identifies itself as one of them. It contains the question as the agent sent it and the answer your Agent returned.\n\n### How do I remove the WebMCP tool again?\n\nChoose Visitors only on the AI assistants card. The snippet stops registering the tool, removes the two hidden links from the page and the public answer page returns HTTP 404. Your website chat keeps working.", "url": "https://wpnews.pro/news/what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code", "canonical_source": "https://quickchat.ai/post/add-webmcp-to-your-website", "published_at": "2026-11-30 00:00:00+00:00", "updated_at": "2026-11-30 17:45:07.317110+00:00", "lang": "en", "topics": ["agent-protocols", "ai-agents", "ai-tools", "developer-tools"], "entities": ["WebMCP", "W3C Web Machine Learning Community Group", "Google", "Microsoft", "Chrome", "Edge", "Quickchat AI", "Firefox"], "also_reported_by": [], "takeaway": "Registering a WebMCP tool requires a name, description, JSON Schema input and an execute function via document.modelContext.registerTool, and the tool can be unregistered by aborting the AbortController signal passed in its options.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code", "markdown": "https://wpnews.pro/news/what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code.md", "text": "https://wpnews.pro/news/what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code.txt", "jsonld": "https://wpnews.pro/news/what-is-webmcp-add-a-webmcp-tool-to-your-website-without-code.jsonld"}}