[{"data":1,"prerenderedAt":93},["ShallowReactive",2],{"pattern-strands-agentcore-mcp":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":34,"level":35,"meta":36,"patternArch":37,"resources":63,"s3URL":6,"services":6,"stem":85,"testing":86,"videoId":6,"__hash__":92},"patterns\u002Fpatterns\u002Fstrands-agentcore-mcp.json","Agent using MCP server on AWS Lambda through Amazon Bedrock AgentCore Gateway",null,{"text":8},[9],"\u003Ccode>.\u002Fscripts\u002Fterminate.sh\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fmike-hume.json",{"text":13},[14],"\u003Ccode>.\u002Fscripts\u002Fdeploy.sh\u003C\u002Fcode>","Strands SDK agent on Lambda routes tool calls via AgentCore Gateway (MCP) to a Lambda MCP Server backed by DynamoDB, with Cognito JWT auth.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fstrands-agentcore-mcp","serverless-patterns\u002Fstrands-agentcore-mcp","strands-agentcore-mcp","infrastructure\u002Ftemplate.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30,31,32,33],"The user authenticates with Amazon Cognito and receives a JWT token.","The JWT is passed to an Agent Lambda which uses the Strands Agents SDK to create an AI agent backed by Amazon Bedrock (Claude Sonnet 4.5 cross-region inference profile).","The Strands Agent connects to an AgentCore Gateway MCP endpoint, dynamically discovering available product management tools via the MCP tools\u002Flist protocol.","The AgentCore Gateway validates the JWT token using a CUSTOM_JWT authorizer backed by Cognito, then routes MCP tool calls to the MCP Server Lambda via API Gateway.","The MCP Server Lambda implements the Model Context Protocol (JSON-RPC 2.0 over HTTP) and exposes three tools: list_products, get_product, and put_product, backed by a DynamoDB table.","The Strands SDK handles the full agentic loop: tool discovery, Claude tool selection, MCP tool execution, and response formatting — all in a single agent() call.","The model used by the agent is configurable via the BEDROCK_MODEL_ID environment variable on the Agent Lambda, set from the BedrockModelId SAM template parameter.","Python","300",{},{"icon1":38,"icon2":43,"icon3":47,"icon4":51,"line1":55,"line2":59,"line3":61},{"x":39,"y":40,"service":41,"label":42},17,50,"bedrock-agentcore","Amazon Bedrock AgentCore",{"x":44,"y":40,"service":45,"label":46},46,"apigw","Amazon API Gateway",{"x":48,"y":40,"service":49,"label":50},68,"lambda","AWS Lambda",{"x":52,"y":40,"service":53,"label":54},88,"dynamodb","Amazon DynamoDB",{"from":56,"to":57,"label":58},"icon1","icon2","",{"from":57,"to":60,"label":58},"icon3",{"from":60,"to":62,"label":58},"icon4",{"bullets":64},[65,68,71,74,77,80,83],{"text":66,"link":67},"Strands Agents SDK","https:\u002F\u002Fgithub.com\u002Fstrands-agents\u002Fsdk-python",{"text":69,"link":70},"Amazon Bedrock AgentCore Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fgateway.html",{"text":72,"link":73},"AgentCore Gateway MCP Target","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock-agentcore\u002Flatest\u002Fdevguide\u002Fgateway-target-MCPservers.html",{"text":75,"link":76},"Model Context Protocol (MCP)","https:\u002F\u002Fmodelcontextprotocol.io\u002F",{"text":78,"link":79},"Amazon Cognito JWT Authentication","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcognito\u002Flatest\u002Fdeveloperguide\u002Famazon-cognito-user-pools-using-tokens-verifying-a-jwt.html",{"text":81,"link":82},"Amazon Bedrock Cross-Region Inference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Finference-profiles-support.html",{"text":54,"link":84},"https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FIntroduction.html","patterns\u002Fstrands-agentcore-mcp",{"text":87},[88,89,90,91],"\u003Ccode>.\u002Fscripts\u002Ftest.sh\u003C\u002Fcode>","\u003Ccode>.\u002Fscripts\u002Ftest.sh 'List all products in Electronics'\u003C\u002Fcode>","\u003Ccode>.\u002Fscripts\u002Ftest.sh 'Get product ELEC-001 details'\u003C\u002Fcode>","\u003Ccode>.\u002Fscripts\u002Ftest.sh 'Add a new product called Widget Pro in Electronics for $49.99'\u003C\u002Fcode>","XHGJC6Z8SiH5gImURCdLI87Se-5T7B2upd1mO1swueI",1788278262606]