Skip to main content
Glama

ALECS - MCP server for Akamai

by acedergren
MIT License
3

ALECS - MCP Server for Akamai

ALECS - A LaunchGrid for Edge & Cloud Services

An MCP (Model Context Protocol) server that enables AI assistants to interact with Akamai's CDN and edge services APIs. ALECS provides comprehensive tools for managing Akamai properties, configurations, and services through natural language interactions.

Features

🚀 Multi-Customer Support

  • Seamless switching between multiple Akamai accounts for Akamai personel and partners.
  • Account-specific configurations via .edgerc sections
  • Automatic account key detection and application
  • Property lookup by name or ID
  • Group search with filtering capabilities
  • Automatic contract selection when not specified

📊 Comprehensive Property Management

  • List and search properties across contracts
  • Detailed property information including versions and activation status
  • Property configuration and rule management

🔐 SSL/TLS Certificate Management (CPS)

  • Default DV Certificates: Automated domain validation certificates
  • Enhanced TLS Network: Modern TLS 1.3 support
  • ACME DNS Automation: Automatic DNS validation record creation
  • Certificate Lifecycle: Creation, renewal, and deployment tracking

🌍 DNS Management (Edge DNS)

  • Zone Management: Create and manage PRIMARY, SECONDARY, and ALIAS zones
  • Record Operations: Full CRUD for A, AAAA, CNAME, MX, TXT, and more
  • Bulk Operations: Import/export via zone files
  • Hidden Changelist Workflow: Transparent change management
  • Advanced DNS Functions: DNSSEC status, zone transfers, versioning

🔄 DNS Migration Tools

  • Zone Transfer (AXFR): Import from any DNS provider supporting zone transfers
  • Zone File Import: Parse and import standard BIND zone files
  • Bulk Record Import: Efficient migration of large zones
  • Nameserver Migration Guide: Step-by-step migration instructions

🔐 Secure Authentication

  • EdgeGrid authentication protocol support
  • Secure credential management via .edgerc
  • Account switching via account_key field

🛠 Developer Experience

  • Docker Support: Production-ready containers with compose configurations
  • Makefile Automation: Comprehensive build, test, and deployment commands
  • Template Engine: Extensible property template system
  • Progress Tracking: Real-time feedback for long-running operations
  • LLM Optimized: Designed for AI assistant interactions

Installation

Quick Start (Interactive Mode) 🚀

# Clone and install git clone https://github.com/acedergren/alecs-mcp-server-akamai.git cd alecs-mcp-server-akamai npm install npm run build # Start with interactive mode (recommended) npm start

The interactive mode will guide you through:

  • Selecting which services to run (Property, DNS, Certificates, Security, Reporting)
  • Configuring your .edgerc path
  • Choosing the appropriate server configuration

NPM Package Installation

npm install alecs-mcp-server-akamai

Configuration

1. Set up your .edgerc file

Create a ~/.edgerc file with your Akamai credentials:

[default] client_secret = your_client_secret host = your_host.luna.akamaiapis.net access_token = your_access_token client_token = your_client_token [production] client_secret = prod_client_secret host = prod_host.luna.akamaiapis.net access_token = prod_access_token client_token = prod_client_token account_key = 1-ABCDEF

2. Configure Claude Desktop

ALECS has been completely refactored with a modular architecture for optimal performance and flexibility. The project now features:

  • TypeScript Migration: 100% TypeScript with full strict mode for enhanced type safety
  • Modular Architecture: Services split into focused, independent modules
  • Interactive Start: User-friendly CLI for selecting services
  • Improved Performance: Up to 80% reduction in memory usage
  • Better Error Handling: Comprehensive error handling with unknown catch variables

ALECS offers multiple deployment modes:

Deploy focused servers for specific use cases. This approach reduces memory usage by up to 80% and improves stability:

{ "mcpServers": { "alecs-property": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/servers/property-server.js"], "env": { "AKAMAI_EDGERC_PATH": "~/.edgerc" } }, "alecs-dns": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/servers/dns-server.js"], "env": { "AKAMAI_EDGERC_PATH": "~/.edgerc" } }, "alecs-certs": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/servers/certs-server.js"], "env": { "AKAMAI_EDGERC_PATH": "~/.edgerc" } }, "alecs-reporting": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/servers/reporting-server.js"], "env": { "AKAMAI_EDGERC_PATH": "~/.edgerc" } }, "alecs-security": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/servers/security-server.js"], "env": { "AKAMAI_EDGERC_PATH": "~/.edgerc" } } } }

