Akamai CDN MCP
MCP server for Akamai CDN, enabling cache purging by URL (invalidate/delete) and read-only inspection of property configs, rule trees, and activations. Credentials are managed server-side with EdgeGrid signing, so clients need no credentials.
README
Akamai CDN MCP
An MCP server, built on Zuplo, that exposes two Akamai CDN APIs as tools for MCP clients such as Claude Desktop: Fast Purge (CCU v3) for cache purging by URL, and Property Manager (PAPI v1) for read-only viewing of property configs, rule trees, and activation status.
Unlike a passthrough-token gateway, this project holds Akamai EdgeGrid credentials server-side and computes a fresh HMAC-SHA256 signature for every request. MCP clients supply no credentials of their own — anyone who can reach this gateway's /mcp endpoint can purge cache and read property configs on the configured account, so treat the deployed URL itself as sensitive.
Tools exposed
| Tool | Akamai API operation | Effect |
|---|---|---|
delete-by-url |
CCU v3 POST /delete/url/{network} |
Destructive/write. Immediately removes URLs from cache. |
invalidate-by-url |
CCU v3 POST /invalidate/url/{network} |
Destructive/write. Marks URLs stale (revalidated on next request). |
check-purge-rate-limit-status |
CCU v3 POST /rate-limit-status/{purge-type} |
Read-only. Account-wide rate-limit tokens remaining for a purge object type — not a lookup by purge ID (no such endpoint exists in CCU v3). |
get-contracts |
PAPI v1 GET /contracts |
Read-only. |
get-groups |
PAPI v1 GET /groups |
Read-only. |
get-properties |
PAPI v1 GET /properties |
Read-only. |
get-property |
PAPI v1 GET /properties/{propertyId} |
Read-only. |
get-property-versions |
PAPI v1 GET /properties/{propertyId}/versions |
Read-only. |
get-property-version-rules |
PAPI v1 GET /properties/{propertyId}/versions/{propertyVersion}/rules |
Read-only. |
get-property-activations |
PAPI v1 GET /properties/{propertyId}/activations |
Read-only. |
get-property-activation |
PAPI v1 GET /properties/{propertyId}/activations/{activationId} |
Read-only. |
No Property Manager write/activation endpoints are exposed by design.
Project structure
| Path | Role |
|---|---|
config/routes.oas.json |
Single source of truth for routing — an OpenAPI document where every path/operation is a route with an x-zuplo-route extension. Both the CCU/PAPI proxy routes and the /mcp MCP-server route are defined here. |
config/policies.json |
Named policy instances routes reference by name. Registers the EdgeGrid signing policy twice, once per upstream API (edgegrid-signing-ccu-inbound, edgegrid-signing-papi-inbound), since each needs a different apiPathPrefix. |
modules/edgegrid-signing-inbound.ts |
Computes the Akamai EdgeGrid EG1-HMAC-SHA256 signature for every request and injects it as the Authorization header, before urlForwardHandler forwards to Akamai. Uses the Web Crypto API (crypto.subtle), not the Node-crypto-based official akamai-edgegrid package, for edge-runtime compatibility. |
Deploy your own copy
This repo is meant to be forked and deployed to your own Zuplo account — your Akamai EdgeGrid credentials live in whichever Zuplo project runs this gateway, so it should be one you control.
- Fork this repository.
- In the Zuplo portal, create a new project and connect it to your fork.
- Under Settings > Environment Variables, set these as secrets, for whichever environment you're deploying (Working Copy / Preview / Production don't share values):
EDGERC_CLIENT_TOKENEDGERC_CLIENT_SECRETEDGERC_ACCESS_TOKENEDGERC_HOST(bare hostname, no scheme)
- Deploy the environment from the portal, and redeploy any time you change an env var — changes don't take effect until redeployed. Note the deployed URL; your MCP endpoint is
https://<your-project>.zuplo.app/mcp.
Connect from Claude Desktop
Since auth is server-side, no per-client header is needed:
{
"mcpServers": {
"akamai-cdn": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://<your-project>.zuplo.app/mcp"]
}
}
}
Restart Claude Desktop after editing claude_desktop_config.json.
Local development
npm install
npm run dev
Starts the gateway at http://localhost:9000 (route designer at :9100). Requires Node.js >= 24 for the Zuplo CLI.
Before testing through /mcp, smoke-test signing directly against a CCU or PAPI route (e.g. curl -X POST localhost:9000/invalidate/url/staging -d '{"objects":["https://example.com/test"]}') with real credentials in a local .env, to isolate signing bugs from MCP-protocol issues. Then verify the full tools/call path via mcp-remote or Claude Desktop before trusting a deploy — a signing bug that passes direct-route tests can still surface only when called through the actual MCP client.
Always test network=staging and invalidate-by-url before ever exercising network=production or delete-by-url.
Extending
All routing lives in config/routes.oas.json. To expose another CCU or PAPI operation as an MCP tool:
- Add it as a new OpenAPI path/operation with a unique
operationId, anx-zuplo-route.handlerofurlForwardHandlerpointed at the matchingbaseUrl(https://${env.EDGERC_HOST}/ccu/v3or.../papi/v1— note the${env.VAR}syntax, not$env(VAR), is required specifically insidebaseUrl), the matchingedgegrid-signing-{ccu,papi}-inboundpolicy, andx-zuplo-route.mcp.type: "tool". - Add a matching
{ "file": "./config/routes.oas.json", "id": "<operationId>" }entry to the/mcproute'smcpServerHandleroperationsarray.
See Akamai's CCU v3 and PAPI v1 API references for other available operations.
Guardrails
/mcpis restricted by source IP. Theip-address-restriction-inboundpolicy (added via the Zuplo portal) allows onlyALLOWED_IP_1/ALLOWED_IP_2to reach/mcp— set these as env vars for the environment the same way as theEDGERC_*secrets. Requests from any other IP are rejected before reaching the EdgeGrid signing policy.- No confirm-before-purge policy. Tool descriptions ask the calling model to confirm destructive purges with the user, but nothing server-side enforces it. A sibling project's equivalent guardrail passed every direct/local test but broke unexplainably through Claude Desktop, so this is deferred until EdgeGrid signing itself has been verified stable end-to-end in production.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.