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.
To install the CGV Cinema API MCP server, follow these steps:
Clone the repository or download the source code
Install the required dependencies:
pip install -r requirements.txt
export CGV_USERNAME="your_cgv_username"
export CGV_PASSWORD="your_cgv_password"
from cgv_client import CGVClient
# Create a client instance
client = CGVClient(username="your_username", password="your_password")
# Or use environment variables
client = CGVClient()
# 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']}")
# 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']}")
# 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)
# 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)
# 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']
# Get available concessions/combos
concessions = client.get_concessions()
# Print concession names and prices
for item in concessions:
print(f"{item['name']}: ${item['price']}")
# 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']}")
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}")
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.
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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