Skip to main content
Glama
mal-mcp-server

mal-mcp-server

by tabbykat113

mal-mcp-server

An MCP (Model Context Protocol) server that connects AI assistants to the MyAnimeList API v2. Search anime, browse seasonal charts, check rankings, look up manga — all from your AI chat.

What It Does

This server exposes 7 read-only tools to any MCP-compatible client (Claude Desktop, Claude Code, Cursor, etc.):

Tool

Description

mal_search_anime

Search anime by title or keywords

mal_get_anime_details

Get full details for an anime by MAL ID

mal_anime_ranking

Browse anime rankings (top, airing, upcoming, movies, etc.)

mal_anime_seasonal

Get anime for a specific season/year

mal_search_manga

Search manga by title or keywords

mal_get_manga_details

Get full details for a manga by MAL ID

mal_manga_ranking

Browse manga rankings (top, novels, manhwa, etc.)

All tools return human-readable formatted text with scores, genres, synopses, MAL links, and more.

The 5 list-returning tools support server-side filtering — genre, score, media type, status, source, and more. The server fetches up to 500 results from MAL and filters client-side, so the AI only sees what matches. This dramatically reduces context pollution for filtered queries.

Related MCP server: ateam-mcp

Prerequisites

  • Node.js 18+ (uses native fetch)

  • A MyAnimeList API Client ID (free, takes 2 minutes)

Getting Your MAL Client ID

  1. Go to https://myanimelist.net/apiconfig/create (you'll need a MAL account)

  2. Fill in:

    • App Name: anything you want (e.g. "My MCP Server")

    • App Type: "other"

    • App Description: anything (e.g. "Personal MCP server for anime lookup")

    • App Redirect URL: http://localhost (not used for Client ID auth, but the field is required)

    • Homepage URL: optional

    • Commercial / Non-Commercial: Non-Commercial

  3. Submit. You'll get a Client ID on the next page. Copy it.

Keep your Client ID private. Don't commit it to git or share it publicly.

Installation

# Clone or download this repo
cd mal-mcp-server

# Install dependencies
npm install

# Build
npm run build

Configuration

The server needs one environment variable:

MAL_CLIENT_ID=your_client_id_here

You can set this in your MCP client config (see below), in your shell profile, or in a .env file (if you add dotenv support yourself).

Using with Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mal": {
      "command": "node",
      "args": ["/absolute/path/to/mal-mcp-server/dist/index.js"],
      "env": {
        "MAL_CLIENT_ID": "your_client_id_here"
      }
    }
  }
}

Restart Claude Desktop after editing.

Using with Claude Code

Add from your project directory:

claude mcp add mal -- node /absolute/path/to/mal-mcp-server/dist/index.js

Then set the environment variable in your shell before running Claude Code, or add it to the command:

MAL_CLIENT_ID=your_client_id_here claude

Alternatively, add to your Claude Code MCP config (~/.claude/claude_code_config.json or project-level .mcp.json):

{
  "mcpServers": {
    "mal": {
      "command": "node",
      "args": ["/absolute/path/to/mal-mcp-server/dist/index.js"],
      "env": {
        "MAL_CLIENT_ID": "your_client_id_here"
      }
    }
  }
}

Example Queries

Once connected, you can ask your AI things like:

  • "Search MAL for anime about cute cats"

  • "What's the top rated anime right now?"

  • "Show me what's airing this season sorted by score"

  • "Get me the details on Frieren (anime ID 154587)"

  • "What are the top rated manga?"

  • "Look up the manga Berserk on MAL"

  • "What anime aired in summer 2024?"

  • "Show me action anime this season with a score above 7"

  • "What are the top rated romance comedy anime?" (uses genre_mode: "and")

  • "What new anime premiered this winter?" (uses current_season_only)

The AI will call the appropriate tool(s) and present the results.

Tool Details

Shared Filter Parameters

The 5 list-returning tools (mal_search_anime, mal_anime_ranking, mal_anime_seasonal, mal_search_manga, mal_manga_ranking) all support server-side filtering. When any filter is active, the server fetches one 500-item page from the MAL API, filters it client-side, and returns matching results. One tool call = one API call. The bot controls how deep to scan by passing offset on subsequent calls.

