Guide · Amazon Bedrock · Reliability

MCP Server Amazon Bedrock Throttling — ThrottlingException, TPS Limits, Exponential Backoff

Amazon Bedrock enforces per-account, per-region, per-model TPS (transactions per second) limits on the on-demand tier — when you exceed them, every call returns a ThrottlingException with HTTP 429. For MCP servers, throttling is especially painful because the agent calling your tool is waiting synchronously: a 429 that isn't handled translates directly into a tool call failure the agent sees. Five things MCP server authors miss: TPS limits are soft and can be raised via Service Quotas, but the raise takes 1–3 business days; the AWS SDK v3 retries on ThrottlingException by default, but its default retry cap is 3 attempts — not enough for burst spikes; ThrottlingException counts as an InvocationClientError in CloudWatch, so a sustained throttle will breach your error-rate alarm even if retries eventually succeed; the exception carries no Retry-After header — you must implement your own backoff; and cross-region inference (us.anthropic.claude-3-haiku… vs anthropic.claude-3-haiku…) uses a different quota pool, so switching to a cross-region inference profile gives you spare capacity immediately. For CloudWatch alarms on error rates see Bedrock CloudWatch metrics; for invocation logging to debug throttle patterns see Bedrock invocation logging; for cost tracking after throttle-and-retry cycles see Bedrock usage metadata.

TL;DR

Catch err.name === "ThrottlingException". Retry with exponential backoff: delay = min(2^attempt × 100ms + jitter, 30s). Set maxAttempts: 10 in the SDK client config for the runtime client. Increase quotas proactively via Service Quotas before you hit limits. For predictable high-volume workloads, use Provisioned Throughput — it has no TPS limit at the provisioned model unit count.

Default on-demand TPS limits by model

Default quotas apply per AWS account per region. They are soft limits — AWS will raise them on request via Service Quotas. Actual limits in your account may differ if you have previously requested increases. These are representative defaults as of late 2026; always verify with aws service-quotas list-service-quotas --service-code bedrock for your account:

// Approximate on-demand TPS defaults (requests per second)
// Source: AWS Service Quotas, Bedrock section
// Note: limits vary by account age, usage history, and region

const DEFAULT_TPS_LIMITS: Record<string, { tps: number; tokenRpm?: number }> = {
  // Anthropic Claude 3 family
  "anthropic.claude-3-haiku-20240307-v1:0":   { tps: 50,  tokenRpm: 100_000 },
  "anthropic.claude-3-sonnet-20240229-v1:0":  { tps: 10,  tokenRpm:  50_000 },
  "anthropic.claude-3-opus-20240229-v1:0":    { tps:  5,  tokenRpm:  20_000 },
  "anthropic.claude-3-5-sonnet-20241022-v2:0":{ tps: 20,  tokenRpm: 100_000 },
  "anthropic.claude-3-5-haiku-20241022-v1:0": { tps: 50,  tokenRpm: 100_000 },

  // Amazon Nova family
  "amazon.nova-micro-v1:0":   { tps: 300, tokenRpm: 1_000_000 },
  "amazon.nova-lite-v1:0":    { tps: 100, tokenRpm:   500_000 },
  "amazon.nova-pro-v1:0":     { tps:  40, tokenRpm:   300_000 },

  // Amazon Titan Text
  "amazon.titan-text-lite-v1":    { tps: 100 },
  "amazon.titan-text-express-v1": { tps: 100 },
};

// Cross-region inference profile IDs use a different quota pool
// and typically have higher defaults than direct model IDs
const CROSS_REGION_IDS = {
  haikuCrossRegion: "us.anthropic.claude-3-haiku-20240307-v1:0",
  sonnetCrossRegion: "us.anthropic.claude-3-sonnet-20240229-v1:0",
  novaMicroCrossRegion: "us.amazon.nova-micro-v1:0",
};

TPS limits are measured at the request level — one ConverseCommand call = one request regardless of how many tokens it uses. There are also separate token-per-minute (TPM) limits on some models; hitting either limit returns a ThrottlingException. If you are sending many short prompts quickly (high TPS, low tokens), you will hit the TPS limit first. If you are sending few long prompts (low TPS, high tokens), you may hit the TPM limit first.

Identifying ThrottlingException in MCP tool handlers

The AWS SDK v3 uses error names rather than typed exceptions for most cases. Check err.name first; fall back to the HTTP status code if needed:

import { BedrockRuntimeClient, ConverseCommand } from "@aws-sdk/client-bedrock-runtime";

const runtime = new BedrockRuntimeClient({ region: "us-east-1" });

