Перейти к содержимому

Integrating Model Context Protocol (MCP) Tools with Strands Agents (How-to)

AWS Developers

0:00 / 0:00

Integrating Model Context Protocol (MCP) Tools with Strands Agents (How-to)

23 310 просмотров · 1 год назад
AWS Developers
1,72 млн подписчиков
23 310 просмотров · 1 год назад
Learn more about Strands Agents: https://aws.amazon.com/blogs/opensour... In this video, we dive deep into the Model Context Protocol (MCP) and explore how to integrate MCP tools with Strands Agents. We start by demonstrating a locally hosted MCP server that provides a simple dice rolling tool. You'll learn how to import the MCPClient, configure the server parameters, and pass the available tools to your Strands Agent. We then take it a step further by showcasing a cloud-hosted MCP server running on AWS Lambda. You'll see how to connect your Strands Agent to this remote server using a streamable HTTP endpoint. Throughout the video, we engage in an interactive dice rolling session, illustrating the agentic flow and showcasing the seamless integration of MCP tools. Additionally, we discuss best practices for securing your MCP servers, including using a custom authorizer and session store with DynamoDB. Instructions and code for deploying your own MCP servers on AWS Lambda are provided in the description. Links mentioned: 🎥 What is MCP, No Really?:    • What is MCP? No, Really!   🎞️ Learn About Strands Agents (Playlist):    • Learn About Strands Agents   Follow AWS Developers! 📺 Instagram: https://www.instagram.com/awsdevelope... 🆇 X: https://x.com/awsdevelopers 💼 LinkedIn:   / aws-developers   👾 Twitch:   / aws   Chapters: 00:00 Introduction 00:38 Importing MCPClient and Configuring Local Server 01:19 Exploring the Local MCP Server Code 02:43 Passing MCP Tools to Strands Agent 03:03 Interactive Dice Rolling with Local MCP Server 05:09 Cloud-Hosted MCP Server on AWS Lambda 06:02 Connecting Strands Agent to Cloud MCP Server 06:31 Interactive Dice Rolling with Cloud MCP Server 07:00 Securing MCP Servers with Authorizer and Session Store 07:57 Closing Remarks and Additional Resources #strands #opensource #mcp