Guide · Chime SDK Meetings · CreateMeeting, AttendeeCapabilities & Lifecycle

AWS Chime SDK Meetings for MCP Servers — CreateMeeting, AttendeeCapabilities, and Meeting Lifecycle

Chime SDK Meetings manages video and audio conference sessions — each meeting is a temporary resource with an auto-expiry, identified by a MeetingId from CreateMeeting and joined by attendees whose JoinToken is single-use and must be reissued on every reconnect. MCP server tools built on @aws-sdk/client-chime-sdk-meetings can create and terminate meetings, manage attendees with per-capability send/receive controls via AttendeeCapabilities, configure meeting quality features (echo reduction, FHD video, content sharing resolution), and implement cost controls by calling DeleteMeeting when sessions end. The first-hour failure is reusing a JoinToken for a reconnect — it fails with an authentication error after first use, requiring a fresh CreateAttendee call.

TL;DR

Create a meeting with CreateMeeting (or CreateMeetingWithAttendees for a combined call). The response includes MediaPlacement — a set of URL endpoints the client SDK uses for media routing — and MeetingId. Each CreateAttendee call returns a single-use JoinToken; if the client disconnects and reconnects, call CreateAttendee again to issue a fresh token. AttendeeCapabilities controls per-attendee media permissions: Audio, Video, and Content each take SendReceive, Send, Receive, or None. MeetingFeatures sets meeting-wide quality: Audio.EchoReduction (ON/AVAILABLE/OFF), Video.MaxResolution (FHD/HD/None), and Attendee.MaxCount (up to 1000 with feature activation). Always call DeleteMeeting when a session ends — Chime bills per attendee-minute and meetings persist (and accrue cost) until explicitly deleted or they time out after 6 hours of inactivity.

Why Meetings in an MCP server

MCP servers expose Chime SDK Meetings controls to AI agents that need to orchestrate video conferencing programmatically. Use cases include: automatically creating a meeting room when a support ticket escalates to a live call, adding a transcription bot as a hidden attendee to record meeting content, enforcing meeting policies by updating attendee capabilities (muting a participant, disabling video for bandwidth constrained attendees), generating join links for participants on demand, and terminating abandoned meetings to prevent runaway billing.

Chime SDK Meetings is architecturally independent from Chime SDK Messaging — you do not need an AppInstance, AppInstanceUser, or ChimeBearer to use the Meetings API. Meetings use standard IAM SigV4 authentication. This makes the Meetings sub-service easier to adopt in isolation compared to Messaging, which requires the full AppInstance setup described in the Chime SDK overview guide.

Meeting rooms are ephemeral. They do not persist configuration across sessions — there is no concept of a "permanent room" in Chime SDK. Each meeting is a one-time resource: created on demand, used for a session, then deleted. If your application needs persistent room identifiers, store the room concept in your own database and create a new meeting each time the room is "opened."

Creating a meeting

CreateMeeting provisions a meeting session in a specified AWS region. The MediaRegion parameter should be close to the attendees' geography — Chime routes media traffic through the MediaRegion's data center, so a poor region choice adds latency for all participants.

import {
  ChimeSDKMeetingsClient,
  CreateMeetingCommand,
  DeleteMeetingCommand,
  GetMeetingCommand,
  ListMeetingsCommand,
} from '@aws-sdk/client-chime-sdk-meetings';

const meetingsClient = new ChimeSDKMeetingsClient({ region: 'us-east-1' });

server.tool(
  'create_meeting',
  'Create a new Chime SDK video/audio meeting session',
  {
    externalMeetingId: z.string().max(64).describe('Stable identifier from your system (used for idempotency and tracking)'),
    mediaRegion: z.string().default('us-east-1').describe('AWS region for media routing — use a region near attendees'),
    meetingName: z.string().optional().describe('Human-readable meeting name stored in MeetingFeatures'),
  },
  async ({ externalMeetingId, mediaRegion, meetingName }) => {
    const result = await meetingsClient.send(
      new CreateMeetingCommand({
        ExternalMeetingId: externalMeetingId,
        MediaRegion: mediaRegion,
        ClientRequestToken: `meeting-${externalMeetingId}`,
        MeetingFeatures: {
          Audio: {
            EchoReduction: 'AVAILABLE', // Client can opt in; ON forces it for all attendees
          },
          Video: {
            MaxResolution: 'FHD', // Full HD video for supported clients
          },
          Content: {
            MaxResolution: 'FHD',
          },
          Attendee: {
            MaxCount: 250, // Default; increase to 1000 requires AWS support ticket
          },
        },
      })
    );

    const meeting = result.Meeting!;
    return {
      content: [{
        type: 'text',
        text: JSON.stringify({
          meetingId: meeting.MeetingId,
          externalMeetingId: meeting.ExternalMeetingId,
          mediaRegion: meeting.MediaRegion,
          mediaPlacement: meeting.MediaPlacement,
        }, null, 2),
      }],
    };
  }
);

