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.
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.
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.