Skip to main content

An MCP server that helps users plan, select, book, and pay for AMC movie experiences

Project description

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

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

  1. Clone the repository:
git clone <repository-url>
cd amc-mcp
  1. Install dependencies:
pip install -r requirements.txt
  1. Install the package:
pip install -e .
  1. Run the server:
python -m amc_mcp.fastmcp_server

Option 2: Docker Deployment

  1. Build and run with Docker Compose:
docker-compose up --build
  1. Or build and run manually:
docker build -t amc-mcp .
docker run -it amc-mcp

MCP Tools Reference ๐Ÿ› ๏ธ

1. get_now_showing

Returns a list of movies currently showing in a given location.

Input:

{
  "location": "Boston, MA"
}

Output:

{
  "location": "Boston, MA",
  "movies": [
    {
      "movie_id": "mv001",
      "title": "Dune: Part Two",
      "rating": "PG-13",
      "duration": 166,
      "genre": "Sci-Fi/Action",
      "description": "Paul Atreides unites with Chani..."
    }
  ]
}

2. get_recommendations

Suggests movies based on mood, genre, or preferences.

Input:

{
  "genre": "action",
  "mood": "exciting"
}

Output:

{
  "criteria": {"genre": "action", "mood": "exciting"},
  "recommendations": [...]
}

3. get_showtimes

Fetches available showtimes for a specific movie and location.

Input:

{
  "movie_id": "mv001",
  "date": "2025-10-28",
  "location": "Boston, MA"
}

Output:

{
  "movie": {"id": "mv001", "title": "Dune: Part Two"},
  "date": "2025-10-28",
  "location": "Boston, MA",
  "showtimes": [
    {
      "showtime_id": "st001",
      "theater_name": "AMC Boston Common 19",
      "theater_address": "175 Tremont Street",
      "time": "14:00",
      "format": "IMAX",
      "price": 18.50
    }
  ]
}

4. get_seat_map

Displays available and reserved seats for a specific showtime.

Input:

{
  "showtime_id": "st001"
}

Output:

{
  "showtime_id": "st001",
  "movie": "Dune: Part Two",
  "theater": "AMC Boston Common 19",
  "date": "2025-10-28",
  "time": "14:00",
  "seat_map": [
    {
      "seat_number": "A5",
      "row": "A",
      "column": 5,
      "is_available": true,
      "price_tier": "Standard",
      "price": 18.50
    }
  ]
}

5. book_seats

Reserves selected seats for the user.

Input:

{
  "showtime_id": "st001",
  "seats": ["A5", "A6"],
  "user_id": "user123"
}

Output:

{
  "booking_id": "booking-uuid",
  "status": "pending",
  "movie": "Dune: Part Two",
  "theater": "AMC Boston Common 19",
  "date": "2025-10-28",
  "time": "14:00",
  "seats": ["A5", "A6"],
  "total_price": 37.00
}

6. process_payment

Handles simulated payment transaction.

Input:

{
  "booking_id": "booking-uuid",
  "payment_method": "card",
  "amount": 37.00
}

Output:

{
  "payment_id": "payment-uuid",
  "payment_status": "success",
  "booking_id": "booking-uuid",
  "receipt_url": "https://amc.com/receipts/payment-uuid",
  "confirmation": {
    "movie": "Dune: Part Two",
    "theater": "AMC Boston Common 19",
    "date": "2025-10-28",
    "time": "14:00",
    "seats": ["A5", "A6"],
    "total_paid": 37.00
  }
}

Example Conversation Flow ๐Ÿ’ฌ

Here's how a typical movie booking conversation would work:

  1. User: "Find an action movie near me tonight."

    • Server calls: get_now_showing + get_recommendations
    • Returns: List of action movies with showtimes
  2. User: "Book two seats for Dune: Part Two at 8 PM."

    • Server calls: get_showtimes โ†’ get_seat_map โ†’ book_seats
    • Returns: Seat selection and booking confirmation
  3. User: "Pay with my card."

    • Server calls: process_payment
    • Returns: Payment confirmation with digital receipt

Architecture ๐Ÿ—๏ธ

