Guide · Amazon S3 Express One Zone · MCP Server Caching

S3 Express One Zone for MCP Servers — Ultra-Low Latency Hot Cache with Directory Buckets

Amazon S3 Express One Zone is a high-performance, single-AZ storage class that delivers single-digit millisecond PUT and GET latency — roughly 10× faster than standard S3. For MCP servers where tool response latency directly affects user experience in AI assistants, Express One Zone can serve as a high-throughput object cache for frequently accessed data: pre-computed embeddings, tool schemas, rate-limit counters (via conditional PutObject), LLM prompt templates, and intermediate computation results. Express One Zone uses a different bucket type — called a directory bucket — with a distinct naming convention, a session-based authentication model that reduces per-request signing overhead, and a simplified API surface. This guide covers directory bucket creation, the Node.js SDK integration, the CreateSession auth flow, latency and cost tradeoffs versus Standard S3, and what Express One Zone does not support (versioning, replication, Object Lock, SSE-KMS) so you can decide when it is and isn't the right tool.

TL;DR

S3 Express One Zone directory bucket naming format: {base-name}--{az-id}--x-s3 (e.g., mcp-cache--use1-az4--x-s3). The @aws-sdk/client-s3 handles CreateSession automatically when you point it at a directory bucket — no code change needed beyond using the correct bucket name. Storage costs ~$0.16/GB/month (7× more than Standard S3), but GET requests cost $0.0004/1,000 (12× cheaper than Standard's $0.0004/1,000 for GET — rates are reversed). Express One Zone excels when your MCP server makes thousands of object requests per second and needs <5 ms latency. It does not support versioning, replication, Object Lock, SSE-KMS, or S3 event notifications — do not use it for data that needs WORM compliance or cross-region durability.

Directory bucket naming and AZ IDs

Unlike general purpose buckets (which are region-scoped), Express One Zone directory buckets are AZ-scoped. The bucket name encodes the AZ using an AZ ID suffix:

Format: {bucket-base-name}--{az-id}--x-s3

Examples:
  mcp-cache--use1-az4--x-s3       (us-east-1, AZ 4)
  mcp-hot--usw2-az2--x-s3         (us-west-2, AZ 2)
  mcp-express--euw1-az1--x-s3     (eu-west-1, AZ 1)

AZ IDs (like use1-az4) are stable cross-account identifiers, unlike AZ names (like us-east-1a) which map to different physical AZs per account. Use AZ IDs — not AZ names — in directory bucket names. Find your AZ IDs:

aws ec2 describe-availability-zones \
  --region us-east-1 \
  --query 'AvailabilityZones[*].{Name:ZoneName,Id:ZoneId}' \
  --output table

# Output:
# us-east-1a | use1-az1
# us-east-1b | use1-az2
# us-east-1c | use1-az3
# us-east-1d | use1-az4   ← use this in bucket name, not 'us-east-1d'

For best performance, place the directory bucket in the same AZ as your compute: ECS Fargate task, Lambda function, App Runner instance, or EC2 instance. Cross-AZ data transfer to a directory bucket adds latency and costs $0.01/GB.

Creating a directory bucket

aws s3api create-bucket \
  --bucket mcp-cache--use1-az4--x-s3 \
  --region us-east-1 \
  --create-bucket-configuration '{
    "Location": {
      "Type": "AvailabilityZone",
      "Name": "use1-az4"
    },
    "Bucket": {
      "Type": "Directory",
      "DataRedundancy": "SingleAvailabilityZone"
    }
  }'

Or via the Node.js SDK:

import { S3Client, CreateBucketCommand, BucketType, DataRedundancy } from "@aws-sdk/client-s3";

const s3 = new S3Client({ region: "us-east-1" });

await s3.send(new CreateBucketCommand({
  Bucket: "mcp-cache--use1-az4--x-s3",
  CreateBucketConfiguration: {
    Location: {
      Type: "AvailabilityZone",
      Name: "use1-az4",
    },
    Bucket: {
      Type: BucketType.Directory,
      DataRedundancy: DataRedundancy.SingleAvailabilityZone,
    },
  },
}));

