Overview
Cloudflare Agents provides a platform for building AI-powered chat agents that run on Cloudflare’s edge network. By combining Cloudflare Agents with ATXP’s pay-per-use MCP tools, you can create AI applications that can generate images, search the web, browse websites, and more - all with usage-based pricing and seamless deployment. This guide will show you how to integrate ATXP’s MCP tools with Cloudflare Agents to build a chat agent with image generation capabilities. You can find a full working example at atxp-cloudflare-agent-example.Setup
Create ATXP account
If you don’t have an ATXP account yet, create one and copy your ATXP connection string. It should look something like this:
Install ATXP client
Add the ATXP client to your project:
The
@atxp/client package provides the MCP transport that allows you to use ATXP’s MCP tools in your Cloudflare Agent.