The ExternalMeetingId is your system's stable identifier for this meeting session. It is returned in GetMeeting and ListMeetings results, making it easy to correlate Chime meetings with records in your database. It does not provide idempotency for CreateMeeting — only ClientRequestToken provides idempotency.

The response's MediaPlacement object contains seven URL fields that the Chime client SDK uses to establish media connections:

FieldPurpose
AudioHostUrlWebSocket endpoint for audio media
AudioFallbackUrlFallback WebSocket for audio when primary fails
SignalingUrlWebSocket for meeting signaling (attendee join/leave events)
TurnControlUrlHTTPS endpoint for TURN server credentials
ScreenDataUrlWebSocket for content/screen share data
ScreenSharingUrlWebSocket for legacy screen sharing (pre-content-share)
ScreenViewingUrlWebSocket for viewing shared content

The MCP server must pass the full MediaPlacement object to the client application; without it, the Chime client SDK cannot connect. Store it alongside the MeetingId when creating meeting records.

MeetingFeatures: quality and policy controls

The MeetingFeatures parameter, introduced in 2022 and expanded significantly in 2023–2024, controls meeting-wide quality settings and policies. These settings cannot be changed after the meeting is created.

EchoReduction for audio has three values:

MaxResolution for video and content can be FHD (1920×1080), HD (1280×720), or None (Chime default, approximately 720p). FHD requires both the sender and receiver to support it; clients that don't support FHD automatically downscale. Setting FHD does not force all attendees to use FHD — it only permits FHD when both endpoints support it.

Attendee.MaxCount defaults to 250. Increasing to 1000 requires contacting AWS Support to have the limit raised on your account before creating a meeting with that value. Setting it to 1000 without the account-level limit increase results in the meeting being created with the account limit instead.

Creating attendees and JoinToken lifecycle

An attendee record links a user identity (ExternalUserId) to a meeting session and produces the JoinToken that the client SDK uses to authenticate and join. The critical invariant: JoinToken is single-use. After a client uses the token to establish a session, the token is invalidated. If the client disconnects (network drop, browser refresh, app crash) and needs to rejoin, the server must call CreateAttendee again to issue a fresh token.

import {
  CreateAttendeeCommand,
  BatchCreateAttendeeCommand,
  UpdateAttendeeCapabilitiesCommand,
  DeleteAttendeeCommand,
  GetAttendeeCommand,
} from '@aws-sdk/client-chime-sdk-meetings';

server.tool(
  'create_attendee',
  'Create an attendee record and return a JoinToken for the client SDK',
  {
    meetingId: z.string().describe('MeetingId from CreateMeeting'),
    externalUserId: z.string().max(64).describe('Your application user identifier'),
    audioCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
    videoCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
    contentCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
  },
  async ({ meetingId, externalUserId, audioCapability, videoCapability, contentCapability }) => {
    const result = await meetingsClient.send(
      new CreateAttendeeCommand({
        MeetingId: meetingId,
        ExternalUserId: externalUserId,
        Capabilities: {
          Audio: audioCapability,
          Video: videoCapability,
          Content: contentCapability,
        },
      })
    );

    const attendee = result.Attendee!;
    return {
      content: [{
        type: 'text',
        text: JSON.stringify({
          attendeeId: attendee.AttendeeId,
          externalUserId: attendee.ExternalUserId,
          joinToken: attendee.JoinToken,
          // WARNING: JoinToken is single-use — do not cache; re-issue on each connect attempt
        }, null, 2),
      }],
    };
  }
);

The ExternalUserId maps your application's user to the Chime attendee record. It appears in meeting events (attendee joined/left) and in GetAttendee responses. It does not need to be a UUID — any stable string from your user database works. If you need to associate Chime events with your users in EventBridge or CloudWatch logs, using your application's user ID here makes the correlation trivial.

AttendeeCapabilities v2: granular media control

AttendeeCapabilities allows per-attendee control over three independent media dimensions: Audio, Video, and Content (screen share). Each dimension can be set to SendReceive, Send (can transmit but cannot receive), Receive (can listen/watch but cannot transmit), or None (blocked entirely). These can be set at CreateAttendee time or updated dynamically during a meeting via UpdateAttendeeCapabilities.