Common filters (all list tools):

  • genres_include (string[]): Only include items with matching genres (case-insensitive). See genre_mode.

  • genres_exclude (string[]): Exclude items with any of these genres (case-insensitive)

  • genre_mode ("or" | "and"): How genres_include matches — "or" = any genre matches (default), "and" = all genres must be present

  • min_score (number): Minimum mean score, 0-10

  • min_members (number): Minimum MAL list members

Anime-only filters:

  • media_type (string[]): "tv", "ova", "movie", "ona", "special", "music"

  • status (string): "currently_airing", "finished_airing", "not_yet_aired"

  • source (string[]): "manga", "light_novel", "original", "visual_novel", "game", "other"

Seasonal-only filter:

  • current_season_only (boolean): Only show anime whose start_season matches the queried season (filters out continuing shows like long-runners)

Manga-only filters:

  • media_type (string[]): "manga", "novel", "one_shot", "doujinshi", "manhwa", "manhua", "oel"

  • status (string): "currently_publishing", "finished", "not_yet_published"

When filters are active, the output includes a summary and context-aware hints:

Found 8 results out of 500 scanned, showing 5 | Filters: genres(AND)=Action,Romance, min_score>=7.5
More matches found in scanned items. Use offset=234 to continue, or increase limit to see more from this scan.

If no matches are found in the scanned area but more API data exists:

Found 0 results out of 500 scanned, showing 0 | Filters: min_score>=9.0
No matches in scanned items. More data available to scan — use offset=500 to search the next section, or try adjusting your filters.

mal_search_anime

Search by keywords. Returns title, score, status, type, episodes, genres, studios, season, and MAL link.

Parameters:

  • query (string, required): Search text, 2-200 chars

  • limit (number): 1-100, default 10

  • offset (number): pagination, default 0

  • nsfw (boolean): include NSFW results, default false

  • Plus shared filters and anime-only filters

mal_get_anime_details

Fetch comprehensive details by MAL anime ID. Returns everything search does plus: synopsis, background, alternative titles, airing dates, broadcast info, rating, related anime, recommendations, and list statistics.

Parameters:

  • anime_id (number, required): MAL anime ID

mal_anime_ranking

Ranked lists. Filtered results keep their original MAL rank numbers.

Available ranking types:

  • all — overall top anime

  • airing — top currently airing

  • upcoming — top upcoming

  • tv — top TV series

  • ova — top OVAs

  • movie — top movies

  • special — top specials

  • bypopularity — most members

  • favorite — most favorited

Parameters:

  • ranking_type (string): default "all"

  • limit (number): 1-100, default 10

  • offset (number): default 0

  • Plus shared filters and anime-only filters

mal_anime_seasonal

Browse anime by season. Defaults to the current season if year/season are omitted.

Parameters:

  • year (number): 1900-2100, optional

  • season (string): "winter" | "spring" | "summer" | "fall", optional

  • sort (string): "anime_score" | "anime_num_list_users" | "", default ""

  • limit (number): 1-100, default 10

  • offset (number): default 0

  • Plus shared filters, anime-only filters, and current_season_only

mal_search_manga

Like anime search, but for manga. Returns title, score, type, volumes, chapters, genres, authors.

Parameters:

  • query (string, required): 2-200 chars

  • limit (number): 1-100, default 10

  • offset (number): default 0

  • nsfw (boolean): default false

  • Plus shared filters and manga-only filters

mal_get_manga_details

Full manga details by MAL ID. Synopsis, authors, serialization, related works, recommendations.

Parameters:

  • manga_id (number, required): MAL manga ID

mal_manga_ranking

Ranked manga lists. Filtered results keep their original MAL rank numbers.

Available types: all, manga, novels, oneshots, doujin, manhwa, manhua, bypopularity, favorite.

Parameters:

  • ranking_type (string): default "all"

  • limit (number): 1-100, default 10

  • offset (number): default 0

  • Plus shared filters and manga-only filters

