Skip to main content
Glama
italian-cinema-mcp

italian-cinema-mcp

by KiraPC

italian-cinema-mcp

A local Model Context Protocol server that lets an LLM compare showtimes across Italian cinema chains. Spawn it as an MCP host (claude, Cursor, …) and ask things like "what's on tonight after 20:00 near me?" — the server fans the question out to UCI Cinemas and The Space Cinema, shrinks the ~100 KB per-cinema JSON payload into a compact text view, and returns every option in one answer.

Status

MVP. UCI Cinemas (33 venues) and The Space Cinema (35 venues) are both wired in. Both upstream APIs are unofficial and may change without notice.

Related MCP server: Filmladder MCP Server

Disclaimer

This project is not affiliated with, endorsed by, or sponsored by UCI Cinemas or The Space Cinema, and "UCI Cinemas", "The Space Cinema", and any other brand or venue names referenced here are the property of their respective owners. The server relies on the same undocumented JSON endpoints that the official websites call from the browser; it does not authenticate, and those endpoints may change, rate-limit, or stop working at any time without notice. It is intended for personal use; requests are cached (cinema metadata for 24 h, showtimes for 5 min) and dispatched with bounded concurrency so upstream is only contacted when the user actually asks something.

Tools

Tool

Inputs

Output

list_cinemas

chain? (uci | thespace)

every cinema: id, name, chain, city

list_films

cinema_ids[], date?

titles with duration and the cinemas showing them, no times

get_showtimes

cinema_ids[], date?, from_time?, to_time?, title_contains?, include_links?

film → cinema → showtimes with format, language, sold-out flag, booking URL

Cinema ids are namespaced by chain — uci:uci-cinemas-romaest-roma, thespace:1021. date is YYYY-MM-DD, defaults to today in Europe/Rome. Times are HH:MM Europe/Rome.

Recommended call flow: list_cinemas once → pick ids → list_films for a cheap overview → get_showtimes with title_contains or a time window.

Errors from one cinema never fail the whole call; the rest are returned alongside a short note about which cinema failed and why.

Booking links are off by default (include_links=true to surface them).

Example output

Resident Evil (1h30)
The Space Roma Moderno           22:45
The Space Roma Parco de' Medici  21:05, 22:25, 23:25
UCI Porta di Roma                22:10
UCI Roma Est                     21:40, 22:30, 23:50

Showtime tags: just HH:MM by default. Only non-default format/language gets a tag — 21:30 IMAX, 20:20 EN, 22:10 OV, 21:30 ISENSE. Italian is the default and is never printed. Sold-out shows add (sold out). Booking links are off by default; pass include_links=true to surface them.

Build

npm install
npm run build      # tsc → dist/
npm run dev        # tsx src/server.ts (no build step)
npm test           # vitest, offline only
LIVE=1 npm test    # also runs the live smoke tests against UCI and The Space

Requirements: Node.js >= 20 (uses the global fetch).

Run

The server speaks MCP over stdio, so an MCP host launches it as a subprocess. Register it once and forget it.

Claude Code

claude mcp add --transport stdio --scope user italian-cinema-mcp \
  -- node /absolute/path/to/italian-cinema-mcp/dist/server.js

(or npm run dev if you prefer running from source).

Claude Desktop

Add the server in claude_desktop_config.json:

{
  "mcpServers": {
    "italian-cinema-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/italian-cinema-mcp/dist/server.js"]
    }
  }
}

Tests

npm test runs vitest on:

  • unit tests for the date helper, the formatter, and per-chain connector mappers (fixture-driven, no network);

  • the cinema service tests (filtering, per-cinema failures, batch merging);

  • an opt-in live smoke test (LIVE=1) that hits both upstream APIs.

Fixtures under test/fixtures/{uci,thespace}/ are trimmed real responses, kept in-repo so npm test doesn't need network access.

Project layout

src/
  server.ts               MCP server with three tools
  service.ts              CinemaService: chains, caching, parallel fetch, filter
  connectors/uci.ts       UCI Cinemas connector
  connectors/thespace.ts  The Space Cinema connector
  format.ts               compact text renderer for showtimes
  cache.ts                tiny TTL cache
  http.ts                 fetch wrapper, retries, session cookie replay
  dates.ts                today-in-Rome, date validation, time compare
  types.ts                internal model shared by all connectors
