TVmaze shows, people, next episodes in your timezone, episode guides, schedules, and credits.
One address for any MCP client. No sign-in needed on this server.
8 read
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Search TVmaze shows and people, next episodes in your timezone, episode guides, daily schedules, and credits via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://tvmaze.caseyjhand.com/mcp
TV data from TVmaze: shows, episode guides, cast, and air times. Find a show by title or IMDb/TheTVDB id, see when the next episode airs in your timezone, or check what aired and streamed on any date. No API key required.
| Tool | Description |
|---|---|
tvmaze_search_shows | Fuzzy title search returning up to 10 shows with channel, status, genres, rating, and external catalog ids |
tvmaze_get_show | Full profile for one TVmaze id — weekly slot, season list, and the previous and next episode |
tvmaze_lookup_show | Resolve a show from its IMDb, TheTVDB, or TVRage id into the matching TVmaze profile |
tvmaze_get_next_episode | When a show's next episode airs, by TVmaze id or title, converted to a viewer timezone |
tvmaze_get_episodes | Episode guide for one season, one air date, or the whole run, with air times, runtimes, and synopses |
tvmaze_get_schedule | Episodes airing on a date — broadcast and cable networks in one country, streaming services, or both |
tvmaze_get_cast | A show's credited cast and the characters they play, optionally crew; or one episode's guest cast, optionally with its director and writers |
tvmaze_get_person | Search person names for candidates, or page one person's cast, guest, or crew credits |
tvmaze_search_shows toolquery against every show title, so minor misspellings still resolve; blank titles are rejectedshown / cap and points a full or empty result to a narrower title or tvmaze_lookup_showmatch_score, comparable only within one result settvmaze_get_show toolshow_id from tvmaze_search_shows, tvmaze_lookup_show, or a schedule row; optional IANA timezone for episode timesschedule_days / schedule_time, optional schedule_timezone, official_site, externals) with every season plus next_episode / previous_episode. A Running show with nothing announced comes back with a notice pointing at previous_episodeshow_id fails as show_not_foundtvmaze_lookup_show toolsource is imdb (a tt id), thetvdb, or tvrage (defunct, present only in older records), paired with external_idTT, and imdb.com title URLsfound: false plus guidance routing to tvmaze_search_shows. A hit echoes source and external_id and returns the same show summary as searchtvmaze_get_next_episode toolby: "id" takes a TVmaze id; by: "title" resolves a non-blank title through a stricter single-match search than tvmaze_search_showstimezone; time_known: false means no clock time was announced, so only the date is reliablemiss_reason: show_not_found (title) or no_scheduled_episode (between seasons, with previous_episode). A show_id that resolves to nothing throws show_not_found_by_idtvmaze_get_episodes toolseason lists one season; air_date (YYYY-MM-DD) lists one day's episodes; omit both for the whole run. They cannot be combined. An empty day returns an empty list with a notice, an impossible date fails as invalid_date, and season_not_found names the seasons that existair_date matches the source's airdate, which can differ by a day from an episode's local_date on late-night slotsinclude_specials defaults to false, and each listing reports how many specials it filtered out. limit (default 50, max 250) sets page size; next_cursor / has_more continue the listing and totalCount counts before pagingtvmaze_get_schedule toolscope picks the feed: linear is one country's broadcast and cable networks plus its own streaming services, streaming is global services when country is omitted and that country's local ones when given, all merges bothdate defaults to today in the requested timezone; country is ISO 3166-1 alpha-2 (the United Kingdom is GB) and falls back to the configured default for linear and all; optional channel filters by exact, case-insensitive channel name; limit defaults to 50 (max 250)feed (linear / streaming) and a compact show reference (tvmaze_get_show returns the full profile). applied_feeds names the feeds that answered, e.g. ["linear:GB","web:GB","web:global"]; one failing feed degrades to a notice instead of failing the calltvmaze_get_cast toolscope: "show" returns the main cast with character names; scope: "episode" returns that episode's guest cast. include_crew adds the show's crew, or the episode's guest crew (director, writers)name filters by substring of performer, character, or crew role (crew only with include_crew: true). Paged with limit (default 50, max 250) and cursor; cast_total / crew_total count all matching creditsas_self and voice_only; crew credits carry credit_type and no character. A show's cast list does not separate recurring from guest performers, so check an episode's guest cast. Missing credits arrive as a notice, not an errortvmaze_get_person toolquery (name search) or person_id (from cast credits or a candidate). Search returns compact candidates with source scores and never picks one for you; ten candidates may mean the source cap, so narrow the nameperson_id returns the person and one credit_kind: cast (default), guest, or crew; limit (default 50, max 250) and cursor apply only here. Guest episode_id chains to tvmaze_get_cast; show_id chains to tvmaze_get_show or tvmaze_get_episodesperson_not_foundBuilt on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
TVmaze-specific:
Retry-After), and are cached in-processairstamp alone, since airdate / airtime can be a full day off on overnight slotsAgent-friendly output:
time_known: false and a date only, and absent fields render as Not available rather than 0 or ""reason and a recovery hinttvmaze_lookup_show and the title arm of tvmaze_get_next_episode return found: false with guidance for the next callapplied_feeds, pre-page totals, and truncation against the source's capsData comes from TVmaze and is licensed CC BY-SA. Credit TVmaze as the source and keep the url field that every show, episode, and person record carries — linking back is what satisfies attribution. Under ShareAlike, an adaptation of this data must be shared under the same licence.
TVmaze rate-limits to at least 20 calls every 10 seconds per IP address and answers a burst past that with HTTP 429; the server paces itself under that budget and backs off when one arrives. Upstream caches its output for 60 minutes, so a schedule change or a newly announced episode can take up to an hour to appear; the local response cache (TVMAZE_CACHE_TTL_S, default 300 s) sits well inside that window.
A public instance is available at https://tvmaze.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"tvmaze-mcp-server": {
"type": "streamable-http",
"url": "https://tvmaze.caseyjhand.com/mcp"
}
}
}
Add the following to your MCP client configuration file. No API key is required.
{
"mcpServers": {
"tvmaze-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/tvmaze-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"tvmaze-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/tvmaze-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"tvmaze-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/tvmaze-mcp-server:latest"]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
TVMAZE_DEFAULT_TIMEZONE and TVMAZE_DEFAULT_COUNTRY once if the calls should default to somewhere other than UTC and the US.git clone https://github.com/cyanheads/tvmaze-mcp-server.git
cd tvmaze-mcp-server
bun install
cp .env.example .env
# every variable is optional — edit only what you want to override
| Variable | Description | Default |
|---|---|---|
TVMAZE_BASE_URL | TVmaze API base URL. Override to point at an enterprise endpoint. | https://api.tvmaze.com |
TVMAZE_USER_AGENT | User-Agent sent on every upstream request; TVmaze asks that clients identify themselves. | server name, version, and repository URL |
TVMAZE_DEFAULT_TIMEZONE | IANA timezone used when a tool call omits timezone. | UTC |
TVMAZE_DEFAULT_COUNTRY | ISO 3166-1 alpha-2 country used for tvmaze_get_schedule scopes linear and all when country is omitted. | US |
TVMAZE_CACHE_TTL_S | Seconds to hold an upstream response in the in-process cache. 0 disables caching. | 300 |
TVMAZE_MAX_CONCURRENCY | Concurrent upstream requests (1–16). | 4 |
TVMAZE_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds (1000–120000). | 10000 |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for the HTTP server. | 3010 |
MCP_HTTP_ENDPOINT_PATH | Path the MCP server is mounted at. | /mcp |
MCP_SESSION_MODE | HTTP session mode; this server is always stateless. | stateless |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
LOG_TOOL_FAILURE_PAYLOADS | Log a failed tool call's arguments and result (key-name redaction only). | false |
STORAGE_PROVIDER_TYPE | Storage backend. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
See .env.example for the full list of optional overrides.
Build and run:
# One-time build
bun run rebuild
# Run the built server
bun run start:stdio
# or
bun run start:http
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security
bun run test # Vitest test suite
bun run lint:mcp # Validate MCP definitions against spec
docker build -t tvmaze-mcp-server .
docker run --rm -p 3010:3010 tvmaze-mcp-server
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/tvmaze-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers the eight tools, server instructions, and the service lifecycle. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts) and the output schemas they share. |
src/services/tvmaze | TVmaze REST client — pacing, retries, response cache, and normalization into the domain types. |
tests/ | Unit and integration tests mirroring src/. |
docs/ | Design document and the generated project tree. |
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging; every upstream call goes through TvmazeService, never fetch from a handlercreateApp() arrays in src/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.