Modular Server Benefits:

  • alecs-property (32 tools): Property management, activations, and basic certificate support
  • alecs-dns (24 tools): DNS zones, records, and migrations
  • alecs-certs (22 tools): Full certificate lifecycle management
  • alecs-reporting (25 tools): Analytics, metrics, and performance reports
  • alecs-security (95 tools): WAF, network lists, bot management, and DDoS protection
Option B: Monolithic Server (All Features)

For users who need all features in one server:

{ "mcpServers": { "alecs": { "command": "npx", "args": ["alecs-mcp-server-akamai"], "env": {} } } }
Option C: Essential Server (Core Features Only)

A lightweight option with just the most commonly used features:

{ "mcpServers": { "alecs-essential": { "command": "node", "args": ["/path/to/alecs-mcp-server-akamai/dist/index-essential.js"], "env": {} } } }

Choosing the Right Configuration

ConfigurationUse CaseMemory UsageTool Count
ModularDeploy only what you need~80MB per module22-95 per module
MonolithicNeed all features at once~512MB198 total
EssentialBasic property & DNS management~200MB~60 tools

Recommendation: Start with modular servers and add modules as needed. This provides the best performance and stability.

Usage Examples

List Properties

"List all my Akamai properties" "Show properties in contract ctr_1-ABCDEF"

Search for Properties

"Find property example.com" "Get details for property prp_12345"

Group Management

"List all Akamai groups" "Search for groups containing 'production'" "Find group ID for 'Web Properties'"

Multi-Customer Operations

"List properties using customer production" "Switch to staging account and show properties"

DNS Zone Management

"List all DNS zones" "Get details for zone example.com" "Create a new DNS zone for mydomain.com"

DNS Record Management

"List all records in example.com" "Add an A record for www.example.com pointing to 192.0.2.1" "Update the CNAME for blog.example.com" "Delete the old MX record"

Available Tools

FastPurge - Content Invalidation

  • fastpurge.url.invalidate - Invalidate content by URL(s)
  • fastpurge.cpcode.invalidate - Invalidate all content for CP code(s)
  • fastpurge.tag.invalidate - Invalidate content by cache tag(s)
  • fastpurge.status.check - Check purge operation status
  • fastpurge.queue.status - View queue status and pending operations
  • fastpurge.estimate - Estimate purge completion time

Property Management - Core Functions

  • list_properties - List CDN properties with filtering options
  • get_property - Get detailed property information by name or ID
  • list_groups - List account groups with search capability
  • list_contracts - List available contracts
  • create_property - Create new CDN properties
  • clone_property - Clone an existing property
  • remove_property - Delete a property

Property Management - Version & Rule Management

  • create_property_version - Create a new property version
  • list_property_versions - List all versions of a property
  • get_property_version - Get specific version details
  • get_latest_property_version - Get the latest version details
  • compare_property_versions - Compare two property versions
  • get_version_timeline - Get comprehensive version history
  • rollback_property_version - Rollback to a previous version
  • update_version_metadata - Update version notes and tags
  • merge_property_versions - Merge changes between versions
  • batch_create_versions - Create versions across multiple properties
  • get_property_rules - Get property configuration rules
  • update_property_rules - Update property configuration
  • patch_property_rules - Apply JSON patch to rules
  • validate_rule_tree - Comprehensive rule validation
  • create_rule_tree_from_template - Use predefined rule templates
  • analyze_rule_tree_performance - Analyze rule performance
  • detect_rule_conflicts - Find rule conflicts
  • optimize_rule_tree - Optimize rule configuration

Property Management - Hostname & Activation

  • create_edge_hostname - Create edge hostname for content delivery
  • list_edge_hostnames - List available edge hostnames
  • get_edge_hostname - Get edge hostname details
  • add_property_hostname - Add hostname to property
  • remove_property_hostname - Remove hostname from property
  • list_property_version_hostnames - List hostnames for a version
  • activate_property - Activate property to staging/production
  • get_activation_status - Check activation progress
  • list_property_activations - List activation history
  • cancel_property_activation - Cancel pending activation

