Fastly MCP brings the power of Fastly's API directly to your AI assistants through the Model Context Protocol (MCP).
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add fastly --env FASTLY_API_KEY='<FASTLY_API_KEY>' -- node path/to/fastly-mcp.mjs~/.codex/config.toml
[mcp_servers.fastly]
command = "node"
args = ["path/to/fastly-mcp.mjs"]
env = { FASTLY_API_KEY = "<FASTLY_API_KEY>" }
# codex mcp add fastly --env FASTLY_API_KEY='<FASTLY_API_KEY>' -- node path/to/fastly-mcp.mjs~/.cursor/mcp.json
{
"mcpServers": {
"fastly": {
"command": "node",
"args": [
"path/to/fastly-mcp.mjs"
],
"env": {
"FASTLY_API_KEY": "<FASTLY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"fastly": {
"type": "stdio",
"command": "node",
"args": [
"path/to/fastly-mcp.mjs"
],
"env": {
"FASTLY_API_KEY": "<FASTLY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"fastly": {
"command": "node",
"args": [
"path/to/fastly-mcp.mjs"
],
"env": {
"FASTLY_API_KEY": "<FASTLY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"fastly": {
"command": "node",
"args": [
"path/to/fastly-mcp.mjs"
],
"env": {
"FASTLY_API_KEY": "<FASTLY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"fastly": {
"command": "node",
"args": [
"path/to/fastly-mcp.mjs"
],
"env": {
"FASTLY_API_KEY": "<FASTLY_API_KEY>"
}
}
}
}Environment variables
FASTLY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.