Fastly MCP
MCP server by fastly Verified · npm:@fastly
Fastly MCP is an MCP server that lets AI assistants work with the Fastly API using a Fastly API token. It suits developers and operators who manage Fastly services and want an assistant to inspect or change them.
Install Fastly MCP
Built from the published package, never by AI.
claude mcp add fastly-mcp -- npx -y @fastly/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"fastly-mcp": {
"args": [
"-y",
"@fastly/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"fastly-mcp": {
"args": [
"-y",
"@fastly/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"fastly-mcp": {
"args": [
"-y",
"@fastly/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add fastly-mcp -- npx -y @fastly/mcp{
"mcpServers": {
"fastly-mcp": {
"args": [
"-y",
"@fastly/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add fastly-mcp npx -y @fastly/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the fastly-mcp block.
About
The Fastly MCP server connects MCP clients such as Claude Desktop, Claude Code, Gemini CLI and Cline to the Fastly API. With a Fastly API token, the assistant can look up services, inspect domains and TLS settings, check traffic and usage, manage dictionaries and ACLs, and purge content or make configuration changes when asked.
Instead of exposing one tool per operation, the server offers three tools. The assistant uses search to find API methods, inspect to read their documentation, and execute to run a short JavaScript snippet with a configured Fastly client. The server runs over stdio by default or over HTTP, and it is aimed at developers and operators who work with Fastly services.
Written from the project's README and checked against it.
Tools it gives your assistant
searchFinds Fastly API methods by keyword, method name, API class, or HTTP path.inspectReturns a method's documentation, including parameters, return type, and an example.executeRuns a short JavaScript snippet with the Fastly client set up with your API token.Next-Gen WAF methodsRead-only methods for NGWAF rules, signals, lists, events, and stored request search.Log Explorer and Insights methodsRead-only methods for request log search, rankings, and custom grouped metrics.Observability time series methodRead-only method for request log series and account sustainability figures over time.
What you need
- Fastly API token
- Node.js 24.12.0 or newer, or Bun
- An MCP client such as Claude Desktop, Claude Code, or Cline
- Log Explorer & Insights product enabled (for those methods)
Try asking
- 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.
- Clone the active version of service ABC123, add a backend named origin-api, and stop before activation.
Good to know
- Write-capable tokens let the assistant change production configuration.
- Log Explorer data is sampled and kept for seven days, so counts are estimates.
- HTTP mode listens on loopback by default with no auth.
- A single saved result file holds at most 4 MB.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Fastly MCP
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
Fastly MCP: common questions
Does the Fastly MCP server cover the whole Fastly API?
The source says it covers every method documented in the bundled Fastly client docs, reached through the search, inspect, and execute tools. It uses a small tool set rather than one tool per operation.
Which token should I use with the Fastly MCP server?
The source recommends starting with a read-only token for investigation and reporting. Use a token with write access only when you want the assistant to make changes.
Can the Fastly MCP server run for several users?
Yes. The --remote-http option lets each caller supply their own Fastly API token, and the source links a separate remote HTTP deployment guide.
How do I install Fastly MCP?
In Claude Code run claude mcp add fastly-mcp -- npx -y @fastly/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Fastly MCP the official server?
Fastly MCP is published by npm:@fastly from its verified domain in the official MCP Registry.
Is Fastly MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Fastly MCP safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Fastly MCP?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does Fastly MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
