
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that connects assistants to the Fastly API using a small set of search, inspect, and execute tools.
Fastly MCP Server is cataloged as an MCP server attributed to fastly. An MCP server that connects assistants to the Fastly API using a small set of search, inspect, and execute tools. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Fastly MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It writes the full result to a JSON file and returns the path in resultFile along with a short preview.
Yes, remote HTTP mode is intended for deployments where each caller supplies their own Fastly API token.
Recognized tokens are replaced with encrypted values that look like {ENCRYPTED:...} before reaching the assistant, and the server decrypts them when sent back unchanged.
README.md · ab574d217fca · Fetched 2026-11-13 11:04:42 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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:
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.
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 search to find API methods by keyword, method name, API class, or HTTP path.
Then use inspect to get a method's documentation, including its parameters, return type, and an example.
Once you have the details, use execute to run a short JavaScript snippet with the Fastly client 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.
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:
bunx: bunx -p @fastly/mcp fastly-mcpnpx: npx -p @fastly/mcp fastly-mcpbunx --bun -p @fastly/mcp fastly-mcpThe --bun option runs the package with Bun rather than following its Node.js shebang.
You also need a Fastly API token. For everyday use, create the narrowest token that fits the work you expect the assistant to do:
Keep the token in your MCP client configuration or shell environment as FASTLY_API_TOKEN.
Do not paste production tokens into prompts or commit them into a repository.
Choose your client:
Codex · Claude Code · Claude Desktop · Gemini CLI · Opencode · Qwen Code · Cline · Swival
Most MCP clients accept a JSON block that describes how to start a server.
For example, this configuration runs the server with bunx and passes the API token through the environment:
{
"mcpServers": {
"fastly": {
"command": "bunx",
"args": ["-p", "@fastly/mcp", "fastly-mcp"],
"env": {
"FASTLY_API_TOKEN": "your-token-here"
}
}
}
}
If you already export FASTLY_API_TOKEN in the shell that starts your MCP client, you can generally omit the env block (some agents may still require it, though).
Keeping the token in the client configuration is often simpler for desktop apps, while shell environment variables are often cleaner for terminal tools.
Either runtime works for the local server.
The bundled plugin launches through bunx:
npx as the MCP launch command with the same arguments.--bun before -p in the launch arguments.Make sure your chosen launcher is available on Codex's PATH.
Add the repository as a plugin marketplace, then install the plugin:
codex plugin marketplace add https://github.com/fastly/mcp
codex plugin add fastly-mcp@fastly-local
The add command installs and enables the plugin.
Set FASTLY_API_TOKEN in the environment that starts Codex, then restart Codex so the local server receives it.
The plugin runs over stdio with secret encryption enabled; it does not require OAuth or a hosted MCP endpoint.
Check that the plugin is installed and enabled:
codex plugin list --marketplace fastly-local
Run the server through bunx:
claude mcp add fastly -- bunx -p @fastly/mcp fastly-mcp
Then make sure FASTLY_API_TOKEN is available in the environment where Claude Code starts, or configure the token through your normal Claude Code MCP settings.
Add the generic JSON block above to Claude Desktop's configuration file.
~/Library/Application Support/Claude/claude_desktop_config.json.%APPDATA%\Claude\claude_desktop_config.json.~/.config/Claude/claude_desktop_config.json.Restart Claude Desktop after changing the file.
Add the generic JSON block to ~/.gemini/settings.json.
If Gemini CLI is started from a shell that already exports FASTLY_API_TOKEN, you can leave the token out of the JSON.
Opencode uses a slightly different shape.
Put this in opencode.json in your project, or in ~/.config/opencode/opencode.json for a global server:
{
"mcp": {
"fastly": {
"type": "local",
"command": ["bunx", "-p", "@fastly/mcp", "fastly-mcp"],
"environment": {
"FASTLY_API_TOKEN": "your-token-here"
}
}
}
}
Add the generic JSON block to ~/.qwen/settings.json, or to .qwen/settings.json in a specific project.
Open Cline MCP settings, choose the global or project MCP configuration, and paste the generic JSON block.
Add this to swival.toml in your project:
[mcp_servers.fastly]
command = "bunx"
args = ["-p", "@fastly/mcp", "fastly-mcp"]
env = { FASTLY_API_TOKEN = "your-token-here" }
If FASTLY_API_TOKEN is already set in the environment where Swival runs, the env line is optional.
Swival can also read the generic JSON block from .swival/mcp.json.
By default the server speaks MCP over stdio, which is what every desktop and CLI client expects.
To share one Fastly API token across trusted clients, start the server in HTTP mode:
bunx -p @fastly/mcp fastly-mcp --transport http
That listens on http://127.0.0.1:8231/mcp. Loopback-only by default, no auth.
Then configure your client with the server's URL:
{
"mcpServers": {
"fastly": {
"type": "streamable-http",
"url": "http://127.0.0.1:8231/mcp"
}
}
}
The exact shape varies by client; check your client's documentation for the streamable-http entry format.
Nothing is kept between requests, so the server sits behind a load balancer without any sticky-session configuration.
Authorization: Bearer on the loopbackYou can set FASTLY_MCP_HTTP_AUTH_TOKEN even on a loopback bind.
There is no security harm in doing so, and it makes the configuration portable to a non-loopback deploy later.
--help for the full flag listEvery flag described above shows up in bunx -p @fastly/mcp fastly-mcp --help.
Use --remote-http when each caller should supply their own Fastly API token.
The remote HTTP deployment guide covers credentials, client configuration, HTTPS proxies, Docker, systemd, sizing, logging, and deployment tests.
A Fastly API token can expose real production configuration, and write-capable tokens can change it.
The server does not guess your intent, so the safest workflow is to be explicit about whether the assistant may change anything.
For read-only work, say that directly.
For example, ask the assistant to list services, find the active version for a service, summarize backends, check TLS status, inspect logging endpoints, or report recent traffic without making changes.
Start by naming the service, domain, version, dictionary, ACL, or backend the assistant should work on.
Ask it to show the method it plans to call before making the change.
If the change affects service configuration, it is often better to clone a service version, edit the clone, show you the diff or summary, and activate only after you approve.
Good first prompts look like this:
List my Fastly services and show the active version for each one. Do not make changes.
Find the service serving www.example.com and summarize its domains, backends, and health checks.
Inspect the API method for purging one URL, then show me the exact call you would make before running it.
Clone the active version of service ABC123, add a backend named origin-api, and stop before activation.
If an answer looks too broad, ask the assistant to narrow the result in code before returning it.
Targeted calls are easier to review and less likely to leak irrelevant information.
The server adds read-only NGWAF methods covering:
The server adds read-only Log Explorer & Insights methods covering:
The service needs the Log Explorer & Insights product enabled.
Fastly samples this data and keeps it for seven days. So these methods answer "what did the slow requests look like" rather than "how many requests were there". Ask for stats when you need exact counts.
The server adds a read-only time series method, over two kinds of data:
Request log series need the Log Explorer & Insights product enabled. They come from the same sampled data, so they are estimates rather than totals.
A result is returned in full whenever it fits in one response, no matter how many records it holds: a list of several hundred users comes back complete.
A result too large for one response is still not thrown away.
The server writes all of it to a JSON file, and the response carries the path in resultFile together with a short preview in result.
Ask the assistant to read that file when you want every record, instead of running the query again.
Location: files are written to fastly-mcp-results under the system temporary directory, one result per file, readable only by the account running the server.
Size: a single file holds at most 4 MB; a result larger than that is described in the response and the assistant is asked to return less. The same ceiling applies to what one Fastly API call may hand to the code: a larger response fails that call with an error asking for paging or filtering, rather than arriving with pieces silently missing.
Retention: the newest twenty files are kept, and every file is removed after six hours whether or not the server has been busy since.
Configuration: use --result-dir <path> to put them somewhere else, or --result-dir off to turn the feature off and have oversized results described rather than stored.
When secret encryption is enabled, secrets are encrypted in the whole result before it is stored or cut down to a preview. Reading the file cannot reveal a value the response would have hidden, and neither can a preview that happens to stop in the middle of a token.
A remote server never writes result files, because its callers could not read them.
Fastly API responses can contain credentials, keys, or other sensitive values. In local mode, the server returns API output to the MCP client as it came back from Fastly by default.
Remote mode always encrypts recognized secrets with a key derived from the caller's token, as described in the remote HTTP guide.
If you want an additional layer of protection before tool output reaches the model, enable secret encryption.
When encryption is enabled, each recognized token is replaced with an encrypted value that looks like {ENCRYPTED:...} before it reaches the assistant.
The same token always gets the same encrypted value, so the assistant can refer to it in later calls.
When the assistant sends an encrypted value back, the server decrypts it before the tool runs. If the value was changed, cut short, or made with a different key, the server returns an error instead of guessing.
If a result can't be encrypted safely, the whole result is withheld. This happens when it contains a token longer than 512 characters, or text that already looks like an encrypted value.
To enable encryption in an MCP configuration that uses bunx, add --encrypt-secrets after the binary name:
{
"mcpServers": {
"fastly": {
"command": "bunx",
"args": ["-p", "@fastly/mcp", "fastly-mcp", "--encrypt-secrets"],
"env": {
"FASTLY_API_TOKEN": "your-token-here"
}
}
}
}
You can also enable it with an environment variable:
{
"mcpServers": {
"fastly": {
"command": "bunx",
"args": ["-p", "@fastly/mcp", "fastly-mcp"],
"env": {
"FASTLY_API_TOKEN": "your-token-here",
"FASTLY_MCP_ENCRYPT_SECRETS": "true"
}
}
}
}
For local encryption, a new key is generated each time the server starts, so encrypted values stop working after a restart.
Setting FASTLY_MCP_ENCRYPT_KEY to exactly 32 hex characters, which is a 16-byte key, keeps the same key across restarts, so older encrypted values keep working.
You can also set FASTLY_MCP_ENCRYPT_TWEAK if you want a separate tweak value for domain separation.
Encrypted values only work with the tweak they were made with.
Secret encryption is a safety feature, not a complete data classification system. It only encrypts values that match known token patterns.
You should still use least-privilege Fastly tokens and avoid asking the assistant to retrieve secrets unless the task requires it.
For a local server, if Fastly API calls fail, check that FASTLY_API_TOKEN is set in the environment seen by the MCP server.
Search and inspect still work without a token because they use bundled documentation, but real API calls need one.
A failed call reports what the API said, so the answer is usually in the tool output itself:
{
"error": "HTTP 401 Unauthorized",
"status": 401,
"body": "{\"msg\":\"Provided credentials are missing or invalid\"}",
"hint": "Fastly rejected the API token. Check that FASTLY_API_TOKEN is current and has not been revoked."
}
The hint on a 401 or 403 distinguishes the three cases that need different fixes:
These fields are also available inside execute, so a snippet can catch a failure and read e.status or e.body itself.
If the assistant cannot find the right method, ask it to use broader search terms such as service, domain, backend, purge, tls, logging, dictionary, acl, vcl, stats, or a fragment of the HTTP path from Fastly's API docs.
If a result is unexpectedly empty, ask the assistant to return the raw API response first.
Fastly client methods return values directly, not inside a .result wrapper.
If a response contains a preview instead of the data, look for a resultFile path in the same response: the complete result was written there because it did not fit in one response.
Ask the assistant to read that file, or to filter, page, or select fields in the JavaScript code it runs.
If resultFile is missing, result files are either disabled (--result-dir off) or the server could not write one, and the hint field says which.
Since each execute call has a 30-second limit, split the work into smaller calls if it times out.
The server entry point is src/index.js.
Bun is the primary development runtime:
bun run src/index.js
The main checks are:
bun test
bun run lint
Install both Bun and Node to run the tests.
The known Bun 1.3.11 bug is marked as an expected failure so fixes in future versions get noticed.
The API documentation in docs/ comes from the Fastly JavaScript client.
The server uses it to build the search index at startup.
package.json pins that client to an exact version so the docs always describe the code that runs.
Regenerate them with:
bun run update-docs
Without an argument, the script fetches the release/v<version> tag matching the pinned version.
Pass a branch or tag to fetch something else, for instance while upgrading the client.
An upgrade changes the pin in package.json, package-lock.json and bun.lock together.
Please report security issues through Fastly's security issue reporting process, as described in SECURITY.md.
MIT. See LICENSE for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Fastly MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-fastly)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.