Property Management - Search & Analysis

  • search_properties - Search properties by various criteria
  • search_properties_advanced - Multi-criteria advanced search
  • compare_properties - Compare two properties in detail
  • check_property_health - Comprehensive property health check
  • detect_configuration_drift - Detect drift from baseline
  • list_all_hostnames - List all hostnames across properties
  • bulk_search_properties - Initiate bulk property search
  • get_bulk_search_results - Get bulk search results
  • get_property_audit_history - Get property change history

Property Management - Bulk Operations

  • bulk_clone_properties - Clone property to multiple targets
  • bulk_activate_properties - Activate multiple properties
  • bulk_update_property_rules - Update rules across properties
  • bulk_manage_hostnames - Add/remove hostnames in bulk
  • bulk_update_properties - Apply common changes to multiple properties
  • get_bulk_operation_status - Track bulk operation progress

Property Management - Products & CP Codes

  • list_products - List available Akamai products
  • get_product - Get product details
  • list_use_cases - List product use cases
  • list_cpcodes - List CP codes for reporting
  • get_cpcode - Get CP code details
  • create_cpcode - Create new CP code
  • search_cpcodes - Search CP codes

Certificate Management

  • create_dv_enrollment - Create Default DV certificate
  • get_dv_validation_challenges - Get domain validation challenges
  • check_dv_enrollment_status - Check certificate status
  • list_certificate_enrollments - List all certificates
  • link_certificate_to_property - Link certificate to property
  • update_property_with_default_dv - Add secure edge hostname with DV cert
  • update_property_with_cps_certificate - Add edge hostname with CPS cert

Secure Property Onboarding

  • onboard_secure_property - Complete secure property workflow
  • quick_secure_property_setup - Quick setup with defaults
  • check_secure_property_status - Check onboarding status
  • debug_secure_property_onboarding - Debug onboarding issues

DNS Management - Core Functions

  • list_zones - List all DNS zones with filtering
  • get_zone - Get detailed zone information
  • create_zone - Create new DNS zones (PRIMARY, SECONDARY, or ALIAS)
  • list_records - List DNS records in a zone
  • upsert_record - Create or update DNS records
  • delete_record - Delete DNS records

DNS Management - Advanced Functions

  • get_zones_dnssec_status - Check DNSSEC status for multiple zones
  • get_secondary_zone_transfer_status - Get transfer status for secondary zones
  • get_zone_contract - Get contract information for zones
  • get_record_set - Get a specific DNS record set
  • update_tsig_key_for_zones - Update TSIG authentication keys
  • submit_bulk_zone_create_request - Create multiple zones in bulk
  • get_zone_version - Get specific zone version details
  • get_version_record_sets - Get records from a specific zone version
  • reactivate_zone_version - Reactivate a previous zone version
  • get_version_master_zone_file - Export zone version as master file
  • create_multiple_record_sets - Create multiple DNS records in bulk

DNS Migration Tools

  • import_zone_via_axfr - Import DNS zones via AXFR transfer
  • parse_zone_file - Parse and validate zone file content
  • bulk_import_records - Bulk import DNS records from parsed data
  • convert_zone_to_primary - Convert secondary zones to primary
  • generate_migration_instructions - Generate provider-specific migration guides

Development

Prerequisites

  • Node.js 18+
  • TypeScript 5+
  • Akamai account with API credentials

Setup

# Clone the repository git clone https://github.com/acedergren/alecs-mcp-server-akamai.git cd alecs-mcp-server-akamai # Install dependencies npm install # Build the project npm run build # Run tests npm test # Start with interactive mode (default) npm start # Or start specific services directly node dist/servers/property-server.js node dist/servers/dns-server.js node dist/servers/certs-server.js node dist/servers/security-server.js node dist/servers/reporting-server.js

TypeScript Configuration

The project now uses full TypeScript strict mode:

{ "compilerOptions": { "strict": true, "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictBindCallApply": true, "strictPropertyInitialization": true, "noImplicitThis": true, "useUnknownInCatchVariables": true, "alwaysStrict": true } }

Testing

