- Guidance for Vibe Coding AI Agents with AWS MCP Servers
This Guidance demonstrates how to build AI-powered development workflows using Amazon Bedrock AgentCore and the Model Context Protocol (MCP). It provides a complete, deployable hotel booking agent system that showcases "vibe coding" techniques - an AI-assisted development approach that accelerates software development through intelligent code generation, discovery, and problem-solving.
The Guidance is designed as an interactive workshop where participants learn to:
- Use AI tools to understand and navigate complex codebases quickly
- Generate, enhance, and debug code efficiently with AI assistance
- Leverage AI for architecture analysis, optimization, and testing
- Rapidly prototype and iterate on ideas using AI-powered development tools
Participants deploy a realistic hotel booking agent using Amazon Bedrock AgentCore and gain hands-on experience with AI development tools including Kiro, Amazon Q, and AWS MCP Servers. The skills learned can be immediately applied to production projects and shared across development teams.
This workshop leverages AWS MCP Servers, specialized MCP servers that enhance foundation model capabilities through the Model Context Protocol (MCP). MCP is an open protocol that enables seamless integration between LLM applications and external data sources and tools.
The workshop demonstrates these capabilities across three practical scenarios:
- Discovery & Analysis: Automated architecture visualization and service expertise
- Frontend Development: Modern React applications with AWS Amplify integration
- Production Readiness: Real-time cost analysis and security assessment
The solution implements a multi-tier architecture combining Amazon Bedrock AgentCore with serverless AWS services:
Architecture Flow:
- User Interaction - Users interact with the AgentCore agent through natural language conversations
- Agent Orchestration - Amazon Bedrock AgentCore processes requests and determines required actions
- MCP Server Bridge - Model Context Protocol server translates agent actions into API calls
- Backend Services - Three specialized APIs handle hotel search, reservations, and content moderation
- Data Storage - Amazon DynamoDB stores hotel and reservation data
Key Components:
- Amazon Bedrock AgentCore - Intelligent conversational agent with natural language understanding
- MCP Server - Protocol bridge connecting agent to backend APIs
- Property Resolution API (AWS Lambda + API Gateway) - Hotel search powered by Amazon Location Service
- Reservations API (AWS Lambda + API Gateway) - Booking management and CRUD operations
- Toxicity Detection API (AWS Lambda + API Gateway) - Content moderation using Amazon Comprehend
- Amazon DynamoDB - NoSQL database for hotels and reservations
You are responsible for the cost of the AWS services used while running this Guidance. As of October 2025, the cost for running this Guidance with the default settings in the US West (Oregon) Region is estimated at approximately $258 per month for continuous 24/7 operation.
Note: This estimate assumes continuous 24/7 usage with a moderately active workload. Actual costs will vary based on your specific usage patterns, interaction frequency, and data volumes.
We recommend creating a Budget through AWS Cost Explorer to help manage costs. Prices are subject to change. For full details, refer to the pricing webpage for each AWS service used in this Guidance.
The following table provides a sample cost breakdown for deploying this Guidance with the default parameters in the US West (Oregon) Region.
| AWS Service | Purpose | Monthly Cost | Note |
|---|---|---|---|
| Amazon Bedrock | Agent model invocation | $129.60 | 10K input, 10K output per hour assumption |
| Amazon Bedrock AgentCore | Hotel booking agent and MCP Server | $114.91 | 0.5 vCPU, 1 GB, 100 events per hour for short term memory |
| Amazon Comprehend | Toxicity detection API | $1.44 | Optional challenge (20 requests per hour) |
| AWS DynamoDB | Mock APIs | $1.83 | |
| AWS Lambda | Mock APIs | $0.07 | |
| Amazon ECR | AgentCore image | $0.10 | 1 GB Container Image storage |
| Amazon CloudWatch | Monitoring and logs | $10.00 | 20 GB log storage |
| Total | $257.96 |
This Guidance can be deployed in two ways:
If you're participating in an AWS-hosted workshop event, use Workshop Studio for a pre-configured environment with all prerequisites and infrastructure already set up.
Access the Workshop: Vibe Coding AI Agents with AWS MCP Servers
The Workshop Studio environment includes:
- Pre-installed development tools and prerequisites
- Pre-deployed AWS infrastructure (APIs, Agent, MCP Server)
- Ready-to-use development environment
Simply follow the on-screen instructions in Workshop Studio to access your temporary AWS account and begin the workshop activities.
If you want to deploy this Guidance in your own AWS account, continue with the sections below:
- Prerequisites - Install required tools
- Deployment Steps - Deploy the infrastructure
- Deployment Validation - Verify your deployment
This repository contains a complete Amazon Bedrock AgentCore hotel booking system with workshop materials:
├── packages/ # Core application packages
│ ├── agentcore-agents/ # Amazon Bedrock AgentCore agents
│ │ └── hotel-booking-agent/ # Intelligent hotel booking assistant
│ ├── agentcore-mcp-servers/ # Model Context Protocol servers
│ │ └── hotel-booking/ # Hotel booking MCP server
│ └── cdk-infra-python/ # AWS CDK infrastructure
│ ├── src/stacks/ # CDK stack definitions
│ └── app.py # CDK application entry point
└── docs/ # Workshop documentation
└── astro-docs/ # Participant documentation site
- AgentCore Agent - Intelligent conversational agent that understands natural language and orchestrates hotel booking operations
- MCP Server - Protocol server that bridges the agent with hotel booking APIs (Property Resolution, Reservations, Toxicity Detection)
- Mock APIs - Three production-like services for hotel search, booking management, and content moderation
- CDK Infrastructure - Complete AWS deployment including Lambda functions, API Gateway, DynamoDB, and IAM resources
Your environment is completely pre-configured with all tools, dependencies, and infrastructure already deployed. Simply run pnpm docs:init to access the workshop documentation.
Minimum requirements to get started:
- Node.js (v20.18.1+) and pnpm - Required to run documentation
npm install -g pnpm
- An AWS account with appropriate IAM permissions
After running pnpm docs:init, follow the comprehensive Prerequisites Guide for step-by-step installation of:
- Python, uv, AWS CLI, AWS CDK CLI, Docker, Graphviz
- AI Assistant tools (Amazon Q Developer, Cline, Kiro, etc.) - at least one required
- All other required development tools
These deployment instructions are optimized to work on macOS, Linux, and Windows operating systems.
Note: Amazon Bedrock AgentCore requires ARM64 container images (AWS Documentation). Docker Desktop includes built-in ARM64 emulation. For Docker Engine users, run
docker run --privileged --rm tonistiigi/binfmt --install allto enable ARM64 support.
git clone https://github.com/aws-solutions-library-samples/guidance-for-vibe-coding-with-aws-mcp-servers.gitInstall project dependencies and start the workshop documentation locally:
# Install all dependencies
pnpm install
# Build and serve documentation locally (opens on localhost)
pnpm docs:initThe documentation will be available at http://localhost:4321. Open this URL and follow the detailed setup instructions in the participant guide.
Important: After starting the documentation server, navigate to:
- "Prerequisites" - Complete installation of all required tools (Python, uv, AWS CLI, CDK CLI, Docker, AI assistants, etc.)
- "Setup your own development environment" - Deploy AWS infrastructure (Mock APIs, AgentCore Agent, MCP Server)
- "Setup up your IDE Extensions" - Configure your AI development tools and MCP servers
These sections provide comprehensive step-by-step guidance for prerequisites installation, infrastructure deployment, and environment configuration. Once complete, you'll be ready to begin the workshop activities.
Verify your deployment was successful:
-
Check CloudFormation Stacks
# List all deployed stacks aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETEYou should see these stacks:
VibeCodingWorkshopMockApisVibeCodingWorkshopBookingAgentVibeCodingWorkshopMcpServer
-
Verify API Endpoints
# Get stack outputs (API URLs and keys) aws cloudformation describe-stacks \ --stack-name VibeCodingWorkshopMockApis \ --query 'Stacks[0].Outputs[*].[OutputKey,OutputValue]' \ --output table
-
Test APIs with Bruno CLI
# Run API tests pnpm test:apis:reservations pnpm test:apis:toxicityAll tests should pass, confirming the APIs are functioning correctly.
-
Verify AgentCore Deployments
Check the AWS Console to confirm the Agent and MCP Server are listed in Amazon Bedrock AgentCore.
Once deployed, follow the workshop documentation for detailed activities:
-
Access Workshop Documentation
If you closed the documentation server, restart it with:
pnpm docs:init
Then open
http://localhost:4321in your browser. -
Configure Your AI Development Tool
Follow the workshop documentation to configure your preferred AI tool (Kiro, Amazon Q Developer, VS Code + Cline, etc.) to connect to the deployed MCP server.
-
Workshop Phases
The workshop is organized into three phases:
- Phase 1: Understanding the codebase and architecture
- Phase 2: Enhancing the agent with new capabilities
- Phase 3: Testing, debugging, and optimization
-
Interact with the Agent
Use your configured AI tool to interact with the hotel booking agent through natural language conversations. The agent can:
- Search for hotels by location
- Create and manage reservations
- Moderate user-generated content
- Maintain conversation context
After completing the workshop, consider these enhancements:
- Add New APIs - Integrate additional services (payment processing, loyalty programs, reviews)
- Enhance Agent Capabilities - Add multi-language support, price comparison, or recommendation features
- Implement Production Features - Add monitoring, logging, error handling, and rate limiting
- Explore Other MCP Servers - Integrate AWS MCP Servers for documentation access and best practices
- Scale the Solution - Implement caching, optimize Lambda functions, add CDN for static assets
- Security Hardening - Implement WAF rules, enhance IAM policies, add encryption at rest
To avoid ongoing charges, delete all deployed resources:
Delete CDK Stacks
# Delete all stacks in reverse order
pnpm cdk destroy VibeCodingWorkshopMcpServer
pnpm cdk destroy VibeCodingWorkshopBookingAgent
pnpm cdk destroy VibeCodingWorkshopMockApisFor detailed cleanup instructions including CodeBuild cleanup, ECR cleanup, verification steps, and local environment cleanup, see the Cleanup Guide.
Q: Which AWS regions are supported?
A: This Guidance has been tested in us-west-2 (Oregon) and us-east-1 (N. Virginia). Other regions may work but are not officially supported.
Q: What are the estimated costs?
A: Cost estimates are pending. See the Cost section for details. Most workshop activities can be completed within AWS Free Tier limits.
Q: Can I use this in production?
A: This Guidance is designed as a workshop and learning tool. Not intended for production use.
Known Issues:
-
Python Interpreter Permission Errors
- Problem:
Permission deniederror when running CDK commands - Solution: Recreate the uv virtual environment:
cd packages/cdk-infra-python rm -rf .venv uv sync cd ../..
- Problem:
-
Stack Does Not Exist Error
- Problem: Getting "Stack does not exist" when running CloudFormation commands
- Solution: Verify you're using the correct AWS profile:
aws configure list export AWS_PROFILE=YOUR_PROFILE_NAME
-
MCP Server Connection Issues
- Problem:
spawn uvx ENOENTerror when MCP servers try to start - Solution: Use the full path to uvx in your MCP configuration. Find it with
which uvxand update your MCP settings file.
- Problem:
-
API Tests Timeout
- Problem: Bruno API tests timeout on first run
- Solution: Wait a few seconds for Lambda cold start and retry the tests.
-
CDK Bootstrap Stack
- Note: Keep the CDK bootstrap stack if you plan to use CDK for other projects. Only delete if you're certain you won't use CDK in this AWS account/region again.
Customers are responsible for making their own independent assessment of the information in this Guidance. This Guidance: (a) is for informational purposes only, (b) represents AWS current product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided "as is" without warranties, representations, or conditions of any kind, whether express or implied. AWS responsibilities and liabilities to its customers are controlled by AWS agreements, and this Guidance is not part of, nor does it modify, any agreement between AWS and its customers.
- AWS Prototyping and Cloud Engineering Team