Architecture

src/
├── index.ts     # MCP server setup + all 7 tool registrations
├── client.ts    # MAL API client (typed fetch wrapper)
├── filters.ts   # Filter schemas, predicates, and filtered-fetch orchestrator
├── format.ts    # Response formatting (API data → readable text)
└── types.ts     # TypeScript interfaces for MAL API responses
  • Transport: stdio (runs as a subprocess of your MCP client)

  • Auth: Uses X-MAL-CLIENT-ID header (no OAuth needed for read-only access)

  • No external HTTP library — uses Node.js native fetch

  • Zero runtime dependencies beyond the MCP SDK and Zod

Future Work (Phase 2)

These features would require OAuth 2.0 authentication (PKCE flow):

  • mal_get_my_animelist — view your anime list

  • mal_update_anime_status — add/update entries on your list

  • mal_anime_suggestions — MAL's personalized suggestions

  • mal_get_my_mangalist — view your manga list

  • mal_update_manga_status — add/update manga entries

  • mal_get_user_info — get your profile info

The MAL API uses OAuth 2.0 with PKCE. The general flow would be:

  1. Generate a PKCE code_verifier + code_challenge

  2. Open browser to MAL's auth URL

  3. User authorizes → callback receives an auth code

  4. Exchange code for access_token + refresh_token

  5. Store tokens and auto-refresh when expired

API Agreement

By using the MAL API you agree to their API License and Developer Agreement. Key points:

  • Keep your Client ID secret

  • Don't scrape — only access data through the API

  • Non-commercial personal use is fine

  • Don't store MAL user personal info server-side

  • Don't impersonate the MAL experience

License

MIT

Available Tools

7 tools
mal_anime_rankingGet Anime Rankings from MALA
Read-onlyIdempotent

Get ranked anime lists from MyAnimeList.

Args:

  • ranking_type: One of "all", "airing", "upcoming", "tv", "ova", "movie", "special", "bypopularity", "favorite" (default: "all")

  • limit: Max results, 1-100 (default: 10)

  • offset: Pagination offset (default: 0)

Ranking types:

  • "all": Overall top anime

  • "airing": Currently airing top anime

  • "upcoming": Top upcoming anime

  • "tv": Top TV series

  • "movie": Top anime movies

  • "bypopularity": Most popular (by number of list users)

  • "favorite": Most favorited

Supports server-side filters: genres_include, genres_exclude, min_score, media_type, status, source, min_members. Filtered results keep their original MAL rank numbers.

Inputs: limit, offset, source, status, +7 more.

mal_anime_seasonalGet Seasonal Anime from MALA
Read-onlyIdempotent

Get anime for a specific season and year.

Args:

  • year: The year (e.g. 2025). Defaults to the current year.

  • season: One of "winter", "spring", "summer", "fall". Defaults to the current season.

  • sort: Sort by "anime_score", "anime_num_list_users", or "" for default (default: "")

  • limit: Max results, 1-100 (default: 10)

  • offset: Pagination offset (default: 0)

Season months:

  • winter: Jan-Mar

  • spring: Apr-Jun

  • summer: Jul-Sep

  • fall: Oct-Dec

Supports server-side filters: genres_include, genres_exclude, min_score, media_type, status, source, min_members, current_season_only. Use current_season_only to filter out continuing shows and only show new premieres.

Inputs: sort, year, limit, offset, +10 more.

mal_get_anime_detailsGet Anime Details from MALA
Read-onlyIdempotent

Get full details for a specific anime by its MAL ID.

Returns comprehensive info: title, score, synopsis, genres, studios, episodes, airing dates, related anime, recommendations, and list statistics.

Args:

  • anime_id: The MyAnimeList anime ID (a positive integer).

Use after searching to get the full picture of a specific anime.

Inputs: anime_id (required).

mal_get_manga_detailsGet Manga Details from MALA
Read-onlyIdempotent

Get full details for a specific manga by its MAL ID.

Returns comprehensive info: title, score, synopsis, genres, authors, volumes, chapters, related manga, recommendations.