Node.js SDK integration — zero code change required

The @aws-sdk/client-s3 handles the Express One Zone CreateSession authentication automatically when it detects a directory bucket name (--x-s3 suffix). Your GetObject/PutObject/DeleteObject code is identical to standard S3:

import { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3";

// S3Client works with both standard and directory buckets
const s3 = new S3Client({ region: "us-east-1" });

const EXPRESS_BUCKET = "mcp-cache--use1-az4--x-s3";

// Store a hot tool result — same API as standard S3
export async function putHotCache(key: string, value: unknown, ttlSeconds: number): Promise<void> {
  await s3.send(new PutObjectCommand({
    Bucket: EXPRESS_BUCKET,
    Key: key,
    Body: JSON.stringify(value),
    ContentType: "application/json",
    // Express One Zone only supports EXPRESS_ONEZONE storage class — do not set StorageClass
    // (omitting it defaults to EXPRESS_ONEZONE automatically for directory buckets)
    Metadata: {
      "expires-at": (Date.now() + ttlSeconds * 1000).toString(),
    },
  }));
}

// Retrieve a hot tool result
export async function getHotCache(key: string): Promise<unknown | null> {
  try {
    const response = await s3.send(new GetObjectCommand({
      Bucket: EXPRESS_BUCKET,
      Key: key,
    }));

    const expiresAt = response.Metadata?.["expires-at"];
    if (expiresAt && Date.now() > parseInt(expiresAt, 10)) {
      // Logically expired — delete and return null
      void s3.send(new DeleteObjectCommand({ Bucket: EXPRESS_BUCKET, Key: key }));
      return null;
    }

    return JSON.parse(await response.Body!.transformToString());
  } catch (err: any) {
    if (err.name === "NoSuchKey") return null;
    throw err;
  }
}

The SDK automatically calls CreateSession to get a 5-minute session token before the first request to a directory bucket, then reuses that token for subsequent requests within the same Lambda warm invocation or long-running process. Session refresh is handled transparently — your code never calls CreateSession directly.

Using Express One Zone as an MCP tool cache

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
import { getHotCache, putHotCache } from "./s3-express-cache.js";
import { fetchWeather } from "./weather-api.js";

const server = new McpServer({ name: "weather", version: "1.0.0" });

server.tool(
  "get_weather",
  "Get current weather for a city",
  { city: z.string() },
  async ({ city }) => {
    const cacheKey = `weather/${city.toLowerCase().replace(/\s+/g, "-")}`;

    // Try Express One Zone cache first (~2ms latency)
    const cached = await getHotCache(cacheKey);
    if (cached) {
      return { content: [{ type: "text", text: JSON.stringify(cached) }] };
    }

    // Cache miss — fetch from upstream API (~200ms+)
    const weather = await fetchWeather(city);

    // Store in Express cache (TTL 5 minutes for weather data)
    await putHotCache(cacheKey, weather, 300);

    return { content: [{ type: "text", text: JSON.stringify(weather) }] };
  }
);

Latency and throughput characteristics

Express One Zone delivers measurably lower latency than Standard S3 for small-to-medium objects, with higher throughput per bucket:

MetricS3 StandardS3 Express One Zone
GET p50 latency (1 KB object, same-AZ compute)~10–30 ms~1–5 ms
PUT p50 latency (1 KB object)~10–30 ms~1–5 ms
Throughput per bucket (requests/second)Effectively unlimited (request rate auto-scales)Effectively unlimited (higher baseline, same auto-scale)
Throughput per prefix (sustained)3,500 PUT / 5,500 GETNo prefix partitioning needed
Latency improvement over Standardbaseline~10× faster

The Standard S3 "3,500 PUT / 5,500 GET per prefix" limit is a prefix-partitioning guidance, not a hard cap — S3 auto-scales but adds latency variance during scaling. Express One Zone eliminates this concern by using a different underlying storage architecture optimized for high request rates with no warm-up.

Pricing comparison

Cost dimensionS3 Standard (us-east-1)S3 Express One Zone (us-east-1)
Storage per GB/month$0.023$0.16 (7× more)
PUT/COPY/POST per 1,000 requests$0.005$0.0025 (2× cheaper)
GET/SELECT per 1,000 requests$0.0004$0.0002 (2× cheaper)
Data transfer out to internet$0.09/GB (first 10 TB)$0.09/GB (same)
Data transfer to same-region computeFree (same-region)Free (same-AZ); $0.01/GB cross-AZ

When Express One Zone wins on cost: High request-rate workloads with small objects. If your MCP server makes 1 million GET requests per day on a 10 GB working set, the lower request cost offsets the higher storage cost within a few days at scale. For low-request, large-object workloads, Standard S3 is cheaper.

Rough crossover: Express One Zone is cheaper than Standard when your request cost savings (from cheaper per-request pricing) exceed the storage premium. At typical MCP cache object sizes (~1–50 KB), Express becomes cost-neutral at roughly 50,000–100,000 requests/day.

What Express One Zone does NOT support

Express One Zone has a significantly reduced feature set compared to Standard S3. Do not use it for data that requires any of these:

FeatureStandard S3Express One Zone
VersioningYesNo
Cross-region replicationYesNo
Object Lock / WORMYesNo
SSE-KMS (customer-managed keys)YesNo (SSE-S3 only)
S3 event notificationsYesNo
S3 InventoryYesNo
S3 Intelligent-TieringYesNo (always EXPRESS_ONEZONE class)
Presigned URLsYesLimited (session-auth complexity)
Multi-AZ durability (99.999999999%)Yes (11 nines)No (single-AZ; AZ failure = data loss)
Bucket policiesYesYes (subset of policy conditions)

The single-AZ durability model means an AZ outage can result in data loss. This is acceptable for caches (data can be recomputed or refetched) but is not acceptable for primary data stores, audit logs, or any data you cannot afford to lose.

IAM permissions for directory buckets

Directory buckets use the same IAM action namespace as standard S3 buckets, with the addition of s3express:CreateSession:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ExpressOnZoneCreateSession",
      "Effect": "Allow",
      "Action": "s3express:CreateSession",
      "Resource": "arn:aws:s3express:us-east-1:ACCOUNT:bucket/mcp-cache--use1-az4--x-s3"
    },
    {
      "Sid": "ExpressOnZoneObjectOps",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:HeadObject"
      ],
      "Resource": "arn:aws:s3express:us-east-1:ACCOUNT:bucket/mcp-cache--use1-az4--x-s3/*"
    }
  ]
}

