FastlyMCP

FastlyMCP

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.

Category
访问服务器

README

<img src="https://res.cloudinary.com/brandpad/image/upload/c_scale,dpr_auto,f_auto,w_1792/v1713826774/28444/tachometer-white-png" alt="Fastly Logo" height="25"> FastlyMCP smithery badge

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

<a href="https://github.com/Arodoid/FastlyMCP/stargazers"><img src="https://img.shields.io/github/stars/Arodoid/FastlyMCP" alt="Stars Badge"/></a> <a href="https://github.com/Arodoid/FastlyMCP/network/members"><img src="https://img.shields.io/github/forks/Arodoid/FastlyMCP" alt="Forks Badge"/></a> <a href="https://github.com/Arodoid/FastlyMCP/pulls"><img src="https://img.shields.io/github/issues-pr/Arodoid/FastlyMCP" alt="Pull Requests Badge"/></a> <a href="https://github.com/Arodoid/FastlyMCP/issues"><img src="https://img.shields.io/github/issues/Arodoid/FastlyMCP" alt="Issues Badge"/></a>

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 Do Example 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?"

<img src="https://github.com/user-attachments/assets/14958973-b8a9-426b-aa27-470bea012d7d" alt="2025-04-16-09-13-35" width="500"/>

"List all my Fastly services and their domains."

<img src="https://github.com/user-attachments/assets/08550182-b3d9-4534-8bf4-bec7cb951465" alt="2025-04-16-09-13-35" width="500"/>

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

<img src="https://github.com/user-attachments/assets/542b0b42-af5e-4a18-b88a-5ab2eee22214" alt="2025-04-16-09-13-35" width="600"/>

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 Goal Example 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选