tabii-mcp 🇹🇷
mcp-name: io.github.mohammad-abbasi-sh/tabii-mcp
Unofficial read-only MCP server for tabii.com, TRT's streaming platform (launched 2023, 11M+ subscribers) — Turkish series, movies, documentaries, kids content and 15 live TRT channels. Catalog search by original Turkish title, full show details (seasons, episodes, cast, languages), live-channel HLS stream URLs, and cast/crew filmographies.
Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with tabii.com or TRT.
For AI agents
Add to your MCP client config (stdio):
{
"mcpServers": {
"tabii": {
"command": "uvx",
"args": ["tabii-mcp==0.1.0"]
}
}
}
Or run locally: python -m tabii_mcp.server (needs mcp<2, curl-cffi).
Tools
| Tool | Description |
|---|---|
tabii_search_content |
Search the catalog by original Turkish title (e.g. "gassal", "mevlana") — language ("tr" default, "en", "es", "ar", "ur"), limit 1..10; id, slug, localized title, original title, type, year, URL per match |
tabii_get_show |
Full detail of one title — show_id or slug (e.g. "gassal"); localized title, original title, type, year, genres, age restriction, seasons with episode titles + durations (capped at 60), cast, directors, writers, description, audio/subtitle languages, badges, trailer count, URL |
tabii_homepage |
Current homepage sections (exclusive content, series, movies, documentary, kids) with their titles — language |
tabii_live_channels |
The 15 live TRT channels (TRT 1, TRT 2, TRT Belgesel, TRT Haber, TRT Spor, TRT Çocuk, TRT World, ...) with watch URL and public HLS stream URL |
tabii_get_person |
One cast/crew member by numeric person id (e.g. Ahmet Kural is 6774) — name, job title, filmography on tabii |
tabii_health |
Reachability probe (homepage + one public show) — ok / blocked / error |
Example output (tabii_search_content / "gassal", language "en"):
{"id": 438813, "slug": "gassal", "title": "The Late Offices",
"original_title": "Gassal", "content_type": "series", "made_year": 2024,
"url": "https://www.tabii.com/en/detail/438813/gassal"}
How it works
tabii.com exposes a public catalog API that needs no login, no API key and no session token: eu1.tabii.com/apigateway/catalog/v1/public/shows/{id} and .../public/persons/{id} (the authenticated variants — search/v1, catalog/v1/show/{id} — return HTTP 401 without a Bearer session token and are not used). The homepage is server-rendered Next.js; its __NEXT_DATA__ JSON carries the featured sections and the 15 live channels with their public HLS URLs. Search scans the site's own sitemaps (EN + TR merged: 1,306 shows, 1,180 people — cached 6h) and resolves the top matches' localized titles through the public shows API. Two things are documented, not worked around: the sitemaps do not cover the whole catalog (some licensed titles, e.g. The Hobbit, and some originals are absent — they are still reachable by id, e.g. via the homepage sections), and genre/category browse pages are client-side shells fed by a login-gated endpoint, so no genre-browse tool is offered. Playback needs a logged-in Tabii Premium session and is out of scope — this server is catalog metadata only. Transport uses Chrome TLS impersonation (curl-cffi, rotation); requests are spaced ~0.8s apart; everything is read-only.
Install
uvx tabii-mcp==0.1.0 # run directly (needs uv)
# or
pip install tabii-mcp==0.1.0
tabii-mcp # starts the MCP server on stdio
Tests
python -m venv .venv && .venv/bin/pip install -e .
.venv/bin/python -m unittest discover -s tests -v
Offline tests run on recorded fixtures (real pages/API responses fetched 2026-11-11); live tests hit tabii.com and the public API. Tests green at build time (see repo for counts) plus an MCP stdio smoke test.
Roadmap
- Genre browse if tabii ever publishes a session-free endpoint
- "New this week" / recently-added feed from the homepage sections
- Episode-level detail (per-episode description, audio/subtitle tracks)
License
MIT — see LICENSE.
Built by Mohammad Abbasi — Almanibama · mabbasi.ir
Metadata
Release files for tabii-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tabii_mcp-0.1.0.tar.gz | 177.5 kB | With provenance | Details for tabii_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tabii_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tabii_mcp-0.1.0-py3-none-any.whl |
Total release size: 192.7 kB
Release files / tabii_mcp-0.1.0.tar.gz
| Download URL | tabii_mcp-0.1.0.tar.gz |
|---|---|
| Size | 177.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f531d9e9ef9f4b67e290280997d2a1ab65f772dc7ca1cadc83aff31ca314018a
|
|
BLAKE2b-256 checksum How to use checksums |
87e4de06572d03d1f97c8359bdfb313ccc7afa77151ff31cff4b31a29f3d903d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / tabii_mcp-0.1.0-py3-none-any.whl
| Download URL | tabii_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80ae933f919d67e6058908e571494ece9e6a9f523e29dcc9dd9bbbc3eca7f01f
|
|
BLAKE2b-256 checksum How to use checksums |
813f05f13e3f7dfee47a08bc29ab5dda29ba1949a316f718dd6c62b67da6728d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for tabii-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tabii_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.