{"id":307,"date":"2026-03-23T00:00:00","date_gmt":"2026-03-23T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/03\/23\/ai-search-ai-search-ui-snippets-and-mcp-support\/"},"modified":"2026-03-23T00:00:00","modified_gmt":"2026-03-23T00:00:00","slug":"ai-search-ai-search-ui-snippets-and-mcp-support","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/03\/23\/ai-search-ai-search-ui-snippets-and-mcp-support\/","title":{"rendered":"AI Search &#8211; AI Search UI snippets and MCP support"},"content":{"rendered":"<p><a href=\"https:\/\/developers.cloudflare.com\/ai-search\/\">AI Search<\/a> now supports public endpoints, UI snippets, and MCP, making it easy to add search to your website or connect AI agents.<\/p>\n<p>Public endpoints allow you to expose AI Search capabilities without requiring API authentication. To enable public endpoints:<\/p>\n<ol>\n<li>Go to <strong>AI Search<\/strong> in the Cloudflare dashboard.<br \/>\n<a href=\"https:\/\/dash.cloudflare.com\/?to=\/:account\/ai\/ai-search\" target=\"_blank\">  Go to <strong>AI Search<\/strong>  <\/a>\n<\/li>\n<li>Select your instance, and turn on <strong>Public Endpoint<\/strong> in <strong>Settings<\/strong>.<br \/>\nFor more details, refer to <a href=\"https:\/\/developers.cloudflare.com\/ai-search\/configuration\/public-endpoint\/\">Public endpoint configuration<\/a>.<\/li>\n<\/ol>\n<h4>UI snippets<\/h4>\n<p>UI snippets are pre-built search and chat components you can embed in your website. Visit <a href=\"https:\/\/search.ai.cloudflare.com\/\" target=\"_blank\">search.ai.cloudflare.com<\/a> to configure and preview components for your AI Search instance.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/developers.cloudflare.com\/_astro\/ui-snippet-search-modal.tIxR8nl5_2300oN.webp\" alt=\"Example of the search-modal-snippet component\" \/><\/p>\n<p>To add a search modal to your page:<\/p>\n<div>\n<figure>\n<pre data-language=\"html\"><code class=\"language-html\"><div><div><span>&lt;<\/span><span>script<\/span><\/div><\/div><div><div><span>  <\/span><span>type<\/span><span>=<\/span><span>\"module\"<\/span><\/div><\/div><div><div><span>  <\/span><span>src<\/span><span>=<\/span><span>\"https:\/\/&lt;INSTANCE_ID&gt;.search.ai.cloudflare.com\/assets\/v0.0.25\/search-snippet.es.js\"<\/span><\/div><\/div><div><div><span>&gt;&lt;\/<\/span><span>script<\/span><span>&gt;<\/span><\/div><\/div><div><div>\n<\/div><\/div><div><div><span>&lt;<\/span><span>search-modal-snippet<\/span><\/div><\/div><div><div><span>  <\/span><span>api-url<\/span><span>=<\/span><span>\"https:\/\/<\/span><span>&lt;<\/span><span>INSTANCE_ID&gt;.search.ai.cloudflare.com\/\"<\/span><\/div><\/div><div><div><span>  <\/span><span>placeholder<\/span><span>=<\/span><span>\"Search...\"<\/span><\/div><\/div><div><div><span>&gt;<\/span><\/div><\/div><div><div><span>&lt;\/<\/span><span>search-modal-snippet<\/span><span>&gt;<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>For more details, refer to the <a href=\"https:\/\/developers.cloudflare.com\/ai-search\/configuration\/embed-search-snippets\/\">UI snippets documentation<\/a>.<\/p>\n<h4>MCP<\/h4>\n<p>The MCP endpoint allows AI agents to search your content via the Model Context Protocol. Connect your MCP client to:<\/p>\n<div>\n<figure>\n<pre data-language=\"txt\"><code class=\"language-txt\"><div><div><span>https:\/\/&lt;INSTANCE_ID&gt;.search.ai.cloudflare.com\/mcp<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>For more details, refer to the <a href=\"https:\/\/developers.cloudflare.com\/ai-search\/usage\/mcp\/\">MCP documentation<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>AI Search now supports public endpoints, UI snippets, and MCP, making it easy to add search to your website or connect AI agents. Public endpoints allow you to expose AI Search capabilities without requiring API authentication. To enable public endpoints: Go to AI Search in the Cloudflare dashboard. Go to AI Search Select your instance, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}