mcp-medusa
mcp-medusa
Medusa 애니메이션 자동화 도구를 노출하는 MCP 서버입니다.
도구
add_anime
POST /api/v2/anime/add를 사용하여 Medusa에 애니메이션을 추가합니다.
일반적인 인자:
{
"anime_id": 62076,
"source": "myanimelist",
"root_dir": "/media/videos/Anime",
"anime": true,
"scene": false,
"status": "wanted",
"initial_release_group": "SubsPlease",
"fallback_release_groups": ["SubsPlease", "Erai-raws"],
"release_group_fallback_days": 7
}인자:
인자 | 필수 | 기본값 | 허용 값 / 참고 |
| 예 | 없음 | 소스별 애니메이션 ID입니다. |
| 예 | 없음 | 새 시리즈의 Medusa 루트 디렉터리 경로입니다. |
| 아니요 |
| 대소문자 무시: |
| 아니요 |
| 보통 |
| 아니요 |
| scene 번호 매기기를 활성화할지 여부입니다. |
| 아니요 |
| Medusa 에피소드 상태 문자열로, 일반적으로 |
| 아니요 | 없음 | 허용 목록에 추가할 첫 번째/활성 릴리스 그룹입니다(예: |
| 아니요 | 없음 | 순환할 릴리스 그룹의 정렬된 목록입니다. 결정적 동작을 위해 초기 그룹을 먼저 포함하세요. |
| 아니요 |
| 에피소드 방영일로부터 다음 폴백 그룹으로 전환하기까지의 일수입니다. |
| 아니요 | Medusa 생성 | 선택적 시리즈 폴더 이름 재정의입니다. |
seasonal_anime
GET /api/v2/anime/seasonal을 사용하여 Medusa 계절별 애니메이션을 조회합니다.
{
"year": 2026,
"season": "SPRING",
"source": "myanimelist",
"source_sort": "anime_num_list_users",
"page": 1,
"limit": 10,
"fields": ["animeId", "displayTitle", "year", "animeType", "genres", "score", "imageUrl"]
}현재 애니메이션 시즌 기본값을 사용하는 최소 호출:
{}인자:
인자 | 필수 | 기본값 | 허용 값 / 참고 |
| 아니요 | 현재 연도 | 생략하면 MCP 서버의 현재 날짜로 계산됩니다. |
| 아니요 | 현재 애니메이션 시즌 | 대소문자 무시: |
| 아니요 |
| 대소문자 무시: |
| 아니요 |
| 대소문자 무시: |
| 아니요 |
| Medusa 결과 페이지 번호. |
| 아니요 |
| 페이지당 결과 수. Medusa는 |
| 아니요 |
| 유지할 응답 필드의 선택적 목록. 생략하거나 null이면 전체 Medusa 애니메이션 객체가 반환됩니다. |
현재 애니메이션 시즌 기본값은 다음 월 매핑을 사용합니다:
월 | 시즌 |
1월-3월 |
|
4월-6월 |
|
7월-9월 |
|
10월-12월 |
|
유용한 fields 값은 다음과 같습니다:
["animeId", "source", "displayTitle", "titleRomanji", "titleEnglish", "year", "season", "animeType", "status", "episodes", "episodeInfo", "genres", "studios", "score", "numListUsers", "imageUrl", "anidbId", "tvdbId", "malId", "url", "directoryName"]resolve_anime_title
source, includeDetails=true, limit과 함께 GET /api/v2/anime/search를 사용하여 제목을 보강된 Medusa/MyAnimeList 후보로 해석합니다.
{
"title": "Frieren",
"source": "myanimelist",
"limit": 10,
"min_score": 88,
"score_gap": 8
}decision을 match, ambiguous, no_match로 반환하고, 점수가 매겨진 후보도 반환합니다.
anime_info
제목이나 MAL ID로 추가 작업 없이 간결한 애니메이션 세부 정보와 Medusa 존재 여부를 반환합니다.
{
"title": "Frieren",
"source": "myanimelist"
}또는:
{
"mal_id": 52991,
"source": "myanimelist"
}seasonal_candidates
잔여 OpenClaw 특정 휴리스틱을 적용하기 전에 Medusa의 서버 측 계절 필터를 사용하여 계절 후보를 가져옵니다.
{
"year": 2026,
"season": "SUMMER",
"source": "myanimelist",
"limit": 25,
"min_num_list_users": 3000,
"fields": ["animeId", "displayTitle", "animeType", "genres", "numListUsers", "synopsis"]
}MCP 도구는 페이로드 크기를 줄이기 위해 animeType=TV, minNumListUsers, excludeGenres=Kids,Boys Love, matched=false, firstSeasonOnly=true, fields 같은 Medusa 필터를 전송합니다.
prepare_seasonal_review
계절 후보 항목을 보수적인 검토 지침과 함께 AI 검토 패킷으로 압축합니다.
{
"items": [{"animeId": 62076, "displayTitle": "Example Title"}],
"max_items": 25
}resolve_and_add_anime
Medusa의 bulk-add 엔드포인트를 통해 단일 추가를 해석하고 드라이런 또는 실행합니다. 쓰기 작업에는 execute: true가 필요합니다.
{
"title": "Frieren",
"root_dir": "/media/videos/Anime",
"execute": false
}scheduler_status
Medusa 스케줄러 스레드 상태와 큐 상태를 반환합니다. 애니메이션 추가가 멈추거나 확인되지 않은 것처럼 보일 때 사용합니다.
{}search_tvdb
TVDB ID를 위해 쇼 이름으로 TVDB를 검색합니다. AniDB-to-TVDB 매핑 문제로 애니메이션 추가가 실패할 때 폴백으로 사용합니다.
{ "query": "Dorohedoro", "language": "en" }add_series
POST /api/v2/series를 통해 TVDB ID로 시리즈를 직접 추가합니다. 애니메이션 해석을 완전히 우회합니다. add_anime이 실패하면 search_tvdb 이후에 사용합니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 예 | 없음 | TVDB 쇼 ID( |
| 예 | 없음 | Medusa 루트 디렉터리 경로. |
| 아니요 |
| |
| 아니요 |
|
|
| 아니요 | 없음 | 인덱서 언어 재정의. |
| 아니요 | 없음 | 사용자 정의 시리즈 폴더 이름 재정의. |
| 아니요 |
| |
| 아니요 |
|
{ "tvdb_id": 370761, "root_dir": "/media/videos/Anime" }set_episode_status
POST /api/v2/internal/updateEpisodeStatus를 통해 시리즈의 에피소드 상태를 설정합니다. TVDB 메타데이터가 동기화되지 않아 Medusa가 사용 가능해야 할 에피소드를 다운로드하지 않을 때 사용합니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 예 | 없음 | 시리즈 슬러그(예: |
| 예 | 없음 | 에피소드 슬러그 목록(예: |
| 아니요 |
| 대상 상태: |
{ "series_slug": "tvdb370761", "episodes": ["s01e01", "s01e02"], "status": "wanted" }force_search
PUT /api/v2/search/manual를 통해 특정 에피소드에 대한 수동 검색을 강제합니다. 활성화된 제공자를 적극적으로 조회하고 일치하는 릴리스를 가져오는 제공자 검색을 큐에 넣습니다. 에피소드를 "wanted"로 설정한 후 사용합니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 예 | 없음 | 시리즈 슬러그(예: |
| 예 | 없음 | 에피소드 슬러그 목록(예: |
{ "series_slug": "tvdb370761", "episodes": ["s01e01"] }update_series_quality
PATCH /api/v2/series/{slug}를 통해 기존 시리즈의 허용 또는 선호 품질을 업데이트합니다. 사람이 읽을 수 있는 품질 이름을 사용합니다. 생략된 필드는 변경되지 않습니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 예 | 없음 | 시리즈 슬러그(예: |
| 아니요 | 없음 | 허용 목록의 품질 이름. |
| 아니요 | 없음 | 선호 목록의 품질 이름. |
품질 이름: "SDTV", "SD DVD", "720p HDTV", "RawHD", "1080p HDTV", "720p WEB-DL", "1080p WEB-DL", "720p BluRay", "1080p BluRay", "4K UHD TV", "8K UHD TV", "4K UHD WEB-DL", "8K UHD WEB-DL", "4K UHD BluRay", "8K UHD BluRay".
{ "series_slug": "tvdb370761", "allowed_qualities": ["1080p BluRay", "720p HDTV"] }organize_season_folders
시즌 폴더를 활성화하고 파일 이름을 바꾸지 않고 에피소드 파일을 Season XX/ 하위 디렉터리로 이동합니다. type=ORGANIZE_SEASON_FOLDERS와 함께 POST /api/v2/series/{slug}/operation을 호출합니다.
여러 시즌으로 구성된 애니메이션의 모든 파일이 단일 디렉터리에 있고 Plex가 다중 시즌 단일 폴더 지원 부족으로 에피소드를 누락할 때 사용합니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 예 | 없음 | 시리즈 슬러그(예: |
{ "series_slug": "tvdb370761" }postprocess
디렉터리에서 Medusa 수동 후처리를 트리거합니다. 다운로드/스테이징 폴더를 스캔하고 일치하는 에피소드를 해당 쇼 폴더로 이동합니다. MEDUSA_URL / MEDUSA_API_KEY 자격 증명을 재사용합니다. 자동 후처리 실패 후 스테이징에 남은 파일(예: 다운로드 핸들러가 처리하지 못한 잘못된 이름의 릴리스)을 정리할 때 사용합니다. POST /api/v2/postprocess를 호출합니다.
중요: directory 인자는 Medusa 코어가 해석하므로 Medusa 컨테이너 내부에서 보이는 경로(예: /data/medusa)여야 하며, 별도의 Hermes 컨테이너에서 보이는 경로가 아니어야 합니다.
인자:
인자 | 필수 | 기본값 | 참고 |
| 아니요 |
| 스캔할 Medusa 컨테이너 경로. Hermes 마운트가 아닌 Medusa 코어의 관점과 일치해야 합니다. |
| 아니요 |
|
|
| 아니요 |
| 기존 에피소드 파일을 덮어씁니다. |
| 아니요 |
|
|
{ "proc_dir": "/data/medusa", "proc_type": "auto" }bulk_add_anime
POST /api/v2/anime/bulk-add를 통해 여러 애니메이션 추가를 드라이런 또는 실행합니다. 쓰기 작업에는 execute: true가 필요합니다.
{
"items": [{"animeId": 62076, "displayTitle": "Example Title", "aiDecision": "add"}],
"decision_field": "aiDecision",
"allowed_decisions": ["add"],
"execute": false
}Related MCP server: MyAnimeList MCP Server
구성
환경 변수:
변수 | 필수 | 설명 |
| 예 | Medusa의 기본 URL, 예: |
| 권장 |
|
| 아니요 | Medusa가 하위 경로에서 호스팅되는 경우의 웹 루트 |
| 아니요 | HTTP 타임아웃(초), 기본값 |
| 아니요 |
|
| 아니요 | SSE 바인드 호스트, 기본값 |
| 아니요 | SSE 바인드 포트, 기본값 |
| 아니요 | MCP SDK Host/Origin 검증 활성화, 기본값 |
| 아니요 | DNS 리바인딩 보호가 활성화된 경우 허용되는 |
| 아니요 | DNS 리바인딩 보호가 활성화된 경우 허용되는 |
컨테이너/SSE 배포의 경우 MCP_HOST=0.0.0.0을 유지하거나 명시적으로 설정하세요. DNS 리바인딩 보호는 기본적으로 비활성화되어 있습니다. 포트 매핑, 리버스 프록시, LAN 호스트 이름이 일반적으로 421 Misdirected Request 오류를 유발하기 때문입니다. 이 기능을 활성화하려면 외부에서 접근 가능한 호스트와 포트를 MCP_ALLOWED_HOSTS에 포함하세요.
로컬에서 실행
pip install -e .
MEDUSA_URL=http://localhost:8081 MEDUSA_API_KEY=... mcp-medusaSSE의 경우:
MEDUSA_URL=http://localhost:8081 MEDUSA_API_KEY=... mcp-medusa --transport sse --port 8000Docker
이미지는 기본적으로 포트 8000에서 SSE로 동작합니다.
docker build -t mcp-medusa .
docker run --rm -p 8000:8000 \
-e MEDUSA_URL=http://medusa:8081 \
-e MEDUSA_API_KEY=... \
mcp-medusa대신 stdio를 사용하려면:
docker run --rm -i \
-e MEDUSA_URL=http://medusa:8081 \
-e MEDUSA_API_KEY=... \
mcp-medusa --transport stdioCI/CD
이 저장소는 완전 자동화된 파이프라인을 사용합니다(수동 릴리스 단계 없음):
main에 PR을 엽니다.ci.yml워크플로우는tests/test_boot.py를 실행하며, 이 테스트는 실제로 서버(stdio + SSE)를 시작하고FastMCP구성, 예상 도구 등록, 두 전송 방식의 바인딩을 검증합니다. 이는 부팅/가져오기 충돌이 배포되기 전에 잡아내는 게이트입니다.자동 병합. 부팅 테스트가 통과하면
enable-auto-merge작업이ACTIONS_PAT저장소 시크릿을 사용하여 PR을(squash) 병합합니다(기본GITHUB_TOKEN은 이 저장소에서 PR을 병합할 수 없습니다).자동 릴리스 + 빌드.
main에 푸시하면merge-release.yml이 트리거되어 부팅 테스트를 다시 실행하고,main에서 패치 버전이 올라간 릴리스(v0.0.N+1)를 생성하며, 같은 워크플로우에서 Docker 이미지를 빌드하고 푸시합니다(빌드는 별도의 릴리스 트리거 워크플로우가 아닌merge-release.yml에 통합되어 있습니다. GitHub가GITHUB_TOKEN을 통해 워크플로우가 생성한 릴리스의release: published이벤트를 억제하기 때문입니다).
테스트를 로컬에서 실행
uv venv
uv pip install -e ".[test]"
uv run pytest tests/ -v부팅 테스트는 실제 서버를 실행하므로 Docker가 필요 없습니다. server.py 시작 경로에서 무엇이든 변경했다면 푸시 전에 이 테스트를 실행하세요. 서버가 부팅에 실패하면 CI가 병합을 차단합니다.
필수 시크릿
ACTIONS_PAT— Contents: read+write 및 Pull requests: read+write 권한이 있는 세분화된 PAT(또는 클래식repo토큰)로, 저장소 시크릿으로 저장됩니다.ci.yml에서 PR 병합에 사용됩니다. (기본GITHUB_TOKEN은 이 저장소에서 병합 권한이 없습니다.)DOCKER_USERNAME/DOCKER_PASSWORD—docker-release.yml에서 이미지 푸시에 사용됩니다.
Available Tools
21 toolsadd_animeA
Add an anime series to Medusa via /api/v2/anime/add.
Note: Some anime may fail with "no name on TVDBv2" due to AniDB→TVDB ID mapping issues. As a workaround, use search_tvdb to find the correct TVDB ID, then add_series to add it directly.
Inputs: anime_id (required), root_dir (required), anime, scene, +7 more.
add_seriesA
Add a series to Medusa directly by TVDB ID via POST /api/v2/series.
Use this as a fallback when add_anime fails due to AniDB-to-TVDB mapping issues. First find the correct TVDB ID with search_tvdb, then add it here. This bypasses anime resolution entirely and adds via the standard series endpoint.
quality values: "N/A", "Unknown", "SDTV", "SD DVD", "720p HDTV", "RawHD", "1080p HDTV", "720p WEB-DL", "1080p WEB-DL", "720p BluRay", "1080p BluRay", "4K UHD TV", "8K UHD TV", "4K UHD WEB-DL", "8K UHD WEB-DL", "4K UHD BluRay", "8K UHD BluRay". When omitted, Medusa's global quality defaults are used.
Inputs: tvdb_id (required), root_dir (required), anime, scene, +6 more.
anime_infoA
Return compact anime details and Medusa presence by title or MAL ID. Does not add anime.
Inputs: limit, title, mal_id, source, +3 more. Returns: object
bulk_add_animeA
Dry-run or add multiple anime items. Skips filterDecision=skip; execute must be true for writes.
Inputs: items (required), source, execute, root_dir, +9 more. Returns: object
create_aliasA
Create a local scene exception (alias) for a series.
This enables Medusa to recognize an alternative release title when searching, allowing it to match releases that use a different naming scheme. Only local (user-managed) scene exceptions can be created via this tool.
Inputs: name (required), series_slug (required), season. Returns: object
delete_aliasB
Delete a scene exception (alias) by ID.
Inputs: alias_id (required). Returns: result
diagnose_release_groupsA
Diagnose release group issues for a series by comparing config vs available releases.
Checks provider cache first; if empty, triggers a manual search and retries. Returns a structured diagnosis with recommendation.
Inputs: series_slug (required), season, episode, max_retries, +1 more. Returns: object
force_searchA
Force a manual search for specific episodes via PUT /api/v2/search/manual.
Queues a manual search that actively queries providers and snatches matching releases. Use after setting episode status to "wanted" when you want to immediately search for and download episodes.
Inputs: episodes (required), series_slug (required).
get_aliasesA
List scene exceptions (aliases) for a series.
Scene exceptions are alternative episode/release titles that Medusa recognizes when searching. This tool reads them; use create_alias to add new ones.
Inputs: series_slug (required), season. Returns: result
organize_season_foldersA
Move episodes into Season XX/ subdirectories without renaming files.
Enables season folders on the series and moves all downloaded episode files into Season XX/ subdirectories, preserving original filenames. Also moves associated files (subtitles, etc.).
Use this when:
A multi-season anime has all files in a flat directory
Plex is missing episodes due to poor multi-season-in-one-folder support
A second season was added years later to a show originally added flat
Calls POST /api/v2/series/{slug}/operation with type=ORGANIZE_SEASON_FOLDERS.
Inputs: series_slug (required). Returns: object
postprocessA
Trigger Medusa manual post-processing on a directory.
Scans directory (a download/staging folder) and moves matched
episodes into their show folders. Reuses Medusa credentials from
MEDUSA_URL / MEDUSA_API_KEY. Use this to clear files stranded in
staging after a failed auto-post-process (e.g. a mis-named release
that the download handler bailed on).
IMPORTANT: directory is interpreted by MEDUSA CORE, so it must be
the path as seen inside the Medusa container (e.g. /data/medusa),
NOT the path visible from the Hermes container.
Inputs: directory, process_type, force_replace, process_method. Returns: object
prepare_seasonal_reviewC
Compact seasonal candidates into an AI review packet.
Inputs: items (required), max_items. Returns: object
resolve_and_add_animeB
Resolve and optionally add one anime. Dry-run unless execute is true.
Inputs: limit, title, mal_id, source, +10 more. Returns: object
resolve_anime_titleB
Resolve an anime title to MAL candidates with match/ambiguous/no_match decision.
Inputs: title (required), limit, fields, source, +2 more. Returns: object
scheduler_statusA
Return Medusa scheduler and queue status.
Shows whether each scheduler thread is alive, enabled, and currently active. Useful for diagnosing stuck queues.
Inputs: no named parameters. Returns: object
search_tvdbA
Search TVDB for a show by name and return matching TVDB IDs.
Use this when an anime add fails due to AniDB-to-TVDB mapping issues. Find the correct TVDB ID here, then add the show with add_series.
Inputs: query (required), language. Returns: result
seasonal_animeB
Query a paginated seasonal anime page from Medusa, optionally returning only selected fields.
Season, source, and source_sort are case-insensitive.
Inputs: page, year, limit, fields, +3 more.
seasonal_candidatesC
Fetch server-filtered seasonal anime candidates and apply residual preference heuristics.
Inputs: year, limit, fields, season, +5 more. Returns: object
set_episode_statusA
Set episode statuses for a series via PATCH /api/v2/episodes/{series_slug}.
Use when TVDB metadata is out of sync with actual episode status and Medusa is not downloading episodes that should be available. Set affected episodes to "wanted" to force Medusa to search for them.
Uses the same PATCH endpoint as the Medusa Web UI, so it can change UNAIRED episodes to WANTED unlike the internal bulk-update endpoint.
Inputs: episodes (required), series_slug (required), status. Returns: object
update_release_groupsA
Update release group configuration for a series.
Sends PATCH /api/v2/series/{slug} with the specified config.release.* fields. Only the provided fields are changed; omitted fields are left as-is.
Inputs: series_slug (required), blacklist, whitelist, fallback_days, +1 more. Returns: object
update_series_qualityA
Update allowed and/or preferred qualities for an existing series.
Sends PATCH /api/v2/series/{slug} with config.qualities.* fields. Only the provided fields are changed; omitted fields are left as-is.
quality values: "N/A", "Unknown", "SDTV", "SD DVD", "720p HDTV", "RawHD", "1080p HDTV", "720p WEB-DL", "1080p WEB-DL", "720p BluRay", "1080p BluRay", "4K UHD TV", "8K UHD TV", "4K UHD WEB-DL", "8K UHD WEB-DL", "4K UHD BluRay", "8K UHD BluRay".
Inputs: series_slug (required), allowed_qualities, preferred_qualities.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
The core Medusa operations (aliases, release groups, searches, postprocessing) are clearly separated, but the anime-related tools have overlapping boundaries: seasonal_anime, seasonal_candidates, prepare_seasonal_review, resolve_anime_title, and resolve_and_add_anime all seem to cover similar discovery/dedup/resolution steps. Add flows are also split across add_series, add_anime, resolve_and_add_anime, and bulk_add_anime, so an agent may struggle to pick the right one without careful reading.
Tool naming is overwhelmingly snake_case with a verb_noun pattern (create_alias, set_episode_status, update_series_quality, bulk_add_anime). Only a few tools deviate into noun-first or adjective-first forms such as anime_info and seasonal_anime, but the convention is still predictable overall.
At 21 tools, the surface is on the upper edge of comfort and feels heavy for a cohesive server. The count is justifiable given the two intertwined domains of TV-series management and anime seasonal workflows, but some tools appear to cover niche pipeline stages that a smaller set could absorb.
The set covers many operational needs: adding series, adjusting statuses, searching, postprocessing, quality, season folders, aliases, scheduler status, and anime fetching. However, it lacks a general way to list or retrieve an existing series' slug/config, and there is no update path for aliases—only create/delete—so agents cannot fully reconcile or inspect existing state before modifying it.
Maintenance
Related MCP Connectors
Unofficial AniList MCP — wraps AniList GraphQL API (free, no auth)
Anime Garden MCP for anime torrent discovery.
Unofficial Jikan MCP — wraps the Jikan v4 API (anime/manga data, free, no auth)
TVMaze MCP — TV show metadata, episodes, schedules (no auth)
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides MCP access to the BangumiTV API, allowing users to retrieve and interact with anime, manga, music, and game information through natural language queries.1727-
- AlicenseBqualityDmaintenanceMCP Server for interacting with the MyAnimeList API, allowing LLM clients to access and interact with anime, manga and more.154MIT
- AlicenseNot gradedqualityAmaintenanceEnables searching Overseerr media, retrieving TMDB-backed details, and submitting movie or TV requests through MCP tools.5MIT
- AlicenseBqualityDmaintenanceEnables control and management of a self-hosted media stack (Radarr, Sonarr, Prowlarr, SABnzbd, qBittorrent) through natural language via MCP.15GPL 3.0