Public endpoint settings
Configure public endpoints to expose your AI Search instance directly to users without requiring authentication. This enables you to share your AI Search functionality with external users, or to integrate it into public-facing applications.
Each AI Search instance can expose three public endpoints:
| Endpoint | Description |
|---|---|
/mcp | Model Context Protocol endpoint for AI agents |
/chat/completions | OpenAI-compatible chat completion endpoint |
/search | Search endpoint that returns relevant chunks |
For details on how to use these endpoints, refer to Public endpoint usage.
When enabled, public endpoints are accessible at:
https://<hash>.search.ai.cloudflare.com/<endpoint>The <hash> is your instance's unique public endpoint identifier.
For example:
https://abc123.search.ai.cloudflare.com/mcphttps://abc123.search.ai.cloudflare.com/chat/completionshttps://abc123.search.ai.cloudflare.com/search
You can enable or disable each public endpoint independently:
- Log in to your Cloudflare account, and go to AI Search. Go to AI Search
- Select your AI Search instance.
- Go to Settings > Public Endpoints.
- Toggle on Public Endpoints to enable the feature, then toggle each individual endpoint on or off as needed.
Each endpoint has its own configuration panel for granular control.
Configure rate limits to control usage across all public endpoints:
| Setting | Description | Default |
|---|---|---|
| Requests per period | Maximum number of requests allowed | 120 |
| Time period | Time window for the rate limit | 1 minute |
| Period type | Rate limiting technique: fixed or sliding | fixed |
Rate limits apply across all enabled public endpoints for the AI Search instance.
Cross-Origin Resource Sharing (CORS) is enabled by default to support browser-based applications.
The default allowed origins depend on your data source type:
- Website data sources: The source domain is automatically added as an allowed origin.
- Other data sources: All origins (
*) are allowed by default.
You can customize allowed origins in the Public Endpoints settings by adding specific hostnames to the CORS rules.
The Tool Description field allows you to customize how your AI Search instance is described to MCP clients. The default description is Finds exactly what you're looking for. This description helps AI agents understand what content is available, and when to use your search tool. A good tool description should explain what type of content is indexed, and what kinds of questions it can answer.
For example:
Search the Acme product documentation for information aboutinstallation, configuration, API references, and troubleshootingguides. Use this tool when users ask questions about how to set upor use Acme products.- Public endpoints do not require authentication.
- Consider enabling rate limiting to prevent abuse.
- Use CORS rules to restrict access to specific domains.
- Monitor usage through your dashboard analytics.
- UI snippets - Add pre-built search and chat components to your website using your public endpoints.