AI Search - AI Search UI snippets and MCP support
Key Points
- public endpoints without API auth
- embeddable UI snippets
- MCP endpoint for AI agents
Summary
AI Search now supports public endpoints, embeddable UI snippets, and an MCP endpoint. These additions let you expose search without API auth, embed pre-built search/chat components on web pages, and allow AI agents to query instance content via the Model Context Protocol.
Key Points
- Enable public endpoints: In the Cloudflare dashboard go to AI Search → select your instance → Settings → toggle "Public Endpoint". Public endpoints expose capabilities without API authentication — review security implications before enabling.
- UI snippets: Configure and preview components at search.ai.cloudflare.com. Embed example elements in your page:
- Script:
<script type="module" src="https://<INSTANCE_ID>.search.ai.cloudflare.com/assets/v0.0.25/search-snippet.es.js"></script> - Component:
<search-modal-snippet api-url="https://<INSTANCE_ID>.search.ai.cloudflare.com/" placeholder="Search..."></search-modal-snippet>
- Script:
- MCP (Model Context Protocol): Connect agents to
https://<INSTANCE_ID>.search.ai.cloudflare.com/mcpto let models search your instance content programmatically. - Engineering notes: Because public endpoints bypass API auth, consider applying CORS, rate limiting, IP allowlists, or proxying for access control and monitor usage in the dashboard.