diff --git a/src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx b/src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx index a33befbe95f5111..bd9ab17f40736a9 100644 --- a/src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx +++ b/src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx @@ -30,7 +30,38 @@ These MCP servers allow your MCP Client to read configurations from your account | [DNS Analytics server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/dns-analytics) | Optimize DNS performance and debug issues based on current set up | `https://dns-analytics.mcp.cloudflare.com/mcp` | | [Digital Experience Monitoring server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/dex-analysis) | Get quick insight on critical applications for your organization | `https://dex.mcp.cloudflare.com/mcp` | | [Cloudflare One CASB server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/cloudflare-one-casb) | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | `https://casb.mcp.cloudflare.com/mcp` | -| [GraphQL server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/graphql/) | Get analytics data using Cloudflare’s GraphQL API | `https://graphql.mcp.cloudflare.com/mcp` | +| [GraphQL server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/graphql/) | Get analytics data using Cloudflare's GraphQL API | `https://graphql.mcp.cloudflare.com/mcp` | +| [Agents SDK Documentation server](https://github.com/cloudflare/agents/tree/main/site/agents) | Token-efficient search of the Cloudflare Agents SDK documentation | `https://agents.mcp.cloudflare.com/mcp` | Check our [GitHub page](https://github.com/cloudflare/mcp-server-cloudflare) to know how to use Cloudflare's remote MCP servers with different MCP clients. +## Agents SDK Documentation server + +The Agents SDK Documentation server provides a token-efficient search tool for the Cloudflare Agents SDK documentation. This server is particularly useful when building with the Agents SDK, allowing you to quickly find relevant documentation without consuming excessive tokens. + +### Available tools + +The server exposes one tool: + +- **search-agent-docs**: Search the Cloudflare Agents SDK documentation using natural language queries + - **query** (string): Query string to search for (for example, `agent hibernate`, `schedule tasks`) + - **k** (number, optional): Number of results to return (default: 5) + +### How it works + +The server fetches documentation from GitHub, chunks it using a recursive chunker, and indexes it with Orama. The index is cached in KV for one day. Search uses BM25 with stemming enabled, which allows natural language queries like "hibernation" to match with "hibernate" for better results. + +### Usage example + +Connect to the server at `https://agents.mcp.cloudflare.com/mcp` in your MCP client. You can then use queries like: + +- `agent hibernate` - Find information about agent hibernation +- `schedule tasks` - Learn about task scheduling +- `tool calling` - Discover how to implement tool calling + +The server returns relevant documentation chunks with their file names and full content URLs, making it easy to find the information you need while building agents. + +### Rate limiting + +The server is designed to avoid GitHub rate limiting by caching documentation. If you are self-hosting this server, you can set the `GITHUB_TOKEN` environment variable to increase your rate limits. +