server.tool(
  'mute_attendee',
  'Set an attendee to receive-only audio (muted from sending)',
  {
    meetingId: z.string(),
    attendeeId: z.string(),
  },
  async ({ meetingId, attendeeId }) => {
    await meetingsClient.send(
      new UpdateAttendeeCapabilitiesCommand({
        MeetingId: meetingId,
        AttendeeId: attendeeId,
        Capabilities: {
          Audio: 'Receive',    // Cannot send audio (muted)
          Video: 'SendReceive', // Video unchanged
          Content: 'SendReceive', // Content share unchanged
        },
      })
    );
    return { content: [{ type: 'text', text: `Attendee ${attendeeId} muted` }] };
  }
);

server.tool(
  'set_observer_mode',
  'Set an attendee to receive-only for all media (silent observer)',
  {
    meetingId: z.string(),
    attendeeId: z.string(),
  },
  async ({ meetingId, attendeeId }) => {
    await meetingsClient.send(
      new UpdateAttendeeCapabilitiesCommand({
        MeetingId: meetingId,
        AttendeeId: attendeeId,
        Capabilities: {
          Audio: 'Receive',
          Video: 'Receive',
          Content: 'Receive',
        },
      })
    );
    return { content: [{ type: 'text', text: `Attendee ${attendeeId} set to observer mode` }] };
  }
);

UpdateAttendeeCapabilities takes effect within seconds for currently connected clients — the client SDK receives a capability change event and enforces the new policy locally. If the attendee is not currently connected, the capabilities are stored and applied when they next join using a new JoinToken.

A common MCP server pattern for AI-moderated meetings is to start all attendees with Audio: 'Receive' (read-only audience) and then upgrade individual attendees to Audio: 'SendReceive' when they are "called on" — implementing a push-to-talk or moderated Q&A pattern server-side without any client-side logic changes.

BatchCreateAttendee for efficiency

When multiple attendees join a meeting at the same time (a scheduled meeting with pre-known participants), use BatchCreateAttendee to create up to 100 attendee records in a single API call. This is significantly more efficient than looping over CreateAttendee.

server.tool(
  'batch_create_attendees',
  'Create multiple attendee records for a meeting in one API call',
  {
    meetingId: z.string(),
    attendees: z.array(z.object({
      externalUserId: z.string(),
      audioCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
      videoCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
      contentCapability: z.enum(['SendReceive', 'Send', 'Receive', 'None']).default('SendReceive'),
    })).max(100),
  },
  async ({ meetingId, attendees }) => {
    const result = await meetingsClient.send(
      new BatchCreateAttendeeCommand({
        MeetingId: meetingId,
        Attendees: attendees.map(a => ({
          ExternalUserId: a.externalUserId,
          Capabilities: {
            Audio: a.audioCapability,
            Video: a.videoCapability,
            Content: a.contentCapability,
          },
        })),
      })
    );

    // BatchCreateAttendee returns both successes and failures
    const created = (result.Attendees ?? []).map(a => ({
      attendeeId: a.AttendeeId,
      externalUserId: a.ExternalUserId,
      joinToken: a.JoinToken,
    }));

    const errors = (result.Errors ?? []).map(e => ({
      externalUserId: e.ExternalUserId,
      errorCode: e.ErrorCode,
      errorMessage: e.ErrorMessage,
    }));

    return {
      content: [{
        type: 'text',
        text: JSON.stringify({ created, errors }, null, 2),
      }],
    };
  }
);

BatchCreateAttendee uses a partial success model — the response contains both a Attendees array for successful creations and an Errors array for failed ones. The call does not fail entirely if some attendees could not be created. Always check the Errors array and handle retries for failed entries.

Meeting lifecycle and billing controls

Chime SDK Meetings billing is per attendee-minute. A meeting continues to exist and accrue potential cost until one of three events: (1) DeleteMeeting is called explicitly, (2) all attendees disconnect and the meeting remains empty for 5 minutes (auto-termination), or (3) the meeting reaches its maximum duration (default 6 hours for active meetings).

The auto-termination after 5 minutes of emptiness is reliable but adds latency to billing stop. For MCP server tools managing short-lived meetings (support calls, interview sessions), always call DeleteMeeting explicitly when the session ends rather than relying on auto-termination.

