An open-source Model Context Protocol (MCP) server that provides AI agents with tools to interact with Azion's Edge Platform. Built with TypeScript and powered by deco.chat, this MCP server enables seamless automation of edge computing infrastructure through AI.
Azion is a leading edge computing platform that helps developers build, secure, and scale applications globally. With 100+ edge locations and 10Tb/s capacity, Azion provides:
- β‘ Edge Applications: Deploy applications closer to users worldwide
- π Edge Security: Advanced protection with programmable security
- π Performance: Up to 10x faster applications with 15ms response times
- π‘οΈ Reliability: 100% uptime guarantee with global edge infrastructure
deco.chat is a powerful platform for creating MCP (Model Context Protocol) tools and workflows that can automate any kind of workload. It provides:
- π§ Easy Tool Creation: Build AI-accessible tools with TypeScript
- π Workflow Orchestration: Chain tools together for complex automations
- π Global Deployment: Deploy on Cloudflare's edge infrastructure
- π― Type Safety: Full TypeScript support with auto-generated types
- π€ MCP Server: AI-accessible tools for Azion platform automation
- π Certificate Management: Create and manage SSL/TLS certificates
- π Domain Configuration: Set up and configure edge domains
- π mTLS Support: Trusted CA certificate management
- βοΈ React Frontend: Beautiful web interface for manual operations
- π¨ Modern UI: Built with Tailwind CSS and shadcn/ui components
- π§ Type Safety: Full TypeScript support with auto-generated types
- π Hot Reload: Live development environment
- βοΈ Edge Deployment: Deploy to Cloudflare Workers instantly
- Node.js β₯22.0.0
- Deco CLI:
npm i -g deco-cli - Azion account and API token
# Clone the repository
git clone https://github.com/your-org/azion-mcp-server.git
cd azion-mcp-server
# Install dependencies
npm install
# Configure your app
npm run configure
# Set up your Azion API token (required for tools to work)
# Add your token to the deco.chat workspace configuration
# Start development server
npm run devThe server will start on http://localhost:8787 serving both MCP endpoints and a React frontend for manual operations.
This server provides AI agents with the following Azion management capabilities:
AZION_CREATE_CERTIFICATE: Upload SSL/TLS certificates for HTTPS domainsAZION_CREATE_TRUSTED_CA_CERTIFICATE: Manage trusted CA certificates for mTLS
AZION_CREATE_DOMAIN: Configure domains with edge applications, certificates, and firewalls
AI: "I need to set up SSL for example.com with Azion"
MCP: [Uses AZION_CREATE_CERTIFICATE to upload certificate]
MCP: [Uses AZION_CREATE_DOMAIN to configure the domain]
AI: "SSL setup complete! Your domain is now secured and configured."
azion-mcp-server/
βββ server/ # MCP Server (Cloudflare Workers + Deco runtime)
β βββ main.ts # Server entry point with tools & workflows
β βββ tools/
β β βββ azion.ts # Azion platform integration tools
β β βββ todos.ts # Example todo management tools
β β βββ index.ts # Tool aggregation
β βββ schema.ts # Database schema definitions
β βββ deco.gen.ts # Auto-generated integration types
βββ view/ # React Frontend (Vite + Tailwind CSS)
β βββ src/
β β βββ lib/rpc.ts # Typed RPC client for server communication
β β βββ routes/ # TanStack Router routes
β β βββ components/ # UI components with Tailwind CSS
β β βββ hooks/ # TanStack Query hooks for API calls
β βββ package.json
βββ AZION_MCP_TOOLS.md # Detailed tool documentation
npm run dev- Start development with hot reloadnpm run gen- Generate types for external integrationsnpm run gen:self- Generate types for your own tools/workflowsnpm run deploy- Deploy to production
Connect this MCP server to AI agents like Claude, ChatGPT, or other MCP-compatible clients:
# The server exposes MCP endpoints at:
# http://localhost:8787/mcp (development)
# https://your-deployed-url.workers.dev/mcp (production)Access the React frontend for manual operations:
# Local development
http://localhost:8787
# Production
https://your-deployed-url.workers.devUse the typed RPC client for direct integration:
import { createClient } from "@deco/workers-runtime/client";
const client = createClient<YourMCPServerType>();
// Create a certificate
const cert = await client.AZION_CREATE_CERTIFICATE({
name: "example.com SSL",
certificate: "-----BEGIN CERTIFICATE-----...",
private_key: "-----BEGIN RSA PRIVATE KEY-----..."
});
// Create a domain
const domain = await client.AZION_CREATE_DOMAIN({
name: "example.com",
cnames: ["example.com"],
digital_certificate_id: cert.certificate_id,
edge_application_id: 1234567
});We welcome contributions from the community! This project is open source and we believe in the power of collaborative development.
- π Bug Reports: Found an issue? Open an issue
- β¨ Feature Requests: Have an idea? Start a discussion
- π§ Code Contributions: Submit pull requests for new features or fixes
- π Documentation: Help improve our docs and examples
- π§ͺ Testing: Add tests or test the server with different AI agents
# Fork the repository and clone your fork
git clone https://github.com/your-username/azion-mcp-server.git
# Create a feature branch
git checkout -b feature/amazing-new-tool
# Install dependencies
npm install
# Start development
npm run dev
# Make your changes and test thoroughly
# Commit with conventional commits
git commit -m "feat: add new Azion Edge Functions tool"
# Push and create a pull request
git push origin feature/amazing-new-toolWe encourage adding more Azion API integrations! Here's how:
- Create the tool in
server/tools/azion.ts - Follow our patterns: Use existing tools as templates
- Add documentation to
AZION_MCP_TOOLS.md - Test thoroughly with real Azion APIs
- Submit a PR with clear description
- TypeScript First: All code must be properly typed
- Error Handling: Implement comprehensive error handling
- Documentation: Document all public APIs and tools
- Testing: Add tests for new functionality
- Clean Code: Follow SOLID principles and clean code practices
- Be respectful and inclusive
- Provide constructive feedback
- Help newcomers get started
- Share your use cases and success stories
Deploy your MCP server to Cloudflare Workers with a single command:
npm run deployYour server will be available at a public URL and ready to connect with AI agents worldwide.
This project is open source and available under the MIT License.
- GitHub Issues: Report bugs or request features
- GitHub Discussions: Community discussions and help
- deco.chat Community: Join the deco.chat community
Ready to automate your Azion infrastructure with AI? Start contributing today! π
Built with β€οΈ by the community, powered by Azion and deco.chat