amc-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ amc_mcp/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ””โ”€โ”€ server.py          # Main MCP server implementation
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ movies.json           # Movie catalog
โ”‚   โ”œโ”€โ”€ theaters.json         # Theater locations
โ”‚   โ”œโ”€โ”€ showtimes.json        # Showtime schedules
โ”‚   โ””โ”€โ”€ seats.json           # Seat maps by showtime
โ”œโ”€โ”€ config/
โ”‚   โ””โ”€โ”€ nginx.conf           # Web server configuration
โ”œโ”€โ”€ Dockerfile               # Container configuration
โ”œโ”€โ”€ docker-compose.yml       # Multi-service orchestration
โ”œโ”€โ”€ requirements.txt         # Python dependencies
โ”œโ”€โ”€ pyproject.toml          # Package configuration
โ””โ”€โ”€ README.md               # This file

Data Models ๐Ÿ“Š

Movie

{
  "movie_id": str,
  "title": str,
  "rating": str,         # PG, PG-13, R, etc.
  "duration": int,       # Minutes
  "genre": str,
  "description": str,
  "poster_url": str
}

Theater

{
  "theater_id": str,
  "name": str,
  "address": str,
  "city": str,
  "state": str,
  "zip_code": str
}

Showtime

{
  "showtime_id": str,
  "movie_id": str,
  "theater_id": str,
  "date": str,           # YYYY-MM-DD
  "time": str,           # HH:MM
  "format": str,         # Standard, IMAX, 3D, Dolby
  "price": float
}

Development ๐Ÿ‘จโ€๐Ÿ’ป

Adding New Movies

Edit data/movies.json to add new movies:

{
  "movie_id": "mv011",
  "title": "New Movie Title",
  "rating": "PG-13",
  "duration": 120,
  "genre": "Action",
  "description": "Description of the movie...",
  "poster_url": "https://example.com/poster.jpg"
}

Adding New Theaters

Edit data/theaters.json:

{
  "theater_id": "th011",
  "name": "AMC New Location 15",
  "address": "123 Main Street",
  "city": "New City",
  "state": "NY",
  "zip_code": "12345"
}

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

  1. Configure Claude Desktop to connect to your MCP server
  2. Use natural language to test the booking flow
  3. Example: "Find me a sci-fi movie showing tonight in Boston"

Configuration โš™๏ธ

Environment Variables

  • PYTHONPATH: Set to /app/src for proper module resolution
  • PYTHONUNBUFFERED: Set to 1 for real-time logging
  • MCP_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:

  1. Payment Processing: Integrate with real payment gateways (Stripe, PayPal)
  2. Authentication: Add user authentication and authorization
  3. Data Validation: Implement comprehensive input validation
  4. Rate Limiting: Add API rate limiting
  5. Encryption: Use HTTPS and encrypt sensitive data
  6. Database: Replace JSON files with a real database
  7. 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 ๐Ÿค

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/new-feature
  3. Make your changes and add tests
  4. Commit your changes: git commit -am 'Add new feature'
  5. Push to the branch: git push origin feature/new-feature
  6. Submit 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! ๐Ÿฟ๐ŸŽฌ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amc_mcp_fastmcp-0.1.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amc_mcp_fastmcp-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file amc_mcp_fastmcp-0.1.1.tar.gz.

File metadata

  • Download URL: amc_mcp_fastmcp-0.1.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for amc_mcp_fastmcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bd2b3e5a619b400a4c27d016bcf68404f0f6663f4781986b4cd5cfd03c2187d
MD5 7c6fc595564f0ac2d0cfa4e8ee85dcf9
BLAKE2b-256 f9909d7510c8f6054354ded6029d230d2620b83239bd96974db90ead05eb9621

See more details on using hashes here.

File details

Details for the file amc_mcp_fastmcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for amc_mcp_fastmcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 366631feae997b8aff5fde73d66733ac413c20b7ac9933788df10a84475496bd
MD5 10a41c04f36a336c9fb19a0cc6628fd7
BLAKE2b-256 aa12d00c3639dc341c1ee0375137efeced30e7dcfebb65ea8d46517e5e645a64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page