Skip to main content
Glama
WWE1203

Cloudflare DNS MCP Server

by WWE1203
README.md
# Cloudflare DNS MCP Server

AI-powered DNS management for Cloudflare. Let any MCP-compatible AI agent (Claude, Cursor, Windsurf, etc.) manage your DNS records.

## Tools

| Tool | Description |
|------|-------------|
| `list_zones` | List all domains in your Cloudflare account |
| `list_dns_records` | List all DNS records for a zone |
| `create_dns_record` | Create A, AAAA, CNAME, TXT, MX, NS, SRV, CAA records |
| `update_dns_record` | Update existing records |
| `delete_dns_record` | Delete records |

## Usage

### npx (recommended)

```json
{
  "mcpServers": {
    "cloudflare-dns": {
      "command": "npx",
      "args": ["-y", "cloudflare-dns-mcp"],
      "env": {
        "CF_API_TOKEN": "your-token-here"
      }
    }
  }
}
```

### From source

```bash
git clone https://github.com/WWE1203/cloudflare-dns-mcp.git
cd cloudflare-dns-mcp
npm install
npm run build
CF_API_TOKEN=your-token npx .
```

## Getting your Cloudflare API Token

1. Go to [Cloudflare Dashboard](https://dash.cloudflare.com/profile/api-tokens)
2. Create a token with `DNS:Edit` permission for the zones you want to manage
3. Use this token in the `CF_API_TOKEN` env variable

## License

MIT — free for personal and open-source use.
Commercial use: contact for license.

## Support

If this tool saves you time, consider supporting development:

`USDC/ETH: 0xdbACC8698CE9A849eD941c13550774865aCC59F3`

Maintenance

ActivityMaintained
ResponsivenessSyncing