Guide · Amazon S3 · Multi-Region Distribution

S3 Multi-Region Access Points for MCP Servers — Global Artifact Distribution and Failover

When an MCP server is deployed across multiple AWS regions — a common pattern for latency-sensitive AI applications — it typically needs access to the same set of artifacts (model weights, vector indexes, tool schemas, prompt templates) in each region. The naive approach is to maintain separate bucket ARNs per region in configuration and switch based on the deployment region. S3 Multi-Region Access Points (MRAP) solve this cleanly: a single global ARN and endpoint that routes requests to the nearest S3 bucket using AWS Global Accelerator's anycast routing, with configurable failover when a bucket becomes unhealthy. This guide covers MRAP creation, cross-region replication setup (required for read consistency), routing policy management for active-active and active-passive topologies, the Node.js SDK integration, and cost tradeoffs to decide when MRAP is worth the complexity.

TL;DR

S3 Multi-Region Access Points create a single global ARN (arn:aws:s3::ACCOUNT:accesspoint/MRAP_ALIAS/object/KEY) backed by S3 buckets in 2+ regions. Enable bidirectional cross-region replication between all backing buckets before using MRAP for reads — MRAP routes to the nearest bucket but does not wait for replication, so a recently-written object may 404 when read from the wrong region if replication hasn't completed. MRAP creation takes 5–10 minutes (async via CreateMultiRegionAccessPoint). Request-based pricing: $0.0033/GB data transferred through the MRAP endpoint. Use MRAP for read-heavy artifact distribution (model weights, embeddings) across 2–4 regions. For write-heavy or latency-critical paths, write directly to the primary bucket and read via MRAP.

When to use MRAP vs per-region buckets

ScenarioRecommendation
MCP server deployed in 1 region onlyStandard S3 bucket — MRAP adds complexity and cost with no benefit
MCP server deployed in 2–4 regions, reads dominant (model weights, shared indexes)MRAP — single ARN, lowest-latency routing, clean failover
MCP server deployed multi-region, writes are frequent and must be consistent immediatelyPer-region buckets + application-level routing — MRAP eventual consistency is a risk
Disaster recovery: active-passive with S3 failoverMRAP with failover routing policy — switch primary region in <60 seconds
Large objects (>100 MB) transferred frequently cross-regionDirect bucket access per region — MRAP $0.0033/GB premium adds up fast

Creating a Multi-Region Access Point

MRAP creation is an async operation on the S3 Control plane. It takes 5–10 minutes to provision. Use the account-level S3 Control client (not the standard S3 client):

import { S3ControlClient, CreateMultiRegionAccessPointCommand } from "@aws-sdk/client-s3-control";
import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts";

const sts = new STSClient({ region: "us-east-1" });
const { Account } = await sts.send(new GetCallerIdentityCommand({}));

// S3 Control MRAP operations use us-east-1 regardless of your buckets' regions
const s3control = new S3ControlClient({ region: "us-east-1" });

const response = await s3control.send(new CreateMultiRegionAccessPointCommand({
  AccountId: Account!,
  ClientToken: "mcp-mrap-20261113",  // Idempotency token
  Details: {
    Name: "mcp-artifacts-global",
    PublicAccessBlock: {
      BlockPublicAcls: true,
      IgnorePublicAcls: true,
      BlockPublicPolicy: true,
      RestrictPublicBuckets: true,
    },
    Regions: [
      { Bucket: "mcp-artifacts-us-east-1" },     // Primary (us-east-1)
      { Bucket: "mcp-artifacts-eu-west-1" },     // Secondary (eu-west-1)
      { Bucket: "mcp-artifacts-ap-southeast-1" }, // Tertiary (ap-southeast-1)
    ],
  },
}));

// response.RequestTokenARN — use to poll GetMultiRegionAccessPointOperationStatus
console.log("MRAP creation request token:", response.RequestTokenARN);

Poll for completion:

import { GetMultiRegionAccessPointOperationCommand } from "@aws-sdk/client-s3-control";

async function waitForMRAPCreation(requestTokenArn: string, accountId: string): Promise<void> {
  const s3control = new S3ControlClient({ region: "us-east-1" });

  while (true) {
    const status = await s3control.send(new GetMultiRegionAccessPointOperationCommand({
      AccountId: accountId,
      RequestTokenARN: requestTokenArn,
    }));

    const state = status.AsyncOperation?.RequestStatus;
    console.log("MRAP creation status:", state);

    if (state === "SUCCEEDED") break;
    if (state === "FAILED") throw new Error("MRAP creation failed");

    await new Promise(r => setTimeout(r, 30_000)); // Poll every 30 seconds
  }
}

// After creation, get the MRAP alias for use in bucket/key references
import { GetMultiRegionAccessPointCommand } from "@aws-sdk/client-s3-control";

const mrapInfo = await s3control.send(new GetMultiRegionAccessPointCommand({
  AccountId: Account!,
  Name: "mcp-artifacts-global",
}));

