Home icon

Build long-running MCP servers on Amazon Bedrock AgentCore with Strands Agents integration

Machine Learning Blog



This article explains how to build long-running AI agents on Amazon Bedrock AgentCore using Model Context Protocol (MCP) servers with persistent state management through Strands Agents integration.

  • Context messaging maintains active connections for tasks taking 1-15 minutes with periodic heartbeat updates
  • Async task management enables fire-and-forget operations for hours-long tasks with client disconnection support
  • External persistence via Amazon Bedrock AgentCore Memory prevents data loss during server restarts or instance terminations
  • MCP servers write task results directly to AgentCore Memory for retrieval across multiple sessions
  • Session context passed via MCP-Session-Id header enables multi-tenant support with dynamic identifiers
  • Strands Agents AgentCoreMemorySessionManager transparently handles memory operations and conversation history
  • AgentCore Runtime offers 15-minute timeout for synchronous requests and adjustable session duration for async processes

The article demonstrates practical implementation patterns transforming AI agents from conversational assistants into reliable autonomous workers capable of handling enterprise-scale, long-running operations with full visibility and persistence across user sessions.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Mar 11
2026
Amazon Bedrock AgentCore Runtime now supports stateful MCP server features
Apr 1
2025
Harness the power of MCP servers with Amazon Bedrock Agents
Oct 2
2025
Accelerate development with the Amazon Bedrock AgentCore MCP server
Apr 9
2026
Introducing stateful MCP client capabilities on Amazon Bedrock AgentCore Runtime

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.