Args:

  • manga_id: The MyAnimeList manga ID (a positive integer).

Inputs: manga_id (required).

mal_manga_rankingGet Manga Rankings from MALA
Read-onlyIdempotent

Get ranked manga lists from MyAnimeList.

Args:

  • ranking_type: One of "all", "manga", "novels", "oneshots", "doujin", "manhwa", "manhua", "bypopularity", "favorite" (default: "all")

  • limit: Max results, 1-100 (default: 10)

  • offset: Pagination offset (default: 0)

Ranking types:

  • "all": Overall top

  • "manga": Top manga specifically

  • "novels": Top light novels

  • "oneshots": Top one-shots

  • "manhwa": Top Korean manhwa

  • "manhua": Top Chinese manhua

  • "bypopularity": Most popular

  • "favorite": Most favorited

Supports server-side filters: genres_include, genres_exclude, min_score, media_type, status, min_members. Filtered results keep their original MAL rank numbers.

Inputs: limit, offset, status, min_score, +6 more.

mal_search_animeSearch Anime on MALA
Read-onlyIdempotent

Search for anime on MyAnimeList by title/keywords.

Returns a list of matching anime with scores, genres, episode counts, studios, and MAL links.

Args:

  • query: Search text (min 2 chars). Can be a title, keyword, or phrase.

  • limit: Max results to return, 1-100 (default: 10)

  • offset: Pagination offset (default: 0)

  • nsfw: Include NSFW results (default: false)

Supports server-side filters: genres_include, genres_exclude, min_score, media_type, status, source, min_members. When filters are active, the server fetches up to 500 results and filters client-side so the AI only sees matching items.

Examples:

  • "cute animals anime" -> finds anime matching those keywords

  • "Spy x Family" -> finds that specific anime

  • query: "fantasy", genres_include: ["Action"], min_score: 7.5 -> top-rated action fantasy anime

Inputs: query (required), nsfw, limit, offset, +8 more.

mal_search_mangaSearch Manga on MALA
Read-onlyIdempotent

Search for manga on MyAnimeList by title/keywords.

Returns a list of matching manga with scores, genres, volumes, chapters, authors, and MAL links.

Args:

  • query: Search text (min 2 chars).

  • limit: Max results, 1-100 (default: 10)

  • offset: Pagination offset (default: 0)

  • nsfw: Include NSFW results (default: false)

Supports server-side filters: genres_include, genres_exclude, min_score, media_type, status, min_members. When filters are active, the server fetches up to 500 results and filters client-side so the AI only sees matching items.

Inputs: query (required), nsfw, limit, offset, +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation5/5

    The tool set cleanly separates anime vs manga and search/details/ranking/seasonal workflows. Although ranking and seasonal both list anime, their parameters and use cases are distinct enough to avoid misselection.

    Naming Consistency4/5

    All tools use the mal_ prefix and snake_case, which is predictable. However, naming order varies between action_resource patterns like mal_search_anime and resource_action patterns like mal_anime_ranking.

    Tool Count5/5

    Seven tools is well-scoped for an anime/manga browsing server. Each tool has a clear purpose and there are no obvious filler tools.

    Completeness4/5

    The surface covers core search, details, and ranking for both anime and manga, plus seasonal anime lookup. Minor gaps exist, such as character/staff lookups or equivalent seasonal manga browsing, but agents can still accomplish major workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI assistants to over 30 business tools like Gmail, Slack, and Airtable through a single unified interface. It enables users to perform actions across multiple platforms using natural language without managing individual API integrations.
      22 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects AI assistants to the ADAS platform, enabling them to build, validate, and deploy multi-agent systems through natural language commands without manual configuration.
      41
      618 npm
      1
      MIT
    • F
      license
      B
      quality
      B
      maintenance
      Connects AI assistants to Mirlo workspace for CRM, messaging, and voice operations.
      21
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects compatible AI assistants to Memuaria so they can retrieve account and book information, check memory or story draft status, and prepare changes for user review while personal data remains in the Memuaria cloud service.
      1
      MIT