const mrapAlias = mrapInfo.AccessPoint?.Alias;
// alias format: UNIQUE_ID.mrap.awsglobalaccelerator.com
// Use in SDK calls as the bucket parameter
console.log("MRAP alias:", mrapAlias);

Cross-region replication — required for read consistency

MRAP routes requests to the geographically nearest bucket, but it does not guarantee that object just written to mcp-artifacts-us-east-1 is immediately available in mcp-artifacts-eu-west-1. Without replication, a client in EU reading an object just written from US may get a 404.

Enable bidirectional replication between all MRAP backing buckets. For 3 regions (US, EU, AP), you need replication rules on each bucket pointing to the other two:

import { S3Client, PutBucketReplicationCommand } from "@aws-sdk/client-s3";

// First, create IAM role with s3:ReplicateObject, s3:GetObjectVersionForReplication, etc.
const REPLICATION_ROLE_ARN = "arn:aws:iam::ACCOUNT:role/S3MRAPReplicationRole";

// Enable versioning on all buckets (required for replication)
// (run this for each bucket in each region before enabling replication)

// Set up replication from us-east-1 → eu-west-1 and ap-southeast-1
const usEast1 = new S3Client({ region: "us-east-1" });

await usEast1.send(new PutBucketReplicationCommand({
  Bucket: "mcp-artifacts-us-east-1",
  ReplicationConfiguration: {
    Role: REPLICATION_ROLE_ARN,
    Rules: [
      {
        ID: "replicate-to-eu",
        Status: "Enabled",
        Filter: {}, // Replicate all objects
        Destination: {
          Bucket: "arn:aws:s3:::mcp-artifacts-eu-west-1",
          ReplicationTime: {
            Status: "Enabled",
            Time: { Minutes: 15 }, // S3 Replication Time Control: 99.99% within 15 min
          },
          Metrics: {
            Status: "Enabled",
            EventThreshold: { Minutes: 15 },
          },
          StorageClass: "STANDARD",
        },
        DeleteMarkerReplication: { Status: "Enabled" },
      },
      {
        ID: "replicate-to-ap",
        Status: "Enabled",
        Filter: {},
        Destination: {
          Bucket: "arn:aws:s3:::mcp-artifacts-ap-southeast-1",
          ReplicationTime: {
            Status: "Enabled",
            Time: { Minutes: 15 },
          },
          Metrics: { Status: "Enabled", EventThreshold: { Minutes: 15 } },
          StorageClass: "STANDARD",
        },
        DeleteMarkerReplication: { Status: "Enabled" },
      },
    ],
  },
}));

Repeat this configuration from each of the other two buckets (eu-west-1 and ap-southeast-1), pointing their replication rules at the remaining two buckets. Total: 6 replication rules for 3-region bidirectional replication.

S3 Replication Time Control (RTC) guarantees 99.99% of objects replicated within 15 minutes. Without RTC, replication is best-effort with no SLA. For MCP server model artifacts (written rarely, read often), RTC is worth the extra cost (~$0.015/GB replicated).

Using MRAP in Node.js MCP server code

Once the MRAP alias is known, use it as the bucket value in any S3 SDK call. The SDK routes the request through AWS Global Accelerator to the nearest backing bucket:

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

// Use us-east-1 as the client region (MRAP uses anycast routing regardless)
// Or use the region of your compute — both work
const s3 = new S3Client({ region: "us-east-1" });

// MRAP alias from GetMultiRegionAccessPointCommand.AccessPoint.Alias
const MRAP_ALIAS = "UNIQUE_ID.mrap.awsglobalaccelerator.com";

export async function getArtifact(key: string): Promise<Buffer> {
  const response = await s3.send(new GetObjectCommand({
    Bucket: MRAP_ALIAS,
    Key: key,
  }));

  return Buffer.from(await response.Body!.transformToByteArray());
}

export async function putArtifact(key: string, data: Buffer, contentType: string): Promise<void> {
  await s3.send(new PutObjectCommand({
    Bucket: MRAP_ALIAS,
    Key: key,
    Body: data,
    ContentType: contentType,
    StorageClass: "STANDARD", // MRAP stores in the backing bucket's native storage class
  }));
  // Note: this write goes to the nearest bucket; replication propagates it to other regions
  // Do NOT immediately read from a different region — replication takes seconds to minutes
}

The MRAP ARN format (for IAM and presigned URLs) is:

arn:aws:s3::ACCOUNT:accesspoint/MRAP_ALIAS

For object-level operations in IAM policies:

