Skill 2.1.7

Develop model extension frameworks to enhance FM capabilities (for example, by using Lambda functions to implement stateless MCP servers that provide lightweight tool access, Amazon ECS to implement MCP servers that provide complex tools, MCP client libraries to ensure consistent access patterns)

Key Concepts

An MCP server exposes tools, resources and prompts over a transport: stdio for local processes or Streamable HTTP for remote servers. Stateless servers that answer each request independently, such as a lookup tool, fit Lambda behind API Gateway or a function URL: they scale to zero and cost nothing when idle.

Servers that hold state, keep long connections, need large dependencies or run long operations fit Amazon ECS on AWS Fargate behind a load balancer. Amazon Bedrock AgentCore Runtime can also host MCP servers, and AgentCore Gateway turns existing APIs and Lambda functions into MCP tools. Applications use MCP client libraries so every agent discovers and calls tools the same way.