mal-mcp
Provides tools to access and analyze a user's MyAnimeList data including watch list, scores, episode progress, and public anime catalog.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mal-mcp analyze my anime taste"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
myanimelist-mcp
An MCP server that exposes your MyAnimeList data — watch list, scores, progress, rankings, recommendations — as tools, plus a premium MCP Apps UI that renders those results as an interactive, anime-styled interface right inside the chat. Any assistant that speaks MCP can analyze your taste, browse seasons, and edit your list; on hosts that support MCP Apps it does so through the UI below.
Python 3.12 · FastMCP 3 (stdio) · React + Vite for the UI.
Installation
Requires uv. No clone, no build, no Docker.
uvx myanimelist-mcpThe server speaks MCP over stdio: it prints nothing and waits on stdin for JSON-RPC, so
running it by hand looks like a hang — that is correct behaviour. Your MCP client is what
launches it. Add it to your client config — macOS
~/Library/Application Support/Claude/claude_desktop_config.json,
Windows %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"myanimelist": {
"command": "uvx",
"args": ["myanimelist-mcp"],
"env": {
"MAL_CLIENT_ID": "your-client-id",
"MAL_CLIENT_SECRET": "your-client-secret",
"MAL_REFRESH_TOKEN": "your-refresh-token",
"MAL_TIMEZONE": "Europe/Istanbul"
}
}
}
}Then quit and reopen the client completely. See Authentication for how to get those credentials.
spawn uvx ENOENT? Desktop clients launch servers with a minimalPATHthat usually excludes~/.local/bin. Runwhich uvxand put the absolute path in"command".
Your credentials live in that file in plaintext, and stderr from this server is persisted by some clients (e.g.
~/Library/Logs/Claude/). Considerchmod 600on the config, and revoke the MAL token if you ever share logs.
For Claude Code:
claude mcp add --env MAL_CLIENT_ID=… --env MAL_REFRESH_TOKEN=… \
--transport stdio myanimelist -- uvx myanimelist-mcpPinning a version, or installing with pip instead:
uvx --from 'myanimelist-mcp==X.Y.Z' myanimelist-mcp
pip install myanimelist-mcp # then "command": "myanimelist-mcp"
# or "command": "python", "args": ["-m", "mal_mcp"]Related MCP server: MyAnimeList MCP Server
The interface
Each read tool ships a ui:// app resource alongside its text summary, so hosts that support
MCP Apps render the result as a
live view. The model still receives the compact text summary; the full data travels to the
iframe as structured content. Where the host has no MCP Apps support, the tools degrade to
those text summaries and everything still works.