arn:aws:s3::ACCOUNT:accesspoint/MRAP_ALIAS/object/*

Routing policy — active-passive failover

MRAP routing policies control which buckets are ACTIVE (receive traffic) vs PASSIVE (standby). By default all buckets are ACTIVE. For disaster recovery, set a primary region active and others passive, then switch on failure:

import {
  S3ControlClient,
  SubmitMultiRegionAccessPointRoutesCommand,
  GetMultiRegionAccessPointRoutesCommand,
  MultiRegionAccessPointRouteStatus,
} from "@aws-sdk/client-s3-control";

const s3control = new S3ControlClient({ region: "us-east-1" });

// Get current routing config
const current = await s3control.send(new GetMultiRegionAccessPointRoutesCommand({
  AccountId: Account!,
  Mrap: "arn:aws:s3::ACCOUNT:accesspoint/UNIQUE_ID.mrap.awsglobalaccelerator.com",
}));
console.log("Current routes:", JSON.stringify(current.Routes, null, 2));

// Switch to passive for eu-west-1 (failover scenario)
await s3control.send(new SubmitMultiRegionAccessPointRoutesCommand({
  AccountId: Account!,
  Mrap: "arn:aws:s3::ACCOUNT:accesspoint/UNIQUE_ID.mrap.awsglobalaccelerator.com",
  RouteUpdates: [
    {
      Bucket: "mcp-artifacts-eu-west-1",
      Region: "eu-west-1",
      TrafficDialPercentage: 0,  // 0 = PASSIVE; 100 = ACTIVE
    },
  ],
}));

// Route changes take effect within ~2 minutes via Global Accelerator propagation

Routing policy changes take 1–2 minutes to propagate globally. For automated failover, integrate with Route 53 health checks or CloudWatch alarms that call SubmitMultiRegionAccessPointRoutes via a Lambda function when a primary bucket's health metrics degrade.

MRAP access point policy

MRAP supports resource-based access policies. Use these to restrict which IAM principals can read/write through the MRAP, independent of individual bucket policies:

import { PutMultiRegionAccessPointPolicyCommand } from "@aws-sdk/client-s3-control";

await s3control.send(new PutMultiRegionAccessPointPolicyCommand({
  AccountId: Account!,
  ClientToken: "mcp-mrap-policy-20261113",
  Details: {
    Name: "mcp-artifacts-global",
    Policy: JSON.stringify({
      Version: "2012-10-17",
      Statement: [
        {
          Sid: "AllowMCPServerReadOnly",
          Effect: "Allow",
          Principal: {
            AWS: "arn:aws:iam::ACCOUNT:role/MCPServerECSTaskRole",
          },
          Action: [
            "s3:GetObject",
            "s3:HeadObject",
            "s3:ListBucket",
          ],
          Resource: [
            "arn:aws:s3::ACCOUNT:accesspoint/UNIQUE_ID.mrap.awsglobalaccelerator.com",
            "arn:aws:s3::ACCOUNT:accesspoint/UNIQUE_ID.mrap.awsglobalaccelerator.com/object/*",
          ],
        },
        {
          Sid: "AllowMCPDeployWriteOnly",
          Effect: "Allow",
          Principal: {
            AWS: "arn:aws:iam::ACCOUNT:role/MCPDeployRole",
          },
          Action: [
            "s3:PutObject",
            "s3:DeleteObject",
          ],
          Resource: "arn:aws:s3::ACCOUNT:accesspoint/UNIQUE_ID.mrap.awsglobalaccelerator.com/object/*",
        },
      ],
    }),
  },
}));

Pricing

Cost componentRate (us-east-1 origin)
Data transfer through MRAP$0.0033/GB
Requests through MRAPStandard S3 request rates (no MRAP surcharge on request count)
Cross-region replication data transfer$0.02/GB (inter-region) + $0.015/GB if using RTC
S3 storage in each backing bucketStandard S3 rates per region
MRAP creation/managementNo charge

For a 100 GB model weight artifact distributed across 3 regions via MRAP:

MRAP is most cost-effective when the value of lowest-latency access from multiple regions outweighs the replication and data transfer costs. For model artifacts read once per deployment and cached in memory, MRAP may not be worth the complexity — consider S3 Cross-Region Replication with per-region bucket access instead.

Common errors and fixes

ErrorCauseFix
AccessDenied when accessing MRAPIAM principal lacks permission on the MRAP access point ARN (not just the bucket ARN)Add permissions with Resource set to the MRAP ARN (arn:aws:s3::ACCOUNT:accesspoint/ALIAS/object/*); bucket policy alone is not enough
NoSuchKey after PutObject via MRAPObject was written to one region, read request routed to another before replication completedEnable S3 RTC for 15-min replication SLA; or write directly to primary bucket, only read via MRAP
MRAP creation stuck in pending >20 minutesUnderlying bucket(s) do not exist or IAM permissions are insufficientVerify all backing buckets exist; check CloudTrail for CreateMultiRegionAccessPoint errors
InvalidRequest on CreateMultiRegionAccessPointClientToken already used for a different requestUse a unique ClientToken per MRAP configuration; reuse the same token only for idempotent retries of the exact same request
High data transfer costsLarge objects transferred through MRAP repeatedly instead of cached locallyCache artifacts in memory or on local ephemeral storage after first fetch; use MRAP only for initial fetch, not every request

Related guides