tvmaze-mcp-server
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Public Hosted Server: https://tvmaze.caseyjhand.com/mcp
Overview
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.
Tools
Tool | Description |
| Fuzzy title search returning up to 10 shows with channel, status, genres, rating, and external catalog ids |
| Full profile for one TVmaze id — weekly slot, season list, and the previous and next episode |
| Resolve a show from its IMDb, TheTVDB, or TVRage id into the matching TVmaze profile |
| When a show's next episode airs, by TVmaze id or title, converted to a viewer timezone |
| Episode guide for one season, one air date, or the whole run, with air times, runtimes, and synopses |
| Episodes airing on a date — broadcast and cable networks in one country, streaming services, or both |
| A show's credited cast and the characters they play, optionally crew; or one episode's guest cast, optionally with its director and writers |
| Search person names for candidates, or page one person's cast, guest, or crew credits |
Related MCP server: moviefinder-mcp
Capability reference
tvmaze_search_shows tool
Fuzzy-matches
queryagainst every show title, so minor misspellings still resolve; blank titles are rejectedReturns at most 10 shows with no pagination; output reports
shown/capand points a full or empty result to a narrower title ortvmaze_lookup_showRows carry the shared show summary plus
match_score, comparable only within one result set
tvmaze_get_show tool
show_idfromtvmaze_search_shows,tvmaze_lookup_show, or a schedule row; optional IANAtimezonefor episode timesReturns the full profile (
schedule_days/schedule_time, optionalschedule_timezone,official_site,externals) with every season plusnext_episode/previous_episode. ARunningshow with nothing announced comes back with a notice pointing atprevious_episodeAn unknown
show_idfails asshow_not_found
tvmaze_lookup_show tool
sourceisimdb(attid),thetvdb, ortvrage(defunct, present only in older records), paired withexternal_idIMDb ids also accept bare digits, uppercase
TT, andimdb.comtitle URLsA show absent from TVmaze is a result, not an error:
found: falseplusguidancerouting totvmaze_search_shows. A hit echoessourceandexternal_idand returns the same show summary as search
tvmaze_get_next_episode tool
by: "id"takes a TVmaze id;by: "title"resolves a non-blank title through a stricter single-match search thantvmaze_search_showsAir times render in the requested IANA
timezone;time_known: falsemeans no clock time was announced, so only the date is reliableMisses carry a typed
miss_reason:show_not_found(title) orno_scheduled_episode(between seasons, withprevious_episode). Ashow_idthat resolves to nothing throwsshow_not_found_by_id
tvmaze_get_episodes tool
seasonlists 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 asinvalid_date, andseason_not_foundnames the seasons that existair_datematches the source'sairdate, which can differ by a day from an episode'slocal_dateon late-night slotsinclude_specialsdefaults to false, and each listing reports how many specials it filtered out.limit(default 50, max 250) sets page size;next_cursor/has_morecontinue the listing andtotalCountcounts before paging
tvmaze_get_schedule tool
scopepicks the feed:linearis one country's broadcast and cable networks plus its own streaming services,streamingis global services whencountryis omitted and that country's local ones when given,allmerges bothdatedefaults to today in the requestedtimezone;countryis ISO 3166-1 alpha-2 (the United Kingdom isGB) and falls back to the configured default forlinearandall; optionalchannelfilters by exact, case-insensitive channel name;limitdefaults to 50 (max 250)Entries carry
feed(linear/streaming) and a compactshowreference (tvmaze_get_showreturns the full profile).applied_feedsnames the feeds that answered, e.g.["linear:GB","web:GB","web:global"]; one failing feed degrades to a notice instead of failing the call
tvmaze_get_cast tool
scope: "show"returns the main cast with character names;scope: "episode"returns that episode's guest cast.include_crewadds the show's crew, or the episode's guest crew (director, writers)Optional
namefilters by substring of performer, character, or crew role (crew only withinclude_crew: true). Paged withlimit(default 50, max 250) andcursor;cast_total/crew_totalcount all matching creditsCast credits carry
as_selfandvoice_only; crew credits carrycredit_typeand 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 error
tvmaze_get_person tool
Supply exactly one of
query(name search) orperson_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 nameA
person_idreturns the person and onecredit_kind:cast(default),guest, orcrew;limit(default 50, max 250) andcursorapply only here. Guestepisode_idchains totvmaze_get_cast;show_idchains totvmaze_get_showortvmaze_get_episodesNo candidates or credits is an empty success; a missing id is
person_not_found
Features
Built 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:
Keyless — no account, no API key, and every tool works on a fresh install with nothing configured
Requests are paced under TVmaze's per-IP limit, back off on 429 (honoring
Retry-After), and are cached in-processAir times are computed from
airstampalone, sinceairdate/airtimecan be a full day off on overnight slotsCommunity-authored HTML summaries are stripped to plain text
Agent-friendly output:
No fabricated clock times: a record with no announced time reports
time_known: falseand a date only, and absent fields render asNot availablerather than0or""Typed errors on every tool, each with a
reasonand a recovery hintResolution misses are results:
tvmaze_lookup_showand the title arm oftvmaze_get_next_episodereturnfound: falsewithguidancefor the next callOutput states what a call covered: the echoed query,
applied_feeds, pre-page totals, and truncation against the source's caps
Data and licensing
Data 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.
Getting started
Public Hosted Instance
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"
}
}
}Self-Hosted / Local
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/mcpPrerequisites
Bun v1.4.0 or higher (or Node.js v24+).
No TVmaze account or API key. Set
TVMAZE_DEFAULT_TIMEZONEandTVMAZE_DEFAULT_COUNTRYonce if the calls should default to somewhere other than UTC and the US.
Installation
Clone the repository:
git clone https://github.com/cyanheads/tvmaze-mcp-server.gitNavigate into the directory:
cd tvmaze-mcp-serverInstall dependencies:
bun installConfigure environment (optional):
cp .env.example .env
# every variable is optional — edit only what you want to overrideConfiguration
Variable | Description | Default |
| TVmaze API base URL. Override to point at an enterprise endpoint. |
|
|
| server name, version, and repository URL |
| IANA timezone used when a tool call omits |
|
| ISO 3166-1 alpha-2 country used for |
|
| Seconds to hold an upstream response in the in-process cache. |
|
| Concurrent upstream requests (1–16). |
|
| Per-request timeout in milliseconds (1000–120000). |
|
| Transport: |
|
| Port for the HTTP server. |
|
| Path the MCP server is mounted at. |
|
| HTTP session mode; this server is always |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Directory for log files (Node.js only). |
|
| Log a failed tool call's arguments and result (key-name redaction only). |
|
| Storage backend. |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun 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
docker build -t tvmaze-mcp-server .
docker run --rm -p 3010:3010 tvmaze-mcp-serverThe 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.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| TVmaze REST client — pacing, retries, response cache, and normalization into the domain types. |
| Unit and integration tests mirroring |
| Design document and the generated project tree. |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging; every upstream call goes throughTvmazeService, neverfetchfrom a handlerRegister new tools in the
createApp()arrays insrc/index.tsKeep the upstream boundary in the service: validate raw → normalize to the domain type → return the output schema, and never fabricate a missing field — an absent air time stays absent
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
TVMaze MCP — TV show metadata, episodes, schedules (no auth)
Unlock a world of television with the TV Maze MCP server. Effortlessly search for shows by name or
Movies MCP — wraps iTunes Search API (movies, free, no auth) and TVmaze API (TV shows, free, no…
Trakt MCP — TV/movie metadata + watch tracking signals
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that wraps The Movie Database (TMDB) API, enabling search for movies and TV shows, retrieval of movie details, recommendations, similar movies, trending content, streaming providers, and movie discovery.8-
- FlicenseAqualityDmaintenanceAn MCP server that wraps the TMDB API, enabling search of movies and TV shows, retrieval of details, trending titles, recommendations, and streaming provider information.8-
- AlicenseAqualityAmaintenanceMCP server for The Movie Database (TMDB): search and look up movies, TV shows and people, and read IMDb/Rotten Tomatoes/Metacritic ratings (via OMDb) in the same call.233271 npm4MIT
- AlicenseNot gradedqualityBmaintenanceEnables searching TV show metadata, episodes, and schedules via the TVMaze API with no authentication required.207 npmMIT