The detail and list views edit your MAL entries in place (status / score / progress) and navigate between titles — all through the same tools, so nothing UI-only happens behind the model's back. The theme follows the host's light/dark mode; cover art loads from MAL's CDN.
Tools
Anime
Tool | Description |
| A page of your list: title, cover, watch status, score, episode progress, genres, community mean, studios. |
| Locally computed summary: status/score/genre/media-type/decade distributions, total episodes, estimated watch time, user-vs-community score deviation, top studios. |
| Public catalog search (compact results with covers, truncated synopsis). |
| Full public detail incl. related anime, recommendations, statistics, and your own list entry if present. |
| Token-efficient raw export of the whole list (grouped by status, sorted by score) for the calling model to analyze — this tool itself performs no analysis. |
Manga
Tool | Description |
| Public manga catalog search (chapters/volumes, authors, genres). |
| Full manga detail incl. authors, serialization magazines, related works, recommendations, and your own entry if present. |
| A page of your manga list with chapter/volume progress. |
Discovery
Tool | Description |
| MAL's official rankings: all, airing, upcoming, tv, ova, movie, special, bypopularity, favorite. |
| Manga rankings: all, manga, novels, oneshots, doujin, manhwa, manhua, bypopularity, favorite. |
| Anime of one broadcast season (winter/spring/summer/fall). |
| MAL's personalized suggestions for the authenticated user. |
| Your personal weekly airing calendar: the currently-airing anime on your |
Users
Tool | Description |
| Your profile + lifetime anime statistics. MAL exposes this only for |
| Another user's public anime list (403 usually = private list or unknown user). |
| Another user's public manga list. |
Write tools — these modify your MAL list
Tool | Description |
| Update score/status/episode progress/tags — or add the anime to the list. Only provided fields change. |
| Permanently remove an anime from the list (cannot be undone). |
| Same as the anime variant, with chapter/volume progress. |
| Permanently remove a manga from the list. |
Aggregate tools (get_user_stats, analyze_taste) fetch the entire list in one paginated
pass (safety cap: 20,000 entries — beyond that a truncated/WARNING marker is included).
paging.next URLs are validated (https + api.myanimelist.net) before being followed, so
the bearer token can never be sent elsewhere. Verified MAL API facts (fields syntax,
pagination, limits, error shapes) are documented in NOTES.md.
Development
uv sync # install Python dependencies
uv run pytest # unit tests (pure helpers, no network)
uv run myanimelist-mcp # run the server over stdio (waits on stdin for JSON-RPC)Building the UI
The server runs without the UI bundle (it serves a small placeholder), so a clone never needs Node. To build the real interface:
cd ui
npm ci
npm run build # emits src/mal_mcp/ui/dist/index.html (a single self-contained file)For UI development without a host, npm run dev in ui/ renders every view with fixture
data and a view switcher — the screenshots above are those views.
Released wheels always ship a freshly built bundle: .github/workflows/publish.yml builds it
before uv build and fails the release if it is missing.
Authentication
The server needs a MyAnimeList access token and stores nothing on disk. Set the credentials in
the "env" block of your MCP client config, in one of two ways (this is the precedence order):
MAL_REFRESH_TOKEN(+MAL_CLIENT_ID,MAL_CLIENT_SECRET) — recommended. The server mints and renews access tokens itself via the OAuthrefresh_tokengrant, in memory only. Set up once, no monthly re-pasting.MAL_ACCESS_TOKEN— a static token (expires ~31 days); simplest for a quick test.
Getting a MAL token
Create an API app at https://myanimelist.net/apiconfig → Create ID, App Type:
Web(this is what makes MAL issue a Client Secret). Set the redirect URL to your OAuth callback, or a localhost URL likehttp://localhost:8080/callbackfor the manual flow.MAL uses
plainPKCE only (noS256), so the code verifier and challenge are the same string. Obtain a token once:
# 1) code verifier (43-128 chars); challenge == verifier for plain PKCE
VERIFIER=$(python3 -c "import secrets; print(secrets.token_urlsafe(64)[:100])")
# 2) open in a browser, log in, approve — you get ?code=<CODE> at your redirect URL:
# https://myanimelist.net/v1/oauth2/authorize?response_type=code&client_id=<CLIENT_ID>&code_challenge=$VERIFIER&code_challenge_method=plain&state=x&redirect_uri=<URL_ENCODED_REDIRECT_URL>
# 3) exchange the code for tokens:
curl -s https://myanimelist.net/v1/oauth2/token \
-d client_id=<CLIENT_ID> -d client_secret=<CLIENT_SECRET> \
-d grant_type=authorization_code -d code=<CODE> \
-d code_verifier=$VERIFIER -d redirect_uri=<REDIRECT_URL>
# → {"token_type":"Bearer","expires_in":2678400,"access_token":"...","refresh_token":"..."}Keep the refresh_token for MAL_REFRESH_TOKEN (option 1), or the access_token for
MAL_ACCESS_TOKEN (option 2).
Environment variables
Variable | Default | Purpose |
| (unset) | Enables self-renewing tokens via the |
| (unset) | MAL app Client ID, for the refresh grant. |
| (unset) | MAL app Client Secret — required for "Web"-type apps. |
| (unset) | Static fallback token (expires ~31 days). |
| (unset → JST) | Default IANA timezone for |
Project layout
src/mal_mcp/
├── server.py # FastMCP app, token helper, 20 tools, stats/format/summary helpers
├── mal_client.py # MAL API wrapper: fields, pagination (paging.next), retries, error mapping
├── token_manager.py# self-renewing OAuth refresh_token grant (in-memory)
├── __main__.py # `python -m mal_mcp`
└── ui/ # MCP Apps layer: ui:// resource + meta/ToolResult helpers
└── dist/ # built single-file HTML bundle (gitignored; built by CI for releases)
ui/ # Vite + React + TypeScript app (motion animations, 6 views)
tests/ # offline unit tests (pure helpers, token manager, UI contract)
NOTES.md # verified MAL API / FastMCP factsThe PyPI distribution is myanimelist-mcp; the import package is mal_mcp.
License
Available Tools
20 toolsanalyze_tasteAnalyze Taste (raw data export)ARead-only
Return the user's entire anime list in a compact, token-efficient text format.
This tool performs NO analysis - it exports the raw data (grouped by watch status, sorted by the user's score) so the calling model can analyze taste, spot patterns, and craft recommendations. Line format: my_score|title|year|type|watched/total_eps| genres|mal_mean ('-' = not scored / unknown). Lists longer than the 20,000-entry fetch cap are exported partially, with a leading WARNING line.
Inputs: no named parameters.
delete_my_anime_entryDelete My Anime EntryADestructive
PERMANENTLY remove an anime from the authenticated user's list.
This deletes the entry's score, progress, dates, and tags on MAL - it cannot be undone. MAL treats the delete as idempotent in practice (removing an entry that is already absent still succeeds); a 404 for an unknown id returns a clear message.
Inputs: anime_id (required). Returns: object
delete_my_manga_entryDelete My Manga EntryADestructive
PERMANENTLY remove a manga from the authenticated user's list.
This deletes the entry's score, progress, dates, and tags on MAL - it cannot be undone. MAL treats the delete as idempotent in practice (removing an entry that is already absent still succeeds); a 404 for an unknown id returns a clear message.
Inputs: manga_id (required). Returns: object
get_anime_detailGet Anime DetailARead-only
Fetch full public details for one anime by its MAL id.
Returns title(s), synopsis, community stats (mean, rank, popularity, list/scoring user counts, per-status statistics), airing info, source, rating, genres, studios, related_anime, and up to 10 community recommendations. If the anime is on the authenticated user's list, my_list_status (their status/score/progress) is included.
Inputs: anime_id (required).
get_anime_rankingGet Anime RankingARead-only
Fetch MAL's official anime rankings.
ranking_type: all (top by score), airing, upcoming, tv, ova, movie, special, bypopularity, favorite. Returns a compact text table plus structured content {"ranking_type", "total_returned", "offset", "has_more", "entries"}; each entry: rank, previous_rank, id, title, picture, year, media_type, mean, num_list_users, num_episodes, airing_status, genres.
Inputs: limit, offset, ranking_type.
get_manga_detailGet Manga DetailARead-only
Fetch full public details for one manga by its MAL id.
Returns title(s), synopsis, community stats (mean, rank, popularity), publication info, chapter/volume counts, genres, authors, serialization magazines, related_manga/related_anime, and up to 10 community recommendations. If the manga is on the authenticated user's list, my_list_status is included.
Inputs: manga_id (required).
get_manga_rankingGet Manga RankingARead-only
Fetch MAL's official manga rankings.
ranking_type: all, manga, novels, oneshots, doujin, manhwa, manhua, bypopularity, favorite. Returns the same paged shape as get_anime_ranking; each entry: rank, previous_rank, id, title, picture, year, media_type, mean, num_list_users, num_chapters, publishing_status, authors, genres.
Inputs: limit, offset, ranking_type.
get_my_anime_listGet My Anime ListARead-only
Fetch a page of the authenticated user's MyAnimeList anime list.
Results are paged to keep responses bounded: use limit/offset (and has_more in
the response) to fetch further pages. For the complete list in one compact blob use
analyze_taste; for aggregates use get_user_stats.
Inputs: sort, limit, offset, status_filter.
get_my_manga_listGet My Manga ListCRead-only
Fetch a page of the authenticated user's MyAnimeList manga list.
Inputs: sort, limit, offset, status_filter.
get_my_profileGet My ProfileARead-only
Fetch the authenticated user's MAL profile and lifetime anime statistics.
Returns id, name, picture, birthday, location, joined_at, time_zone, is_supporter, and anime_statistics (items/days per watch status, total episodes, rewatches, mean score). MAL only exposes this endpoint for the token's own account.
Inputs: no named parameters.
get_seasonal_animeGet Seasonal AnimeARead-only
Fetch the anime that aired in one broadcast season (winter/spring/summer/fall).
Seasons: winter = Jan-Mar, spring = Apr-Jun, summer = Jul-Sep, fall = Oct-Dec. sort: anime_score (desc) or anime_num_list_users (desc). Returns a compact text table plus structured content {"year", "season", "total_returned", "offset", "has_more", "entries"} with compact anime entries (including picture).
Inputs: year (required), season (required), sort, limit, +1 more.
get_suggested_animeGet Suggested AnimeARead-only
Fetch MyAnimeList's personalized anime suggestions for the authenticated user.
These are MAL's own recommendations based on the user's list (empty for accounts without watch history). Returns a compact text table plus structured content {"total_returned", "offset", "has_more", "results"} with the same compact shape as search_anime.
Inputs: limit, offset.
get_user_anime_listGet User Anime ListARead-only
Fetch a page of ANOTHER MAL user's anime list (works only for public lists).
Same paged shape as get_my_anime_list, plus "user_name" echoed in the response. A 403 usually means the user's list is private or the username does not exist.
Inputs: user_name (required), sort, limit, offset, +1 more.
get_user_manga_listGet User Manga ListARead-only
Fetch a page of ANOTHER MAL user's manga list (works only for public lists).
Same paged shape as get_my_manga_list, plus "user_name" echoed in the response. A 403 usually means the user's list is private or the username does not exist.
Inputs: user_name (required), sort, limit, offset, +1 more.
get_user_statsGet User StatsARead-only
Compute summary statistics over the authenticated user's entire anime list.
Fetches the full list in one paginated pass and aggregates locally (no extra MAL calls).
Returns a text digest plus structured content with: total_entries; status_distribution; scores (count/mean/median/1-10 histogram); episodes (total watched + estimated watch hours/days, using each show's average episode duration, ~24 min fallback); top_genres (top 15 with count and avg user score); media_type_distribution; release_decades; community_comparison (avg difference between the user's scores and MAL community means); top_studios (top 10). If the list exceeds the 20,000-entry fetch cap, "truncated": true and a warning are included.
Inputs: no named parameters.
get_weekly_scheduleGet Weekly ScheduleARead-only
Your personal weekly airing calendar: which anime on your 'watching' list broadcast on each day of the week.
Fetches your watching list, keeps only currently-airing shows, and groups them by
broadcast day. Times are shown in the timezone argument if given, else the
MAL_TIMEZONE env var, else MAL's native JST. When a timezone applies, both the time
and the weekday are converted (a late-night JST slot can fall on a different local
day). Shows MAL has no broadcast slot for go in an "unscheduled" group.
Returns a per-day text digest plus structured content {"timezone", "today", "total", "days": [{"day", "entries": [...]}]}; each entry has id, title, picture, media_type, my_score, episodes_watched, total_episodes, broadcast_time.
Inputs: timezone.
search_animeSearch AnimeARead-only
Search MyAnimeList's public anime catalog by title.
Returns a compact text table (id|title|year|type|mean|eps|genres) plus structured content {"count": int, "results": [...]} where each result has: id, title, picture, year, media_type, airing_status, mean (community score), num_episodes, genres, and a synopsis truncated to 300 characters. Use get_anime_detail for full information.
Inputs: query (required), limit.
search_mangaSearch MangaARead-only
Search MyAnimeList's public manga catalog by title.
Returns a compact text table (id|title|year|type|mean|chapters|genres) plus structured content {"count": int, "results": [...]} where each result has: id, title, picture, year, media_type (manga/novel/one_shot/...), publishing_status, mean (community score), num_chapters/num_volumes (0 = unknown/ongoing), genres, authors, and a synopsis truncated to 300 characters. Use get_manga_detail for full information.
Inputs: query (required), limit.
update_my_anime_entryUpdate My Anime EntryADestructiveIdempotent
Update the authenticated user's list entry for an anime (or ADD it to the list).
Only the provided fields are changed; at least one is required. If the anime is not on the user's list yet, MAL creates the entry (e.g. pass status="plan_to_watch" to add something). Returns the updated my_list_status.
Inputs: anime_id (required), tags, score, status, +6 more. Returns: object
update_my_manga_entryUpdate My Manga EntryADestructiveIdempotent
Update the authenticated user's list entry for a manga (or ADD it to the list).
Only the provided fields are changed; at least one is required. If the manga is not on the user's list yet, MAL creates the entry (e.g. pass status="plan_to_read" to add something). Returns the updated my_list_status.
Inputs: manga_id (required), tags, score, status, +7 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct operation (search, get detail, list user list, update entry, delete entry, etc.) with clear boundaries. Overlap between get_my_anime_list and analyze_taste is addressed by descriptions, with analyze_taste exporting raw data for model analysis.
All tools follow a consistent verb_noun pattern (e.g., search_anime, get_manga_detail, update_my_anime_entry). The few variations like get_my_anime_list vs get_user_anime_list are justified by different targets.
20 tools is well-scoped for a comprehensive MyAnimeList client, covering catalog queries, user list management, rankings, seasonal, suggestions, schedule, and profile. No excessive or missing tools for the domain.
The tool set covers virtually all major MAL operations: search/get detail for anime and manga, full CRUD on user lists, rankings, seasonal anime, suggestions, weekly schedule, user profiles, and other users' lists. No significant gaps for personal anime/manga tracking.
Maintenance
Related MCP Connectors
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Social media MCP server: your Instagram, TikTok, YouTube, LinkedIn and Threads history for your AI.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseAqualityDmaintenanceA smart AniList integration for the Model Context Protocol that provides AI assistants with tools for searching media, managing watchlists, and analyzing user anime or manga tastes. It goes beyond basic API calls by offering personalized recommendations, taste comparisons, and natural language profile summaries.554MIT
- AlicenseBqualityDmaintenanceMCP Server for interacting with the MyAnimeList API, allowing LLM clients to access and interact with anime, manga and more.154MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with MyAnimeList user accounts for list management, progress tracking, and personalized anime recommendations.11MIT
- AlicenseAqualityDmaintenanceEnables AI clients to search, inspect, rank, and manage MyAnimeList anime and manga, including authenticated user list operations.15MIT