Note the ARN format for Express One Zone uses s3express as the service and includes the full bucket name with AZ suffix. Without s3express:CreateSession, the SDK will receive AccessDenied even if all object-level permissions are granted.

Common errors and fixes

ErrorCauseFix
AccessDenied on first request to directory bucketMissing s3express:CreateSession IAM permissionAdd s3express:CreateSession to the execution role, scoped to the directory bucket ARN
InvalidBucketNameBucket name does not end in --x-s3 or uses an AZ name instead of AZ IDUse AZ IDs (e.g., use1-az4) not AZ names (us-east-1d); bucket name must follow the exact pattern
NoSuchBucket even though bucket existsRequesting from a different region or AZ than the bucket's AZEnsure the S3Client region matches the bucket's region; Express One Zone bucket must be accessed from within its region
UnsupportedOperation on versioning/replication APIDirectory buckets do not support these featuresUse Standard S3 buckets for data requiring versioning, replication, or Object Lock
High latency despite using ExpressCompute is in a different AZ than the directory bucketPlace Lambda/ECS tasks in the same AZ ID as the directory bucket; cross-AZ adds ~1–2 ms and $0.01/GB transfer cost
InvalidStorageClassExplicitly setting StorageClass on PutObject for a directory bucketOmit StorageClass entirely — directory buckets only support EXPRESS_ONEZONE and it is set automatically

Related guides