Skip to content

Commit 1eca4ad

Browse files
Add Agents SDK Documentation MCP server
Adds documentation for the new Agents SDK Documentation MCP server that provides token-efficient search of Cloudflare Agents SDK documentation. Related to cloudflare/agents#643 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent ceb7464 commit 1eca4ad

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,38 @@ These MCP servers allow your MCP Client to read configurations from your account
3030
| [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` |
3131
| [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` |
3232
| [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` |
33-
| [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` |
33+
| [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` |
34+
| [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` |
3435

3536
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.
3637

38+
## Agents SDK Documentation server
39+
40+
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.
41+
42+
### Available tools
43+
44+
The server exposes one tool:
45+
46+
- **search-agent-docs**: Search the Cloudflare Agents SDK documentation using natural language queries
47+
- **query** (string): Query string to search for (for example, `agent hibernate`, `schedule tasks`)
48+
- **k** (number, optional): Number of results to return (default: 5)
49+
50+
### How it works
51+
52+
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.
53+
54+
### Usage example
55+
56+
Connect to the server at `https://agents.mcp.cloudflare.com/mcp` in your MCP client. You can then use queries like:
57+
58+
- `agent hibernate` - Find information about agent hibernation
59+
- `schedule tasks` - Learn about task scheduling
60+
- `tool calling` - Discover how to implement tool calling
61+
62+
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.
63+
64+
### Rate limiting
65+
66+
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.
67+

0 commit comments

Comments
 (0)