# Run all tests npm test # Run tests with coverage npm run test:coverage # Run tests in watch mode npm run test:watch

Architecture

Recent Refactoring (v1.3.0)

The server has undergone a complete architectural refactoring:

Key Changes:
  1. Service Separation: Monolithic server split into 5 focused modules
  2. TypeScript Migration: All JavaScript files converted to TypeScript
  3. Strict Mode: Full TypeScript strict mode enabled
  4. Interactive CLI: New user-friendly startup experience
  5. Performance Optimization: Reduced memory footprint and improved startup times
Modular Structure:
src/ ├── index.ts # Interactive CLI entry point ├── servers/ │ ├── property-server.ts # Property management module (32 tools) │ ├── dns-server.ts # DNS management module (24 tools) │ ├── certs-server.ts # Certificate management module (22 tools) │ ├── security-server.ts # Security services module (95 tools) │ └── reporting-server.ts # Analytics & reporting module (25 tools) ├── akamai-client.ts # EdgeGrid authentication and API client ├── types.ts # TypeScript type definitions ├── services/ │ ├── FastPurgeService.ts # FastPurge v3 API integration │ ├── PurgeQueueManager.ts # Intelligent queue management │ └── PurgeStatusTracker.ts # Real-time operation tracking ├── monitoring/ │ └── FastPurgeMonitor.ts # Production monitoring and alerts ├── tools/ │ ├── property-tools.ts # Core property management │ ├── property-manager-tools.ts # Property version & activation management │ ├── property-manager-advanced-tools.ts # Advanced property operations │ ├── property-manager-rules-tools.ts # Rule management utilities │ ├── property-version-management.ts # Enhanced version control │ ├── rule-tree-management.ts # Rule optimization and templates │ ├── bulk-operations-manager.ts # Multi-property bulk operations │ ├── property-operations-advanced.ts # Advanced search and health │ ├── fastpurge-tools.ts # FastPurge MCP tools │ ├── dns-tools.ts # Core DNS operations │ ├── dns-advanced-tools.ts # Advanced DNS functions │ ├── dns-migration-tools.ts # DNS migration utilities │ ├── cpcode-tools.ts # CP code management │ ├── product-tools.ts # Product catalog operations │ ├── cps-tools.ts # Certificate management │ └── secure-by-default-onboarding.ts # Secure property workflows └── utils/ ├── progress.ts # Progress indicators and formatting ├── errors.ts # Error handling and translation ├── resilience-manager.ts # Circuit breaker and retry logic └── performance-monitor.ts # Performance tracking

Current Capabilities (v1.3.0)

🎯 New in v1.3.0

  • Complete TypeScript Migration: 100% TypeScript codebase with full strict mode
  • Modular Architecture: Services split into focused, independent modules
  • Interactive CLI: User-friendly startup with service selection
  • Enhanced Type Safety: Comprehensive interfaces and type definitions
  • Improved Error Handling: Proper handling of unknown errors in catch blocks
  • Performance Optimization: Reduced memory usage and faster startup times
  • Better Developer Experience: Full IntelliSense support and type checking

✅ Implemented Features

  • Property Manager: Full CRUD operations, version management, activation workflow
  • Edge DNS: Zone management, record operations, bulk imports, DNSSEC support
  • Certificate Management: Default DV certificates with automatic DNS validation
  • Multi-Account Support: Seamless account switching (Akamai intenral and channel partners only)
  • Product Mapping: Intelligent product selection and recommendations
  • CP Code Management: Create and manage CP codes for reporting
  • Secure Property Onboarding: Automated HTTPS property setup workflow
  • DNS Migration: AXFR transfers, zone file imports, provider-specific guides
  • Advanced Search: Property search by name, hostname, edge hostname
  • Progress Tracking: Real-time feedback for long-running operations
  • FastPurge v3: Intelligent content invalidation with rate limiting and queue management
  • Version Control: Comprehensive version comparison, timeline, and rollback
  • Rule Tree Management: Validation, optimization, templates, and merging
  • Bulk Operations: Multi-property cloning, activation, and rule updates

Previous Features (v1.2.0)

  • FastPurge Service: Enterprise-grade content invalidation with intelligent rate limiting and batching
  • Advanced Version Management: Version comparison, timeline tracking, rollback capabilities
  • Rule Tree Optimization: Comprehensive validation, templates, and performance analysis
  • Bulk Operations: Multi-property management with progress tracking
  • Enhanced Search: Multi-criteria property search and health checks

🚧 Upcoming Features

Short term
  • Network Lists: IP and geographic access control list management
  • Image & Video Manager: Policy creation and management
  • Simple Edgeworkers: Edge logic deployment (redirects, forwards, etc.)
Medium term
  • Application Security: WAF rule management and security policies
  • Bot Manager: Bot detection and mitigation configuration
  • Reporting API: Traffic analytics and performance metrics
  • Securiy Metrics: Security trends and metrcis
Long term Roadmap
  • API Definitions and Discovery: API definition and policy management
  • Advanced EdgeWorkers: JavaScript code deployment at the edge
  • Identity & Access Management: User and API client management
  • Media Worflows: Specific feature for Media delivery properties
  • mPulse: Pull data RUM (Real User Monitoring) API integration
  • Property activation diffing: Compare versions before activation
  • Terraform Export: Generate Terraform configurations from existing properties

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details

Support

Acknowledgments

This project uses the Akamai OPEN APIs and follows their guidelines for third-party integrations. Special thanks to the MCP team at Anthropic for creating the Model Context Protocol.

-
security - not tested
A
license - permissive license
-
quality - not tested

MCP server for Akamai APIs. 198 tools covering Property Manager, Edge DNS, CPS, WAF, and reporting. Built with TypeScript, featuring modular architecture, comprehensive testing, and multi-account support. Make Akamai accessible to AI assistants.

  1. Features
    1. 🚀 Multi-Customer Support
    2. 🔍 Intelligent Search
    3. 📊 Comprehensive Property Management
    4. 🔐 SSL/TLS Certificate Management (CPS)
    5. 🌍 DNS Management (Edge DNS)
    6. 🔄 DNS Migration Tools
    7. 🔐 Secure Authentication
    8. 🛠 Developer Experience
  2. Installation
    1. Quick Start (Interactive Mode) 🚀
    2. NPM Package Installation
  3. Configuration
    1. Set up your .edgerc file
    2. Configure Claude Desktop
    3. Choosing the Right Configuration
  4. Usage Examples
    1. List Properties
    2. Search for Properties
    3. Group Management
    4. Multi-Customer Operations
    5. DNS Zone Management
    6. DNS Record Management
  5. Available Tools
    1. FastPurge - Content Invalidation
    2. Property Management - Core Functions
    3. Property Management - Version & Rule Management
    4. Property Management - Hostname & Activation
    5. Property Management - Search & Analysis
    6. Property Management - Bulk Operations
    7. Property Management - Products & CP Codes
    8. Certificate Management
    9. Secure Property Onboarding
    10. DNS Management - Core Functions
    11. DNS Management - Advanced Functions
    12. DNS Migration Tools
  6. Development
    1. Prerequisites
    2. Setup
    3. TypeScript Configuration
    4. Testing
  7. Architecture
    1. Recent Refactoring (v1.3.0)
  8. Current Capabilities (v1.3.0)
    1. 🎯 New in v1.3.0
    2. ✅ Implemented Features
    3. Previous Features (v1.2.0)
    4. 🚧 Upcoming Features
  9. Contributing
    1. License
      1. Support
        1. Acknowledgments

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            MCP server that enables AI assistants to perform SEO automation tasks including keyword research, SERP analysis, and competitor analysis through Google Ads API integration.
            Last updated -
          • -
            security
            A
            license
            -
            quality
            MCP server providing access to ACI.dev managed functions (tools) either directly from specific apps or through meta functions that dynamically discover and execute any available function based on user intent.
            Last updated -
            203
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables AI assistants to discover, retrieve details about, and manage MCP (Model Context Protocol) servers that provide additional tools and capabilities on demand.
            Last updated -
            4
            724
            1
            JavaScript
            AGPL 3.0
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A collection of custom MCP servers providing various AI-powered capabilities including web search, YouTube video analysis, GitHub repository analysis, reasoning, code generation/execution, and web crawling.
            Last updated -
            2
            Python
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/acedergren/alecs-mcp-server-akamai'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server