
fastly/mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Сервер Model Context Protocol (MCP) для управления CDN на основе искусственного интеллекта.
Обзор
Сервер Fastly MCP позволяет клиентам MCP работать с API Fastly. Подключите его к помощнику, такому как Claude Desktop, Claude Code, Gemini CLI, Opencode, Qwen Code, Cline или Swival, дайте ему токен Fastly API, и помощник может искать службы, проверять домены и настройки TLS, проверять трафик и использование, управлять словарями и ACL, очищать контент и вносить изменения конфигурации, когда вы об этом попросите. Этот проект активно развивается и имеет поддержку Tier 1 Fastly с открытым исходным кодом. Политика поддержки описана в документации с открытым исходным кодом Fastly. Вопросы и отзывы приветствуются на форуме сообщества инструментов Fastly. Большинство MCP-серверов используют один инструмент для каждой операции. API Fastly большой, поэтому этот сервер использует меньший рабочий процесс, который проще для помощника. Инструмент поиска находит соответствующие методы API по ключевому слову, имени метода, классу API или пути HTTP.
Обзор (машинный перевод)
Сервер Fastly MCP позволяет клиентам MCP работать с API Fastly.
Подключите его к помощнику, такому как Claude Desktop, Claude Code, Gemini CLI, Opencode, Qwen Code, Cline или Swival, и дайте ему токен Fastly API. После этого ассистент может:
- Поиск услуг и проверка доменов и настроек TLS.
- Проверьте трафик и использование. Управляйте словарями и ACL. Очистите контент и внесите изменения в конфигурацию, когда вы об этом попросите.
Этот проект активно развивается и имеет поддержку Tier 1 Fastly с открытым исходным кодом. Политика поддержки описана в документации с открытым исходным кодом Fastly.
Вопросы и отзывы приветствуются на форуме сообщества инструментов Fastly.
Содержимое
- Как это работает
- Требования
- Установка
- Запуск через HTTP Запуск удаленного сервиса для нескольких пользователей Хорошо использовать сервер Секретное шифрование
- Устранение неполадок
- Местное развитие
- Безопасность
- Лицензия
Как это работает
Большинство MCP-серверов используют один инструмент для каждой операции. Поскольку API Fastly большой, этот сервер использует меньший набор инструментов, которые помощник может использовать вместе.
1.Начните с search, чтобы найти методы API по ключевому слову, имени метода, классу API или пути HTTP.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Fastly MCP Server
The Fastly MCP server lets MCP clients work with the Fastly API.
Connect it to an assistant such as Claude Desktop, Claude Code, Gemini CLI, Opencode, Qwen Code, Cline, or Swival, and give it a Fastly API token. The assistant can then:
- Look up services and inspect domains and TLS settings.
- Check traffic and usage.
- Manage dictionaries and ACLs.
- Purge content and make configuration changes when you ask it to.
This project is actively developed and has Tier 1 Fastly open-source support. The support policy is described in Fastly’s open-source documentation.
Questions and feedback are welcome on the Fastly developer tools community forum.
Contents
- How it works
- Requirements
- Installation
- Running over HTTP
- Running a remote service for several users
- Using the server well
- Secret encryption
- Troubleshooting
- Local development
- Security
- License
How it works
Most MCP servers expose one tool for each operation. Because Fastly’s API is large, this server uses a smaller set of tools that an assistant can use together.
-
Start with
searchto find API methods by keyword, method name, API class, or HTTP path. -
Then use
inspectto get a method’s documentation, including its parameters, return type, and an example. -
Once you have the details, use
executeto run a short JavaScript snippet with theFastlyclient already set up with your API token.
This keeps the tool list small while still covering every method documented in the bundled Fastly client docs.
Requirements
Runtime
Install either Bun or Node.js 24.12.0 or newer; you do not need both to run the server. Node.js is recommended for remote mode.
The examples use bunx, which downloads and runs the package without a global install.
With Node.js, use npx instead.
Use the full package and command names to avoid picking up an unrelated mcp command on your PATH:
- With
bunx:bunx -p @fastly/mcp fastly-mcp - With
npx:npx -p @fastly/mcp fastly-mcp - Explicitly using Bun:
bunx --bun -p @fastly/mcp fastly-mcp
The --bun option runs the package with Bun rather than following its Node.js shebang.
Fastly API token
You also need a Fastly API token. For everyday use, create the narrowest token that fits the work you expect the assistant to do:
- Start with a read-only token for investigation and reporting.
- Use a token with write access only when you actually want the assistant to make changes.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"fastly": {
"command": "bunx",
"args": ["-p", "@fastly/mcp", "fastly-mcp"],
"env": {
"FASTLY_API_TOKEN": "your-token-here"
}
}
}
}