CGV Cinema MCP server

Integrates with CGV Cinema's API to provide movie showtimes, cinema locations, and seat availability information for planning cinema outings through conversational interfaces.
Back to servers
Setup instructions
Provider
t-rekttt
Release date
Mar 14, 2025
Language
Python

This MCP server provides a Python client for interacting with CGV Cinema's mobile API, allowing you to access movie listings, cinema locations, seat maps, and various other cinema information through a convenient interface.

Installation

To install the CGV Cinema API MCP server, follow these steps:

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)

Setup

  1. Clone the repository or download the source code

  2. Install the required dependencies:

pip install -r requirements.txt
  1. Set up environment variables for authentication:
export CGV_USERNAME="your_cgv_username"
export CGV_PASSWORD="your_cgv_password"

Usage

Initializing the Client

from cgv_client import CGVClient

# Create a client instance
client = CGVClient(username="your_username", password="your_password")

# Or use environment variables
client = CGVClient()

Getting Cinema Locations

# Retrieve all CGV cinema locations
cinemas = client.get_cinemas()

# Print the cinema names and their IDs
for cinema in cinemas:
    print(f"Cinema: {cinema['name']}, ID: {cinema['id']}")

Retrieving Movie Listings

# Get currently showing movies
movies = client.get_movies()

# Print movie titles and their IDs
for movie in movies:
    print(f"Movie: {movie['title']}, ID: {movie['id']}")

Checking Movie Schedules

# Get movie schedules for a specific date
date = "2023-07-20"  # Format: YYYY-MM-DD
schedules = client.get_movie_schedules(date=date)

# Or for a specific movie
movie_id = "12345"
movie_schedules = client.get_movie_schedules(date=date, movie_id=movie_id)

Retrieving Cinema Schedules

# Get schedules for a specific cinema on a date
cinema_id = "CGV001"
date = "2023-07-20"
cinema_schedules = client.get_cinema_schedules(cinema_id=cinema_id, date=date)

Getting Seat Maps

# Get seat map for a specific session
session_id = "SESSION12345"
seat_map = client.get_seat_map(session_id=session_id)

# Check available seats
available_seats = [seat for seat in seat_map['seats'] if seat['status'] == 'available']

Retrieving Concession Information

# Get available concessions/combos
concessions = client.get_concessions()

# Print concession names and prices
for item in concessions:
    print(f"{item['name']}: ${item['price']}")

Accessing User Profile

# Get the current user's profile information
profile = client.get_profile()

# Print user details
print(f"Name: {profile['name']}")
print(f"Email: {profile['email']}")
print(f"Membership Level: {profile['membership_level']}")

Error Handling

The client includes error handling for common API issues:

from cgv_client import CGVClient, CGVAPIError

try:
    client = CGVClient()
    movies = client.get_movies()
except CGVAPIError as e:
    print(f"API Error: {e.message}")
    print(f"Status Code: {e.status_code}")

API Rate Limiting

Be aware that the CGV API may have rate limits. It's recommended to implement caching for frequently accessed data to avoid hitting these limits.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "cgv-cinema" '{"command":"npx","args":["github:t-rekttt/cgv-mcp"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cgv-cinema": {
            "command": "npx",
            "args": [
                "github:t-rekttt/cgv-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "cgv-cinema": {
            "command": "npx",
            "args": [
                "github:t-rekttt/cgv-mcp"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later