test/
  *.test.ts               vitest unit tests
  fixtures/{uci,thespace} saved real responses, trimmed
scripts/
  mcp-call.mjs            tiny JSON-RPC stdio driver used to verify end-to-end
  AGENTS.md               design brief

Upstream APIs (unofficial, no auth)

UCI Cinemas

https://myuci---uci-backend-production-nfluwp7wga-oc.a.run.app/api

  • GET /theatres — list (id, name, slug, is_luxe, latitude, …). The slug is the cinema id.

  • GET /theatres/{slug}/programming/{YYYY-MM-DD} — the programming for one day. cart_link is relative to https://ucicinemas.it.

The Space Cinema

https://www.thespacecinema.it/api/microservice/showings

  • GET /cinemas — {result: [{alpha, cinemas: [cinema]}]}. No city field: fullName is best-effort, exposed as-is.

  • GET /cinemas/{cinemaId}/films?showingDate=YYYY-MM-DDT00:00:00&minEmbargoLevel=3&includesSession=true&includeSessionAttributes=true One query string, not all separate. bookingUrl is relative to https://www.thespacecinema.it/.

An in-memory cookie jar in src/http.ts preserves the session cookies the site sets across calls, the way a browser would, so consecutive requests in the same session are accepted. We do not perform any challenge solving or attempt to bypass upstream policies — we only store and replay whatever the server gave us. Cinema metadata is cached for 24 h, showtimes for 5 min (src/service.ts).

Out of scope (for now)

Remote HTTP transport, Webtic/18tickets connectors, seat maps.

Available Tools

3 tools
get_showtimesA

Showtimes for the given cinemas on a date, with optional time window and title substring filters. Returns a compact text view grouped by film and cinema: time, and only the format/language tags that deviate from the chain default (2D in Italian -> nothing; e.g. '21:30 IMAX', '20:20 EN', '21:30 ISENSE' otherwise). Italian is the default language and is omitted; EN, OV are normalised. Sold-out shows are tagged '(sold out)'. Booking links stay off by default; pass include_links=true to add them. Pass chain to restrict to one chain or a list (e.g. chain: 'uci' for loyalty promotions); cinema ids that belong to other chains are dropped.

Time axis: each requested date is a 'cinema day' that spans [date 06:00, date+1 06:00) in Europe/Rome. from_time/to_time earlier than 06:00 means the next calendar day (e.g. to_time '01:00' is 'until 01:00+1'). Showtimes after midnight are rendered with a '+1' marker ('22:00+1' is too far east to happen in practice; '00:30+1' is the usual case). If a film has only out-of-window showtimes at a cinema, that cinema line becomes 'cinema - none in window (N earlier, last HH:MM)'; if the film has zero in-window shows anywhere, an 'Outside the time window:' line is appended.

Inputs: cinema_ids (required), date, chain, to_time, +3 more.

list_cinemasA

List every cinema we know about, optionally filtered to a single chain. Call this once at the start of a session to discover cinema ids. Ids are namespaced like uci:slug or thespace:numericId and are needed by the other tools.

Inputs: chain.

list_filmsA

Cheap overview of the films playing in the given cinemas on the given date, without showtimes. Use this after list_cinemas to discover which films are worth querying with get_showtimes. Pass chain to restrict to one chain or a list of chains (e.g. chain: 'uci' for loyalty promotions); cinema ids that belong to other chains are dropped.

Inputs: cinema_ids (required), date, chain.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct role: list_cinemas discovers venue identifiers, list_films provides a film overview, and get_showtimes gives detailed timings. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern: list_cinemas, list_films, get_showtimes. The 'list_' prefix for overviews and 'get_' for detailed retrieval is a clear and predictable convention.

    Tool Count5/5

    Three tools is well-scoped for a cinema showtimes server. Each tool serves a necessary step in the discovery workflow, and none feels redundant or extraneous.

    Completeness5/5

    The tool surface covers the full user journey: discover cinemas, identify films, and retrieve showtimes. There are no obvious gaps; the inclusion of filters and options makes the workflow complete for the stated purpose.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers