Skip to main content
Glama

FastlyMCP

by Arodoid

FastlyMCP

Fastly MCP brings the power of Fastly's API directly to your AI assistants through the Model Context Protocol (MCP).

image

Fastly's API-First Approach

Fastly's API-first design philosophy means:

  • Everything is an API - Every feature available in the Fastly UI is accessible via API
  • Programmatic Control - Full control over services, configurations, and edge logic
  • Automation Ready - Support for CI/CD workflows and infrastructure as code
  • Real-time Changes - API changes propagate globally in seconds, not minutes or hours

What Can I Do With Fastly API?

Fastly's comprehensive API allows you to:

  • Manage CDN Services - Create, configure, and deploy content delivery services
  • Control Caching - Set up cache strategies and perform instant purges
  • Configure Security - Manage WAF, DDoS protection, and TLS certificates
  • Monitor Performance - Access real-time metrics and historical stats
  • Implement Edge Logic - Deploy custom VCL or Compute@Edge applications
  • Automate Workflows - Integrate with CI/CD pipelines and infrastructure tools

Your API Key Stays Safe!

The AI assistant never sees your Fastly API key. It talks to a local helper (FastlyMCP) which uses the key securely.

What You Can Ask Your AI

With Fastly MCP configured, you can ask your AI assistant questions like:

What You Want To DoExample AI Request
List your services"Show me all my Fastly services"
Get domain details"What domains are configured for my e-commerce service?"
Purge cache"Purge the cache for my product service"
Check traffic"What's the traffic pattern for my main site over the last week?"
View configuration"Show me the backend servers for my API service"
Check performance"What's my current cache hit ratio?"

"What the traffic pattern my for services over the last week?"

"List all my Fastly services and their domains."

"Build an interactive preformance dashboard about my Fastly serivce."

Getting Started

Prerequisites

Connect Your AI Assistant

Configure your AI assistant with:

{ "mcpServers": { "fastly": { "command": "node", "args": ["path/to/fastly-mcp.mjs"], "env": { "FASTLY_API_KEY": "your_fastly_api_key" } } } }

Advanced Operation Examples

Task GoalExample AI Request
Optimize service based on traffic"Analyze the configuration for [service_id/name] and suggest optimizations based on its traffic profile, prioritizing low latency."
Configure for live video"Configure [service_id/name] for optimal live video streaming following the best practices outlined in [link_to_guide_or_doc]."
Find config conflicts"Identify potential configuration conflicts in [service_id/name] compared to standard e-commerce delivery patterns."
Optimize video chunk caching"Optimize caching for [service_id/name] to handle 10-second video chunks efficiently, minimizing origin load."
Enhance WAF security"Review the WAF rules for [service_id/name] and suggest stricter settings to mitigate potential SQL injection attacks."
Set up origin mTLS"Set up Mutual TLS (mTLS) authentication between Fastly and the origin servers for [service_id/name]."
Implement A/B testing (Edge)"Deploy a Compute@Edge function to [service_id/name] that performs A/B testing by routing 10% of users to backend [backend_name]."
Add dynamic image rewriting (VCL)"Write and deploy VCL for [service_id/name] to dynamically rewrite image URLs based on the requesting device's user agent."
Troubleshoot 5xx errors"Analyze logs for [service_id/name] from the past 24 hours to identify the root cause of the recent spike in 5xx errors."

Learn More

License

This project is licensed under the MIT License - see the LICENSE file for details.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables AI assistants to interact with Fastly's CDN API through the Model Context Protocol, allowing secure management of CDN services, caching, security settings, and performance monitoring without exposing API keys.

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Enables AI assistants to interact with the Hive blockchain through the Model Context Protocol, allowing for account info retrieval, content reading/creation, cryptocurrency transfers, and cryptographic operations.
    Last updated -
    13
    37
    2
    TypeScript
    ISC License
    • Apple
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that enables AI assistants to create, update, and delete Dub.co short links through the Dub.co API.
    Last updated -
    3
    11
    5
    JavaScript
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables AI assistants to interact with n8n workflows through natural language, providing access to n8n's complete API functionality including workflow management, user administration, and credential handling.
    Last updated -
    95
    JavaScript
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Fastify plugin that automatically converts API routes into Model Context Protocol tools, enabling AI assistants to directly interact with your API.
    Last updated -
    161
    26
    TypeScript
    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/Arodoid/FastlyMCP'

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