Built by Metorial, the integration platform for agentic AI.

Learn More

cloudflare-docs

Cloudflare Docs

    Server Summary

    • Search Cloudflare documentation

    • Access migration guides

    • Retrieve configuration examples

    • Find API references

Cloudflare Docs MCP Server

A Model Context Protocol (MCP) server that provides direct access to Cloudflare's comprehensive documentation. This server enables AI assistants to search through Cloudflare's extensive product documentation and access specialized guides, making it easier to get accurate, up-to-date information about Cloudflare's developer platform and services. Whether you're working with Workers, Zero Trust, CDN services, or any other Cloudflare product, this server ensures you have the right documentation at your fingertips.

Overview

The Cloudflare Docs MCP Server acts as a bridge between your AI assistant and Cloudflare's official documentation. Instead of manually searching through documentation pages or relying on potentially outdated information, this server provides semantic search capabilities that return relevant documentation chunks based on your queries. It covers the entire Cloudflare ecosystem, from edge computing and storage solutions to security products and infrastructure services.

This server is particularly valuable for developers building on the Cloudflare platform, DevOps engineers managing Cloudflare configurations, and anyone who needs quick, reliable answers about Cloudflare products and features. The semantic search approach means you don't need to know exact terminology or product names—the server understands context and returns the most relevant documentation sections.

Features

Comprehensive Product Coverage

The server provides access to documentation for Cloudflare's complete product suite, including:

  • Developer Platform: Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workflows, Hyperdrive, and Queues
  • AI and Machine Learning: AutoRAG, Workers AI, Vectorize, AI Gateway, and Browser Rendering
  • Security and Zero Trust: Access, Tunnel, Gateway, Browser Isolation, WARP, DDoS protection, Magic Transit, and Magic WAN
  • Core Infrastructure: CDN, Cache, DNS, Zaraz, Argo, Rulesets, Terraform integration, and Account management

Semantic Search

Rather than requiring exact keyword matches, the server uses semantic search to understand the intent behind your queries. This means you can ask questions in natural language and receive relevant documentation chunks that actually answer your question, even if they don't contain your exact words.

Specialized Migration Guidance

The server includes dedicated tools for accessing specialized guides, such as the Pages to Workers migration guide, ensuring you have access to detailed, step-by-step instructions for complex operations.

Optimized Code Generation

With access to Cloudflare's official prompt engineering guidance, the server can help generate more accurate and idiomatic code for Cloudflare's developer platform, following best practices and recommended patterns.

Tools

search_cloudflare_documentation

Purpose: Search through Cloudflare's documentation using semantic search.

When to use: This is your primary tool for answering any question about Cloudflare products, features, configuration, or troubleshooting. Use it whenever you need information about how Cloudflare services work, how to configure them, or how to solve problems.

Input Parameters:

  • query (required, string): Your search query in natural language. Be specific about what you're looking for, but don't worry about exact terminology.

What it returns: Semantically similar documentation chunks that match your query. Results are ranked by relevance, so the most applicable information appears first.

Example use cases:

  • "How do I set up caching rules for static assets?"
  • "What are the rate limits for D1 databases?"
  • "How to configure Zero Trust access policies"
  • "Best practices for Workers KV storage"

migrate_pages_to_workers_guide

Purpose: Retrieve the complete guide for migrating Cloudflare Pages projects to Workers.

When to use: Use this tool before attempting any Pages to Workers migration. It provides comprehensive, step-by-step guidance to ensure a smooth migration process.

Input Parameters: None required.

What it returns: The full migration guide with detailed instructions, considerations, and best practices for transitioning from Pages to Workers.

Important note: Always consult this guide before starting a migration to understand the implications and requirements of moving from Pages to Workers architecture.

Prompts

workers-prompt-full

Purpose: Access Cloudflare's official detailed prompt for generating code for Workers and other developer platform products.

Description: This prompt contains comprehensive guidance from Cloudflare's official documentation on how to effectively generate code for the Cloudflare developer platform. It includes best practices, common patterns, API usage examples, and recommended approaches for various use cases.

When to use: Reference this prompt when you need to generate production-quality code for Cloudflare Workers, Pages, or other developer platform products. It ensures your generated code follows Cloudflare's recommended patterns and takes advantage of platform-specific features.

Benefits:

  • Generates more idiomatic Cloudflare code
  • Follows official best practices and patterns
  • Leverages platform-specific optimizations
  • Produces code that aligns with Cloudflare's architectural recommendations

Use Cases

Rapid Development

When building applications on Cloudflare's platform, you can quickly look up API references, configuration options, and code examples without leaving your development environment. The semantic search understands context, so you can ask questions like "How do I handle POST requests in Workers?" and get directly relevant documentation.

Troubleshooting and Debugging

When something isn't working as expected, search for error messages, troubleshooting guides, or configuration issues. The server can help you find solutions to common problems and understand the root causes of issues.

Architecture Planning

Before building a new feature or application, search for architectural guidance, limitations, and best practices. Understanding how different Cloudflare products work together helps you design more robust and efficient solutions.

Migration Projects

When migrating existing applications to Cloudflare or between Cloudflare products, access detailed migration guides and understand the implications of your architectural decisions.

Learning and Onboarding

New to Cloudflare or a specific product? Use the server to explore documentation, understand concepts, and learn about capabilities without manually navigating through extensive documentation sites.

Getting Started

Once the server is configured and connected to your AI assistant, simply start asking questions about Cloudflare products and services. The server will automatically search the documentation and provide relevant information. For code generation tasks, the assistant can reference the Workers prompt to ensure generated code follows Cloudflare's best practices.

You don't need to specify which tool to use—your AI assistant will automatically select the appropriate tool based on your request. Just ask natural language questions about Cloudflare products, and the server handles the rest.