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 "Install 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-mcpanalyze 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.
mal-mcp
A stateless 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 (streamable-HTTP) · React + Vite for the UI.
The interface
On MCP Apps hosts (claude.ai / Claude Desktop, ChatGPT, VS Code, Goose, MCPJam…), each read tool renders as a live view. The model still receives a compact text summary; the full data travels to the iframe as structured content.




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.
Related MCP server: mal-mcp
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.
Quick start
uv sync # install Python dependencies
uv run pytest # unit tests (pure helpers, no network)
uv run python -m mal_mcp.server # serves http://0.0.0.0:8000/mcp (streamable-http)Point an MCP client at http://localhost:8000/mcp (streamable HTTP) with an
Authorization: Bearer <MAL access token> header — see Authentication.
Building the UI
The server runs without the UI bundle (it serves a small placeholder). To build the real interface into the wheel/image:
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.
Authentication
The server needs Authorization: Bearer <MAL access token> per request; it stores nothing.
Provide the token in one of three ways (this is the precedence order):
Authorizationheader — an MCP gateway or client sends the user's token per request.MAL_REFRESH_TOKEN(+MAL_CLIENT_ID,MAL_CLIENT_SECRET) — recommended for a single-account deployment. 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 2), or the access_token for
the header/static options.
Environment variables
Variable | Default | Purpose |
|
| HTTP listen port |
|
| Bind address |
| (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 |
Docker
Prebuilt multi-arch image (the UI is built in the image):
docker run --rm -p 8000:8000 ghcr.io/umutkdev/myanimelist-mcp:latestOr build locally:
docker build -t mal-mcp .
docker run --rm -p 8000:8000 mal-mcppython:3.12-slim + uv, runs as a non-root user, exposes port 8000, serves /mcp. Because
the server is stateless (stateless_http=True), it scales freely behind any MCP gateway; the
gateway (or client) supplies the per-request Authorization header, or you provision a token
via the env vars above.
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)
└── ui/ # MCP Apps layer: ui:// resource + meta/ToolResult helpers
└── dist/ # built single-file HTML bundle (gitignored; built from ui/)
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 factsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/UmutKDev/myanimelist-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server