Home icon

Enabling AI agents to interact with existing applications

Migration and Modernization Blog



This article discusses a method for enabling AI agents to interact with existing applications using the Model Context Protocol (MCP) and AWS tools, without modifying the original application's code.

  • Key approach involves wrapping existing REST APIs with a FastMCP server to make them AI-agent compatible
  • Uses Amazon ECS and AWS Fargate to deploy the API and MCP server as a sidecar container
  • Leverages OpenAPI specifications to automatically generate tool interfaces for AI agents
  • Demonstrates the process using the Swagger Petstore sample API and Strands Agents SDK
  • Provides a complete workflow from API exposure to AI agent interaction

The solution allows organizations to incrementally modernize applications by adding AI capabilities with minimal code changes, preserving existing investments while enabling intelligent interactions.



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

Jul 16
2025
Enabling customers to deliver production-ready AI agents at scale
Jun 18
2025
Empower AI agents with user context using Amazon Cognito
Jul 16
2025
Introducing AI agents and tools in AWS Marketplace
Jun 18
2025
Building AI-Ready Applications with Amazon Bedrock and .NET Aspire

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.