AMC MCP Server š¬
An Model Context Protocol (MCP) server that provides a comprehensive movie booking experience for AMC Theatres. This server enables conversational AI assistants to help users discover movies, find showtimes, book seats, and process payments through a simple API interface.
Features āØ
Movie Discovery: Browse currently showing movies and get personalized recommendations
Showtime Lookup: Find available showtimes by location, date, and movie
Seat Selection: View interactive seat maps and check availability
Booking Management: Reserve seats with real-time availability checking
Payment Processing: Handle mock payment transactions with confirmation receipts
Multi-location Support: Search across multiple AMC theater locations
Quick Start š
Prerequisites
Python 3.8+
Docker (optional, for containerized deployment)
Installation
Option 1: Local Installation
Clone the repository:
Install dependencies:
Install the package:
Run the server:
Option 2: Docker Deployment
Build and run with Docker Compose:
Or build and run manually:
MCP Tools Reference š ļø
1. get_now_showing
Returns a list of movies currently showing in a given location.
Input:
Output:
2. get_recommendations
Suggests movies based on mood, genre, or preferences.
Input:
Output:
3. get_showtimes
Fetches available showtimes for a specific movie and location.
Input:
Output:
4. get_seat_map
Displays available and reserved seats for a specific showtime.
Input:
Output:
5. book_seats
Reserves selected seats for the user.
Input:
Output:
6. process_payment
Handles simulated payment transaction.
Input:
Output:
Example Conversation Flow š¬
Here's how a typical movie booking conversation would work:
User: "Find an action movie near me tonight."
Server calls:
get_now_showing+get_recommendationsReturns: List of action movies with showtimes
User: "Book two seats for Dune: Part Two at 8 PM."
Server calls:
get_showtimesāget_seat_mapābook_seatsReturns: Seat selection and booking confirmation
User: "Pay with my card."
Server calls:
process_paymentReturns: Payment confirmation with digital receipt
Architecture šļø
Data Models š
Movie
Theater
Showtime
Development šØāš»
Adding New Movies
Edit data/movies.json to add new movies:
Adding New Theaters
Edit data/theaters.json:
Adding Showtimes
Edit data/showtimes.json and data/seats.json to add new showtimes and corresponding seat maps.
Testing
Manual Testing
You can test individual tools using the MCP inspector or by connecting to any MCP-compatible client.
Testing with Claude Desktop
Configure Claude Desktop to connect to your MCP server
Use natural language to test the booking flow
Example: "Find me a sci-fi movie showing tonight in Boston"
Configuration āļø
Environment Variables
PYTHONPATH: Set to/app/srcfor proper module resolutionPYTHONUNBUFFERED: Set to1for real-time loggingMCP_LOG_LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)
Docker Configuration
The server runs in a lightweight Python 3.11 container with:
Non-root user for security
Health checks for monitoring
Volume mounts for data persistence
Network isolation
Security Considerations š
This is a mock implementation for demonstration purposes. In production:
Payment Processing: Integrate with real payment gateways (Stripe, PayPal)
Authentication: Add user authentication and authorization
Data Validation: Implement comprehensive input validation
Rate Limiting: Add API rate limiting
Encryption: Use HTTPS and encrypt sensitive data
Database: Replace JSON files with a real database
Logging: Implement structured logging and monitoring
Future Enhancements š®
Real AMC API Integration: Connect to actual AMC Theatres API
User Accounts: Persistent user profiles and booking history
Group Bookings: Support for multiple users booking together
Loyalty Programs: AMC Stubs integration
Mobile Tickets: Generate QR codes for mobile entry
Seat Recommendations: AI-powered optimal seat suggestions
Price Alerts: Notify users of discounts and promotions
Social Features: Share movie plans with friends
Accessibility: ADA-compliant seat selection
Multi-language: International language support
Contributing š¤
Fork the repository
Create a feature branch:
git checkout -b feature/new-featureMake your changes and add tests
Commit your changes:
git commit -am 'Add new feature'Push to the branch:
git push origin feature/new-featureSubmit a pull request
License š
This project is licensed under the MIT License - see the LICENSE file for details.
Support š¬
For questions, issues, or feature requests:
Create an issue in the GitHub repository
Check the documentation for common solutions
Review the example conversation flows
Happy movie booking! šæš¬
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides a comprehensive movie booking experience for AMC Theatres, enabling users to discover movies, find showtimes, select seats, and process payments through conversational AI. Supports multi-location theater search with real-time seat availability and booking management.