Fastly MCP server
Fastly in any MCP client, through Memtro: Fastly does not publish this server. Memtro's Fastly connector reads Fastly through its API with the credentials you connect, and one endpoint hands those tools, every other system you connect and Memtro's memory tools to Claude Code, Cursor, Claude Desktop or anything else that speaks Streamable HTTP, as you.
What the model can do
Fastly CDN: services with their versions, the domains and origin backends of a service, and historical traffic (requests, cache hit ratio, bandwidth, errors and status codes). When asked, purges the cache by URL, surrogate key or everything on a service, and clones, activates, deactivates, locks or comments a service version.
Reads
fastly_servicesFastly services: id, name, type (vcl or wasm), the active version number, latest version, paused, comment and dates.fastly_service_configThe domains and origin backends (name, host, port, TLS, shield) of one Fastly service's active version, or of a version you name.fastly_statsHistorical traffic for one Fastly service, per day, hour or minute (UTC): requests, cache hits, misses, passes, hit ratio, bandwidth in bytes…fastly_service_versionsThe versions of one Fastly service, newest first: number, whether active or locked, comment and dates.
Acts, when you ask
These change something in Fastly. The model is told to use them only when you ask for exactly that, and each one is granted by name: per team on a shared connection, by the owner on a personal one.
fastly_purge_urlPurge one URL from Fastly's cache, on the production environment.fastly_purge_surrogate_keyPurge everything tagged with one surrogate key on a Fastly service.fastly_purge_surrogate_keysPurge up to 256 named surrogate keys on a Fastly service in one request.fastly_purge_allPurge everything cached on one Fastly service, at once and hard (Fastly has no soft purge-all).fastly_clone_versionClone a Fastly service version into a new, unlocked, inactive draft version for editing.fastly_activate_versionActivate a Fastly service version, making it the live configuration for all traffic worldwide within seconds.fastly_deactivate_versionDeactivate a Fastly service version.fastly_lock_versionLock a Fastly service version so it can no longer be edited (permanent for that version; clone it to change anything).fastly_update_version_commentSet the comment on one Fastly service version (a note for people; nothing about traffic changes).
Connect it
First connect Fastly on Dashboard → Connections, then add Memtro to your client once. The Fastly tools appear alongside the tools of everything else you have connected; nothing is configured per connector.
Claude Code
The Memtro plugin registers the server and a skill for when to use it; the tools are then available in every session.
claude plugin marketplace add memtro-org/claude-memtro
claude plugin install memtro@memtro --config api_key=sk-memtro-...Cursor
Add the server to .cursor/mcp.json in the project, or to the global file under ~/.cursor/.
{
"mcpServers": {
"memtro": {
"url": "https://platform.memtro.com/api/mcp",
"headers": {
"Authorization": "Bearer sk-memtro-..."
}
}
}
}Claude Desktop
Create a personal API key on Dashboard → Profile → API keys. In Claude Desktop add an MCP server of type HTTP with URL https://platform.memtro.com/api/mcp and the header Authorization: Bearer sk-memtro-…
OpenCode
A remote server in opencode.json.
{
"mcp": {
"memtro": {
"type": "remote",
"url": "https://platform.memtro.com/api/mcp",
"headers": {
"Authorization": "Bearer sk-memtro-..."
}
}
}
}Pi
One command: pi mcp add memtro --url https://platform.memtro.com/api/mcp --bearer-token-env-var MEMTRO_API_KEY. Tools arrive as mcp__memtro__*. The pi-memtro extension registers it for you, alongside Memtro as the model.
Any other client
Add an MCP server of type HTTP (Streamable HTTP, stateless) at https://platform.memtro.com/api/mcp with the header Authorization: Bearer sk-memtro-.... Codex, Zed, Windsurf, Cline and the SDKs all take a remote server this way.
Who may use it
The key identifies the person, and the server offers that person the tools they may use everywhere else in Memtro. A shared Fastly connection is used by the teams an administrator granted it to, tool by tool, on the Permissions page; a personal connection is used by its owner alone, and its tools that act stay off until the owner allows them. See Teams and permissions and Connectors.
Ask it like this
- › Which Fastly services do we run, and which version is active?
- › Which domains does the www service serve?
- › What was our cache hit ratio on www last week?
- › How many 5xx errors did the API service return yesterday, hour by hour?
- › Purge https://www.acme.com/pricing from the cache
Questions
- Is this an official Fastly MCP server?
- No. It is Memtro's MCP server with Memtro's Fastly connector behind it: the connector reads Fastly through its API with the credentials you connect on Dashboard → Connections, and Fastly publishes nothing here. The same endpoint carries every other system you connect and Memtro's memory tools.
- What does it cost?
- Nothing on top of Memtro. One price per organisation by its number of users, from $50 a month for up to 10 users after a 7-day free trial, with every connector, the MCP server, jobs and memory included. You bring your own model keys.
- Can it change anything in Fastly?
- Only when you ask, and only what it has been granted: purge one URL from the CDN cache (hard, or soft to mark it stale); purge everything tagged with one surrogate key on a service; purge up to 256 named surrogate keys on a service; purge everything cached on a service (all traffic goes to origin until the cache refills); clone a service version into a new editable draft; activate a service version (changes live traffic handling); deactivate a service version; lock a service version against edits (permanent for that version); set the comment on a service version. Every other tool reads, searches or lists. An administrator grants each acting tool by name per team, and a personal connection acts only after its owner allows it.
- Which clients work?
- Any MCP client that speaks Streamable HTTP: Claude Code, Cursor, Claude Desktop, OpenCode, Codex, Zed, Windsurf, Cline and the Anthropic and OpenAI SDKs. There is no local process to run; the server is remote and authenticated with your key.