async function callBedrock(modelId: string, prompt: string) {
  try {
    return await runtime.send(new ConverseCommand({
      modelId,
      messages: [{ role: "user", content: [{ text: prompt }] }],
      inferenceConfig: { maxTokens: 512 },
    }));
  } catch (err: any) {
    // Primary check: error name from SDK
    if (err.name === "ThrottlingException") {
      console.error("Bedrock throttled — HTTP 429. Quota exceeded for:", modelId);
      throw err; // caller decides whether to retry
    }

    // Other common transient errors worth retrying
    if (err.name === "ServiceUnavailableException") {
      console.error("Bedrock service unavailable — HTTP 503");
      throw err;
    }

    if (err.name === "ModelTimeoutException") {
      console.error("Bedrock model timed out — response not generated in time");
      throw err;
    }

    // ValidationException, AccessDeniedException, etc. — not retryable
    console.error("Non-retryable Bedrock error:", err.name, err.message);
    throw err;
  }
}

Retry with exponential backoff and jitter

The AWS SDK v3's default retry strategy retries on ThrottlingException up to maxAttempts - 1 times (default: 3 total attempts = 2 retries) with a fixed-ish backoff. For MCP servers under burst load, 2 retries is usually too few. The recommended approach is to either increase maxAttempts in the client config or implement a custom retry wrapper with full jitter:

import { BedrockRuntimeClient, ConverseCommand } from "@aws-sdk/client-bedrock-runtime";

// Option 1: increase maxAttempts on the SDK client
// SDK uses exponential backoff automatically — simpler but less control
const runtimeWithMoreRetries = new BedrockRuntimeClient({
  region: "us-east-1",
  maxAttempts: 10,  // 10 total attempts = up to 9 retries
});

// Option 2: custom retry wrapper with full jitter
// (use when you need per-call retry logging or circuit breaking)
const RETRYABLE_ERRORS = new Set([
  "ThrottlingException",
  "ServiceUnavailableException",
  "ModelTimeoutException",
]);

async function withBedrockRetry<T>(
  fn: () => Promise<T>,
  options: { maxAttempts?: number; baseDelayMs?: number; maxDelayMs?: number } = {}
): Promise<T> {
  const { maxAttempts = 8, baseDelayMs = 100, maxDelayMs = 30_000 } = options;

  let lastError: Error | undefined;

  for (let attempt = 0; attempt < maxAttempts; attempt++) {
    try {
      return await fn();
    } catch (err: any) {
      if (!RETRYABLE_ERRORS.has(err.name) || attempt === maxAttempts - 1) {
        throw err;
      }

      lastError = err;

      // Full jitter exponential backoff:
      // delay = random(0, min(2^attempt * baseDelay, maxDelay))
      const exponential = Math.min(2 ** attempt * baseDelayMs, maxDelayMs);
      const jittered = Math.random() * exponential;

      console.warn(
        `Bedrock ${err.name} on attempt ${attempt + 1}/${maxAttempts}. ` +
        `Retrying in ${jittered.toFixed(0)}ms...`
      );

      await new Promise(r => setTimeout(r, jittered));
    }
  }

  throw lastError;
}

// Usage in an MCP tool handler
const runtime = new BedrockRuntimeClient({ region: "us-east-1" });

async function classifyWithRetry(text: string): Promise<string> {
  const response = await withBedrockRetry(() =>
    runtime.send(new ConverseCommand({
      modelId: "anthropic.claude-3-haiku-20240307-v1:0",
      messages: [{ role: "user", content: [{ text: `Classify: ${text}` }] }],
      inferenceConfig: { maxTokens: 50, temperature: 0 },
    }))
  );
  return response.output?.message?.content?.[0]?.text ?? "";
}

Full jitter (randomizing across the full exponential range, not just adding a small random offset) is preferred over equal jitter for Bedrock because it spreads retries across the widest possible window, reducing the probability of a retry storm where many concurrent MCP tool calls all retry at the same time and re-trigger the throttle.

Using cross-region inference as an escape valve

Cross-region inference profile IDs (prefixed with a region code like us.) route calls across multiple AWS regions and are covered by a separate, usually higher quota. Switching to a cross-region profile ID is the fastest way to add burst capacity without waiting for a quota increase:

// Direct model ID — uses us-east-1 quota pool only
const DIRECT_ID = "anthropic.claude-3-haiku-20240307-v1:0";

// Cross-region inference profile — routes across us-east-1, us-west-2, etc.
// Uses a combined cross-region quota pool, which is typically higher
const CROSS_REGION_ID = "us.anthropic.claude-3-haiku-20240307-v1:0";

