Cloudflare Alternative MCP Server for Mastra AI 15 tools — connect in under 2 minutes
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Cloudflare Alternative through the Vinkius and Mastra agents discover all tools automatically — type-safe, streaming-ready, and deployable anywhere Node.js runs.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token — get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"cloudflare-alternative": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Cloudflare Alternative Agent",
instructions:
"You help users interact with Cloudflare Alternative " +
"using 15 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Cloudflare Alternative?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Cloudflare Alternative MCP Server
Connect your Cloudflare account to any AI agent and take full control of your DNS, edge computing, CDN and security infrastructure through natural conversation.
Mastra's agent abstraction provides a clean separation between LLM logic and Cloudflare Alternative tool infrastructure. Connect 15 tools through the Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution — deployable to any Node.js host in one command.
What you can do
- DNS Management — List, create, update and delete DNS records (A, AAAA, CNAME, MX, TXT) with full control over TTL, priority and Cloudflare proxy status
- Zone Discovery — View all domains managed by Cloudflare with their plan type, SSL status, name server assignment and activation state
- Workers Inventory — List all deployed serverless Worker scripts with their last deployment timestamps and binding configurations
- KV Storage — Browse KV namespaces, read and write key-value pairs for Worker configuration, feature flags and edge-cached data
- Pages Projects — View all Cloudflare Pages deployments with their Git source, production branch and build status
- Firewall Audit — Review all WAF (Web Application Firewall) rules including filter expressions, actions (block, challenge, allow) and enabled status
- Load Balancer Health — Inspect load balancer configurations, origin pools, health check status and traffic steering policies
- CDN Analytics — View traffic analytics including request counts, bandwidth, threat mitigation, cache ratio and visitor statistics
- IP Range Lookup — Retrieve Cloudflare's complete IP address ranges for origin firewall allow-listing
The Cloudflare Alternative MCP Server exposes 15 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Cloudflare Alternative to Mastra AI via MCP
Follow these steps to integrate the Cloudflare Alternative MCP Server with Mastra AI.
Install dependencies
Run npm install @mastra/core @mastra/mcp @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the agent
Save to agent.ts and run with npx tsx agent.ts
Explore tools
Mastra discovers 15 tools from Cloudflare Alternative via MCP
Why Use Mastra AI with the Cloudflare Alternative MCP Server
Mastra AI provides unique advantages when paired with Cloudflare Alternative through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure — add Cloudflare Alternative without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every Cloudflare Alternative tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host — Vercel, Railway, Fly.io, or your own infrastructure
Cloudflare Alternative + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Cloudflare Alternative MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Cloudflare Alternative, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Cloudflare Alternative as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Cloudflare Alternative on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Cloudflare Alternative tools alongside other MCP servers
Cloudflare Alternative MCP Tools for Mastra AI (15)
These 15 tools become available when you connect Cloudflare Alternative to Mastra AI via MCP:
create_dns_record
Requires the record type (A, AAAA, CNAME, MX, TXT, etc.), name (hostname) and content (IP address, target hostname, etc.). Optionally set TTL and whether to proxy through Cloudflare CDN (proxied=true enables the orange cloud). Create a new DNS record in a Cloudflare zone
delete_dns_record
Provide the zone ID and DNS record ID. This action cannot be undone — the record will be immediately removed from Cloudflare nameservers. Delete a DNS record from a Cloudflare zone
get_kv_value
Useful for reading Worker configuration, feature flags, cached API responses or session data. Provide the namespace ID and the key name. Get a value from a Cloudflare KV namespace
get_zone
Provide the zone ID. Get details for a specific Cloudflare zone
get_zone_analytics
Use to audit CDN performance, identify traffic spikes and review threat mitigation. Get analytics data for a Cloudflare zone
list_cloudflare_ips
Useful for configuring allow-lists, firewall rules and origin server access control to only permit traffic from Cloudflare proxies. List Cloudflare IP address ranges
list_dns_records
) configured for a specific zone. Each record has a type, name, content, TTL and proxied status (whether traffic goes through Cloudflare CDN). Optionally filter by record type (e.g. "A" for IPv4 addresses only). List DNS records for a Cloudflare zone
list_firewall_rules
Each rule defines a filter expression (e.g. "ip.src in {1.2.3.4}") and an action (block, challenge, allow, log, js_challenge). Use to audit your web application firewall configuration. List firewall rules for a Cloudflare zone
list_kv_namespaces
KV namespaces are used by Workers for edge-cached data, configuration and session storage. Each namespace has an ID and title. Use the namespace ID to read/write key-value pairs. List Cloudflare KV namespaces
list_load_balancers
Cloudflare Load Balancing distributes traffic across multiple origin servers or regions based on health checks, geolocation and steering policies. Each load balancer has a name, target pools, fallback pool and health status. List load balancers for a Cloudflare zone
list_pages_projects
Cloudflare Pages is a full-stack hosting platform that connects to Git repositories and deploys static/SSG sites. Each project has a name, Git source, production branch and deployment count. List Cloudflare Pages projects
list_workers
Workers are serverless JavaScript/Wasm functions that run at Cloudflare edge locations. Each worker has a name, last deployment timestamp, resource usage and optional bindings (KV, R2, D1). Provide the account ID (found in Cloudflare dashboard URL). List Cloudflare Workers scripts
list_zones
Each zone represents a domain that uses Cloudflare DNS and CDN services, with status (active, pending), plan type and verification status. Use the zone ID for subsequent DNS, firewall and analytics queries. List all Cloudflare zones (domains)
put_kv_value
Workers use this for edge-cached data, feature flags and configuration. Provide the namespace ID, key name and the value to store. The value can be any text (JSON, plain text, etc.). Write a value to a Cloudflare KV namespace
update_dns_record
Provide the zone ID and record ID, then any fields to change: name, content, TTL or proxied status. Only the fields you provide will be updated. Update an existing DNS record
Example Prompts for Cloudflare Alternative in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Cloudflare Alternative immediately.
"Show me all A records for my example.com zone."
"What Workers are currently deployed on my account?"
"What firewall rules are active on my production zone?"
Troubleshooting Cloudflare Alternative MCP Server with Mastra AI
Common issues when connecting Cloudflare Alternative to Mastra AI through the Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpCloudflare Alternative + Mastra AI FAQ
Common questions about integrating Cloudflare Alternative MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Connect Cloudflare Alternative with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Cloudflare Alternative to Mastra AI
Get your token, paste the configuration, and start using 15 tools in under 2 minutes. No API key management needed.
