OpenAICloudflare Developer PlatformMar 23, 2026, 12:00 AM

AI Search - AI Search UI snippets and MCP support

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

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>
  • MCP (Model Context Protocol): Connect agents to https://<INSTANCE_ID>.search.ai.cloudflare.com/mcp to 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.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

AI Search - AI Search UI スニペットと MCP サポート

AI Search — UI スニペットと MCP サポート

公開日: 2026-03-23

AI Search はパブリックエンドポイント、UI スニペット、MCP をサポートするようになり、ウェブサイトに検索を簡単に追加したり、AI エージェントを接続したりできるようになりました。

パブリックエンドポイント

パブリックエンドポイントを有効にすると、API 認証なしで AI Search の機能を公開できます。 有効化手順:

  • Cloudflare ダッシュボードで AI Search に移動します。
  • インスタンスを選択し、Settings で Public Endpoint をオンにします。

詳細は Public endpoint configuration を参照してください。

UI スニペット

UI スニペットは、あなたのサイトに埋め込める事前構築済みの検索およびチャットコンポーネントです。search.ai.cloudflare.com ↗ を訪れて、AI Search インスタンス用のコンポーネントを設定・プレビューできます。

ページに検索モーダルを追加するには、次のコードを使用します:

<script type="module" src="https://<INSTANCE_ID>.search.ai.cloudflare.com/assets/v0.0.25/search-snippet.es.js"></script>
<search-modal-snippet api-url="https://<INSTANCE_ID>.search.ai.cloudflare.com/" placeholder="Search..."></search-modal-snippet>

詳細は UI snippets documentation を参照してください。

MCP

MCP エンドポイントにより、Model Context Protocol を通じて AI エージェントがあなたのコンテンツを検索できます。MCP クライアントを次のエンドポイントに接続してください:

https://<INSTANCE_ID>.search.ai.cloudflare.com/mcp

詳細は MCP documentation を参照してください。