// Strategy: try direct first, fall back to cross-region on throttle
async function callWithFallback(prompt: string): Promise<string> {
  for (const modelId of [DIRECT_ID, CROSS_REGION_ID]) {
    try {
      const response = await runtime.send(new ConverseCommand({
        modelId,
        messages: [{ role: "user", content: [{ text: prompt }] }],
        inferenceConfig: { maxTokens: 512 },
      }));
      return response.output?.message?.content?.[0]?.text ?? "";
    } catch (err: any) {
      if (err.name === "ThrottlingException" && modelId === DIRECT_ID) {
        console.warn("Direct quota exhausted, falling back to cross-region inference");
        continue;
      }
      throw err;
    }
  }
  throw new Error("All Bedrock call strategies exhausted");
}

Cross-region inference adds 20–80 ms of additional latency compared to a same-region call. For interactive MCP tools, this is usually acceptable. For high-frequency, latency-sensitive tools, the latency cost may outweigh the quota benefit — in that case, request a direct quota increase instead.

Requesting quota increases

Use Service Quotas to request a TPS increase before you hit the limit in production. The request is usually approved within 1–3 business days for standard increases up to 5× the default; larger increases may require a business justification and take longer:

import {
  ServiceQuotasClient,
  RequestServiceQuotaIncreaseCommand,
  ListServiceQuotasCommand,
} from "@aws-sdk/client-service-quotas";

const sq = new ServiceQuotasClient({ region: "us-east-1" });

// Step 1: find the quota code for the model you want to increase
async function findBedrockQuota(keyword: string): Promise<void> {
  const { Quotas } = await sq.send(new ListServiceQuotasCommand({
    ServiceCode: "bedrock",
  }));

  const matching = (Quotas ?? []).filter(q =>
    q.QuotaName?.toLowerCase().includes(keyword.toLowerCase())
  );

  for (const q of matching) {
    console.log(`${q.QuotaCode}: ${q.QuotaName} — current: ${q.Value} ${q.Unit}`);
  }
}

await findBedrockQuota("haiku");
// Output example:
// L-XXXXXXXX: Claude 3 Haiku on-demand throughput limit in us-east-1 — current: 50 requests per second

// Step 2: request an increase
async function requestQuotaIncrease(quotaCode: string, desiredValue: number): Promise<void> {
  const { RequestedQuota } = await sq.send(
    new RequestServiceQuotaIncreaseCommand({
      ServiceCode: "bedrock",
      QuotaCode: quotaCode,
      DesiredValue: desiredValue,
    })
  );
  console.log(
    "Quota increase requested. Case ID:",
    RequestedQuota?.CaseId,
    "Status:", RequestedQuota?.Status
  );
}

await requestQuotaIncrease("L-XXXXXXXX", 200); // request 200 TPS (4× increase)

Service Quotas sends an approval or denial to the email address on the AWS account. During the waiting period, implement the cross-region fallback described above to handle burst spikes without dropped tool calls.

Throttling in MCP server context — keeping tool calls responsive

An MCP tool call has an implicit timeout — if the tool takes too long, the agent framework may cancel the call and report an error to the user. Retrying a throttled Bedrock call with 8 attempts and full jitter backoff can in theory take up to 90+ seconds if the last attempt doesn't trigger until the 7th retry. For interactive tools, cap the total retry window to stay within the agent's timeout budget:

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

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

server.tool(
  "summarize_mcp_server_logs",
  { logs: z.string().describe("Raw log text to summarize") },
  async ({ logs }) => {
    // Total retry budget: 15 seconds for an interactive tool
    const deadline = Date.now() + 15_000;

    const response = await withBedrockRetry(
      () => runtime.send(new ConverseCommand({
        modelId: "anthropic.claude-3-haiku-20240307-v1:0",
        messages: [{ role: "user", content: [{ text: `Summarize these MCP server logs:\n\n${logs}` }] }],
        inferenceConfig: { maxTokens: 300 },
      })),
      {
        maxAttempts: 5,
        baseDelayMs: 500,
        maxDelayMs: 5_000,
      }
    );

    // Warn if we're close to the deadline (may indicate throttle pressure)
    if (Date.now() > deadline - 2_000) {
      console.warn("Tool call used most of its retry budget — consider a quota increase");
    }

    return {
      content: [{
        type: "text",
        text: response.output?.message?.content?.[0]?.text ?? "No summary generated.",
      }],
    };
  }
);

await server.connect(/* transport */);

AliveMCP and throttling-induced outages

When a Bedrock throttle is severe enough that all retries fail, your MCP tool call returns an error — and AliveMCP's health check will see your endpoint returning non-OK responses. That shows up as degraded status on your server's public AliveMCP page within 60 seconds. If you have an Author or Team plan, you will receive a Slack or webhook alert immediately. For teams running high-volume MCP tools on shared Bedrock quota, this is the difference between a silent outage and a 60-second pager. See how AliveMCP monitors MCP endpoints →