server.tool(
  'end_meeting',
  'Terminate a meeting and disconnect all attendees',
  {
    meetingId: z.string().describe('MeetingId to delete'),
  },
  async ({ meetingId }) => {
    await meetingsClient.send(
      new DeleteMeetingCommand({ MeetingId: meetingId })
    );
    return { content: [{ type: 'text', text: `Meeting ${meetingId} deleted` }] };
  }
);

server.tool(
  'get_meeting_status',
  'Check if a meeting is still active',
  {
    meetingId: z.string(),
  },
  async ({ meetingId }) => {
    try {
      const result = await meetingsClient.send(
        new GetMeetingCommand({ MeetingId: meetingId })
      );
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({
            active: true,
            meetingId: result.Meeting?.MeetingId,
            mediaRegion: result.Meeting?.MediaRegion,
            externalMeetingId: result.Meeting?.ExternalMeetingId,
          }),
        }],
      };
    } catch (err: any) {
      if (err.name === 'NotFoundException') {
        // Meeting was deleted or auto-terminated — this is a normal state
        return { content: [{ type: 'text', text: JSON.stringify({ active: false, meetingId }) }] };
      }
      throw err;
    }
  }
);

GetMeeting returns NotFoundException for meetings that have been deleted or auto-terminated. Treat this as a normal state representing "meeting ended," not an error requiring retry. This is the same pattern as IVS's ChannelNotBroadcasting — the SDK reports a not-found exception for a resource that simply does not currently exist.

CreateMeetingWithAttendees: combined creation

For use cases where the meeting host needs a join token immediately (the person creating the meeting is also the first attendee), use CreateMeetingWithAttendees to create the meeting and up to 10 initial attendees in a single API call. This reduces round trips when the meeting host and participant list are known at creation time.

import { CreateMeetingWithAttendeesCommand } from '@aws-sdk/client-chime-sdk-meetings';

server.tool(
  'create_meeting_with_host',
  'Create a meeting and immediately add a host attendee',
  {
    externalMeetingId: z.string(),
    hostUserId: z.string(),
    mediaRegion: z.string().default('us-east-1'),
  },
  async ({ externalMeetingId, hostUserId, mediaRegion }) => {
    const result = await meetingsClient.send(
      new CreateMeetingWithAttendeesCommand({
        ExternalMeetingId: externalMeetingId,
        MediaRegion: mediaRegion,
        ClientRequestToken: `meeting-with-host-${externalMeetingId}`,
        MeetingFeatures: {
          Audio: { EchoReduction: 'AVAILABLE' },
          Video: { MaxResolution: 'FHD' },
        },
        Attendees: [
          {
            ExternalUserId: hostUserId,
            Capabilities: {
              Audio: 'SendReceive',
              Video: 'SendReceive',
              Content: 'SendReceive',
            },
          },
        ],
      })
    );

    return {
      content: [{
        type: 'text',
        text: JSON.stringify({
          meetingId: result.Meeting?.MeetingId,
          mediaPlacement: result.Meeting?.MediaPlacement,
          hostAttendeeId: result.Attendees?.[0]?.AttendeeId,
          hostJoinToken: result.Attendees?.[0]?.JoinToken,
          errors: result.Errors,
        }, null, 2),
      }],
    };
  }
);

Production gotchas

GotchaSymptomFix
Reusing a JoinToken after disconnect Client SDK throws authentication error on second join attempt JoinToken is single-use — call CreateAttendee again each time the client needs to (re)join; delete the old attendee first if you want to reuse the ExternalUserId
Not calling DeleteMeeting after session ends Billing continues for 5+ minutes after all participants leave Always call DeleteMeeting explicitly when the session is done; wire it to your application's "end call" button or webhook
MediaRegion mismatch with attendee location High latency or jitter for all attendees Set MediaRegion to the AWS region geographically closest to the majority of attendees — this cannot be changed after meeting creation
AttendeeCapabilities Send vs SendReceive confusion An attendee marked as Send-only cannot see other participants' video Send means the attendee transmits but cannot receive. For normal participants, use SendReceive. Use Receive for silent observers and Send only for one-way streaming sources.
MediaPlacement not passed to client Chime client SDK cannot connect — "Failed to get audio-video session" error Store and return the full MediaPlacement object from CreateMeeting alongside MeetingId; the client SDK requires all 7 URLs
GetMeeting NotFoundException treated as error Tool throws uncaught exception when checking status of an ended meeting Catch NotFoundException and return { active: false } — it means the meeting ended, not that the API call failed
MaxCount: 1000 without account limit increase Meeting silently created with lower limit; MaxCount ignored Contact AWS Support to request the 1000-attendee limit increase before using it in production; validate the applied limit by calling GetMeeting after creation

Related pages