anilist-mcp-server 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/PRIVACY.md +146 -0
- package/README.md +36 -20
- package/SECURITY.md +100 -0
- package/dist/index.js +95 -95
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,78 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.7.0] - 2026-07-30
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Reject non-positive AniList IDs locally instead of sending them upstream, where such values always fail anyway. [069bbe4](https://github.com/Grinv/anilist-mcp-server/commit/069bbe4)
|
|
14
|
+
- Reject negative values locally for numeric fields that can never be negative (counts, years, scores, etc.). [069bbe4](https://github.com/Grinv/anilist-mcp-server/commit/069bbe4) [b80f321](https://github.com/Grinv/anilist-mcp-server/commit/b80f321)
|
|
15
|
+
- Model activity results as their real type-specific shape (text/list-update/message), not one object mixing every type's fields. [069bbe4](https://github.com/Grinv/anilist-mcp-server/commit/069bbe4)
|
|
16
|
+
- Validate URL fields (site links, avatar/cover/banner images, the AniList API base URLs) as real http/https URLs, not just strings. [069bbe4](https://github.com/Grinv/anilist-mcp-server/commit/069bbe4) [b80f321](https://github.com/Grinv/anilist-mcp-server/commit/b80f321)
|
|
17
|
+
- Disclose that `add_list_entry`/`update_list_entry`'s `advancedScores` are positional — reordering categories later reinterprets written scores. [0a1aff4](https://github.com/Grinv/anilist-mcp-server/commit/0a1aff4)
|
|
18
|
+
- Disclose that `post_thread`'s response omits `categories`/`isSticky`/`isLocked` — call `get_thread` afterward to confirm a change applied. [4a2a5ac](https://github.com/Grinv/anilist-mcp-server/commit/4a2a5ac)
|
|
19
|
+
- Disclose that `post_thread_comment`'s `id` and `parentCommentId` refer to different comments — the branded type can't tell them apart. [4a2a5ac](https://github.com/Grinv/anilist-mcp-server/commit/4a2a5ac)
|
|
20
|
+
- Disclose that `get_user_recent_activity` applies no activity-type filter, same as `get_user_activity`. [3ce5ca3](https://github.com/Grinv/anilist-mcp-server/commit/3ce5ca3)
|
|
21
|
+
- Disclose `login_anilist`'s actual default redirect URI and its `ANILIST_OAUTH_PORT` override, needed before registering an AniList app. [c194eca](https://github.com/Grinv/anilist-mcp-server/commit/c194eca)
|
|
22
|
+
- Clarify that `get_recommendation`'s rating/vote is cast on anilist.co directly — this server has no tool to vote itself. [a74780b](https://github.com/Grinv/anilist-mcp-server/commit/a74780b)
|
|
23
|
+
- Clarify `get_media_reviews` sorts by `rating` (a review's community-helpfulness vote), not `score` (the reviewer's own rating). [628c2df](https://github.com/Grinv/anilist-mcp-server/commit/628c2df)
|
|
24
|
+
- Confirm `get_site_statistics`' `pageInfo.total`/`.lastPage` are accurate here, unlike this schema's usual meaning elsewhere. [e024968](https://github.com/Grinv/anilist-mcp-server/commit/e024968)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Fix `get_anime_schedule`'s `notYetAired: false` description — it swaps to a past-only result set, not an addition to upcoming ones. [628c2df](https://github.com/Grinv/anilist-mcp-server/commit/628c2df)
|
|
29
|
+
- Fix `get_recommendations_for_media`'s description pointing to the wrong field path for `mediaListEntry`. [a74780b](https://github.com/Grinv/anilist-mcp-server/commit/a74780b)
|
|
30
|
+
|
|
31
|
+
## [0.6.0] - 2026-07-30
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Add `PRIVACY.md` and `SECURITY.md`, linked from `README.md`. [768c458](https://github.com/Grinv/anilist-mcp-server/commit/768c458) [3b961fe](https://github.com/Grinv/anilist-mcp-server/commit/3b961fe)
|
|
36
|
+
- Add an MCPB bundle icon using AniList's real brand colors. [4317281](https://github.com/Grinv/anilist-mcp-server/commit/4317281) [691f05d](https://github.com/Grinv/anilist-mcp-server/commit/691f05d)
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Raise the minimum supported Node.js version to ≥ 20.11.0 (was ≥ 20). [6adffb4](https://github.com/Grinv/anilist-mcp-server/commit/6adffb4) [90c540d](https://github.com/Grinv/anilist-mcp-server/commit/90c540d)
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- Ship `PRIVACY.md` in the published npm package — it was missing from `package.json`'s `files` allowlist. [3342e6c](https://github.com/Grinv/anilist-mcp-server/commit/3342e6c)
|
|
45
|
+
- Ship `SECURITY.md` in the published npm package too — README links to it the same way it links to `PRIVACY.md`, but it was missing from the same `files` allowlist. [6cf0271](https://github.com/Grinv/anilist-mcp-server/commit/6cf0271)
|
|
46
|
+
- Exclude dev-only contributor tooling and `glama.json` from the `.mcpb` bundle. [1fed97a](https://github.com/Grinv/anilist-mcp-server/commit/1fed97a) [dd29f14](https://github.com/Grinv/anilist-mcp-server/commit/dd29f14)
|
|
47
|
+
- Point `README.md`'s `docs/` links at absolute GitHub URLs so they still resolve from inside an installed `.mcpb` extension, which excludes `docs/`. [a645d5b](https://github.com/Grinv/anilist-mcp-server/commit/a645d5b)
|
|
48
|
+
- Relax `post_thread`'s `title`/`body` to required only when creating — omitting either on an update keeps its existing value. [c928316](https://github.com/Grinv/anilist-mcp-server/commit/c928316)
|
|
49
|
+
- Disclose that `post_thread`'s `mediaCategories` is a full replace on update, same as `categories`. [c928316](https://github.com/Grinv/anilist-mcp-server/commit/c928316)
|
|
50
|
+
- Fix `search_activity`'s description and `outputSchema`, both of which wrongly modeled results as bare IDs — the query already returns full activity content. [f1d0d61](https://github.com/Grinv/anilist-mcp-server/commit/f1d0d61)
|
|
51
|
+
- Disclose that `get_user_activity`/`get_user_recent_activity` error on an unknown user, unlike `search_activity`'s own `user` filter, which silently returns empty. [4563fc0](https://github.com/Grinv/anilist-mcp-server/commit/4563fc0)
|
|
52
|
+
- Cap `get_media`'s `ids` array at 25 entries — previously unbounded, a batch of hundreds succeeded live with no cap, each entry returning full synopsis/tags/rankings. [8d9eba7](https://github.com/Grinv/anilist-mcp-server/commit/8d9eba7)
|
|
53
|
+
- Disclose that a majority of ids from `get_recommendations_for_media` 404 on `get_recommendation`'s own lookup — a confirmed AniList-side inconsistency, not a bug in this server. [35a6226](https://github.com/Grinv/anilist-mcp-server/commit/35a6226)
|
|
54
|
+
- Correct `PRIVACY.md`'s claim that `get_notifications` "does not write anything" — its `markAsRead: true` option resets AniList's real unread-notification badge count. [c9485a4](https://github.com/Grinv/anilist-mcp-server/commit/c9485a4)
|
|
55
|
+
- Correct `idempotentHint` to `false` on `delete_activity`/`delete_thread`/`delete_thread_comment`/`remove_list_entry` — each one errors, not silently succeeds, when retried on an already-deleted id. [fc4fc5e](https://github.com/Grinv/anilist-mcp-server/commit/fc4fc5e)
|
|
56
|
+
- Document that `update_list_entry`'s `customLists` replaces the entry's full set of enabled lists, not merges — the same warning `add_list_entry`'s identical field already had. [53f8351](https://github.com/Grinv/anilist-mcp-server/commit/53f8351)
|
|
57
|
+
- Document that `update_list_entry`'s `hiddenFromStatusLists` still counts the entry in statistics — the same clause `add_list_entry`'s identical field already had. [eceace6](https://github.com/Grinv/anilist-mcp-server/commit/eceace6)
|
|
58
|
+
- Document that `post_thread`'s `sticky` is confirmed live to silently no-op for a non-mod account, matching `locked`'s existing wording (both were verified together). [eceace6](https://github.com/Grinv/anilist-mcp-server/commit/eceace6)
|
|
59
|
+
- Document that `search_media`'s `onList` silently no-ops when not logged in, matching `get_recommendations_for_media`'s `excludeInList`. [ad6d8a7](https://github.com/Grinv/anilist-mcp-server/commit/ad6d8a7)
|
|
60
|
+
- Fix `update_user`'s `notificationOptions`/`disabledListActivity` to reject a duplicated type, not just check full coverage — a duplicate-plus-full array previously passed silently. [2cfa0fe](https://github.com/Grinv/anilist-mcp-server/commit/2cfa0fe)
|
|
61
|
+
- Document that `get_studio`'s `name` already does AniList's own fuzzy search, so a partial name resolves directly without needing `search_studio` first. [995e071](https://github.com/Grinv/anilist-mcp-server/commit/995e071)
|
|
62
|
+
- Reject a manga id in `get_anime_schedule` instead of silently returning an empty schedule; also stop discarding `hasNextPage` from its output. [a3c7664](https://github.com/Grinv/anilist-mcp-server/commit/a3c7664)
|
|
63
|
+
- Type `get_recommendation`/`get_recommendations_for_media`'s `rating`/`userRating` fields per AniList's actual schema (a plain int and a real 3-value enum), not generic number/string. [9bf34b5](https://github.com/Grinv/anilist-mcp-server/commit/9bf34b5)
|
|
64
|
+
- Reject `post_thread` calls that omit `categories` when creating a new thread, matching AniList's own mutation requirement, instead of surfacing an upstream error. [67ec0fc](https://github.com/Grinv/anilist-mcp-server/commit/67ec0fc)
|
|
65
|
+
- Correct `update_user`'s stale claim that `disabledListActivity` can leave a mutation non-atomic — that trigger is now blocked client-side before any request is sent. [3784af2](https://github.com/Grinv/anilist-mcp-server/commit/3784af2)
|
|
66
|
+
- Narrow `get_authorized_user`'s claim that `advancedScoring` is full-replace like `customLists` — only `customLists` is confirmed that way. [3784af2](https://github.com/Grinv/anilist-mcp-server/commit/3784af2)
|
|
67
|
+
- Clarify `login_anilist`'s `auto_capture` only reflects whether this server could bind a local port, not whether the browser is actually local. [6c48045](https://github.com/Grinv/anilist-mcp-server/commit/6c48045)
|
|
68
|
+
- Document that `get_user_activity` returns every activity type (including received messages), not just list updates/text posts as previously stated. [39981cc](https://github.com/Grinv/anilist-mcp-server/commit/39981cc)
|
|
69
|
+
- Fix `get_notifications`' `pageInfo` output to match its actual query (only `hasNextPage` is ever returned). [3594f1d](https://github.com/Grinv/anilist-mcp-server/commit/3594f1d)
|
|
70
|
+
- Document `get_user_list`'s ~11,000-entry AniList-side cap. [902ccb1](https://github.com/Grinv/anilist-mcp-server/commit/902ccb1)
|
|
71
|
+
- Confirm `post_thread`'s `categories` is a full replace (not a merge) when set on an update. [0554ff6](https://github.com/Grinv/anilist-mcp-server/commit/0554ff6)
|
|
72
|
+
- Disclose `isFavourite`'s confirmed read-after-write staleness consistently across `get_media`/`get_character`/`get_staff`/`get_studio` — previously only `get_media` had it. [76196f0](https://github.com/Grinv/anilist-mcp-server/commit/76196f0)
|
|
73
|
+
- Add `get_media`'s missing `mediaListEntry` output disclosure, matching `get_recommendations_for_media`'s existing one. [76196f0](https://github.com/Grinv/anilist-mcp-server/commit/76196f0)
|
|
74
|
+
|
|
75
|
+
### Security
|
|
76
|
+
|
|
77
|
+
- Harden log redaction to also strip JSON-style credentials (`"client_secret":"..."`), matching the OAuth token exchange's actual request body shape. [0a70a08](https://github.com/Grinv/anilist-mcp-server/commit/0a70a08)
|
|
78
|
+
|
|
79
|
+
## [0.5.0] - 2026-07-29
|
|
80
|
+
|
|
9
81
|
### Added
|
|
10
82
|
|
|
11
83
|
- Add an hour-long public cache hint to `tools/list`/`prompts/list`/`server/discover` for 2026-07-28-era clients.
|
|
@@ -103,6 +175,8 @@ Everything below is one commit: [48049f6](https://github.com/Grinv/anilist-mcp-s
|
|
|
103
175
|
|
|
104
176
|
## [0.2.0] - 2026-07-22
|
|
105
177
|
|
|
178
|
+
Everything below is one commit: [0a537f7](https://github.com/Grinv/anilist-mcp-server/commit/0a537f7).
|
|
179
|
+
|
|
106
180
|
### Added
|
|
107
181
|
|
|
108
182
|
- Add `tag_in`, `onList`, `averageScore`/`popularity`/`episodes` range filters, `startDate`/`endDate` range filters, and `source_in` to `search_media`.
|
|
@@ -172,6 +246,8 @@ Everything below is one commit: [194c7d3](https://github.com/Grinv/anilist-mcp-s
|
|
|
172
246
|
|
|
173
247
|
## [0.1.2] - 2026-07-21
|
|
174
248
|
|
|
249
|
+
_Note: this version was bumped locally via `npm version` but its tag was never pushed — superseded minutes later by v0.1.3, so it was never published to npm and has no git tag or GitHub Release. The changes below still shipped: they're part of v0.1.3 and every release since. Left as-is rather than retroactively tagging/publishing it now, since `npm publish` would move the `latest` dist-tag backward to this old version._
|
|
250
|
+
|
|
175
251
|
### Fixed
|
|
176
252
|
|
|
177
253
|
- Reject a malformed `access_token` in AniList's OAuth token response with a clear error, instead of silently storing it. ([38c193c](https://github.com/Grinv/anilist-mcp-server/commit/38c193c))
|
package/PRIVACY.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Privacy Policy
|
|
2
|
+
|
|
3
|
+
`anilist-mcp-server` is a local [Model Context Protocol](https://modelcontextprotocol.io)
|
|
4
|
+
server: it runs as a process on your own machine (via `npx` or a local clone),
|
|
5
|
+
speaking stdio to your MCP client (Claude Desktop, Claude Code, etc.). It has
|
|
6
|
+
no server component of its own, no telemetry, and no analytics — this policy
|
|
7
|
+
covers exactly what it does with data, in full, because there isn't more to
|
|
8
|
+
say beyond it.
|
|
9
|
+
|
|
10
|
+
**Read this section first if you're only skimming:** unlike a read-only data
|
|
11
|
+
server, this one can act on your real AniList account when you (or the AI
|
|
12
|
+
model acting for you) ask it to — see
|
|
13
|
+
[Usage and third-party sharing](#usage-and-third-party-sharing) below for the
|
|
14
|
+
full list of what it can change.
|
|
15
|
+
|
|
16
|
+
## Data collection
|
|
17
|
+
|
|
18
|
+
`anilist-mcp-server` collects no data of its own. It has no database, no
|
|
19
|
+
accounts, and sends nothing to its maintainer or to any analytics/telemetry
|
|
20
|
+
service.
|
|
21
|
+
|
|
22
|
+
The only inputs it handles are:
|
|
23
|
+
|
|
24
|
+
- **Credentials you supply**, via environment variables in your MCP client's
|
|
25
|
+
own config (e.g. `claude_desktop_config.json`): `ANILIST_CLIENT_ID` /
|
|
26
|
+
`ANILIST_CLIENT_SECRET` (your own registered AniList app, needed to start a
|
|
27
|
+
login), and either an `ANILIST_ACCESS_TOKEN` you pre-supply or the access
|
|
28
|
+
token obtained by running the `login_anilist` tool. All are optional — the
|
|
29
|
+
server starts and every read-only tool works with no credentials at all.
|
|
30
|
+
These stay in your client's local config file (or, for a token obtained via
|
|
31
|
+
`login_anilist`, on disk locally — see
|
|
32
|
+
[Storage and retention](#storage-and-retention)); `anilist-mcp-server` never
|
|
33
|
+
transmits them anywhere except as described below.
|
|
34
|
+
- **Tool call arguments**, generated by the AI model you're using (e.g. an
|
|
35
|
+
anime/manga title, a username, a list entry's status/score/progress, the
|
|
36
|
+
text of an activity post or forum comment) as it calls one of this server's
|
|
37
|
+
tools on your behalf.
|
|
38
|
+
|
|
39
|
+
## Usage and third-party sharing
|
|
40
|
+
|
|
41
|
+
Every tool call results in an outbound HTTPS request to AniList's own
|
|
42
|
+
infrastructure — the public GraphQL API (`graphql.anilist.co`) for every
|
|
43
|
+
tool, plus AniList's OAuth endpoints (`anilist.co/api/v2/oauth/*`) only during
|
|
44
|
+
the one-time `login_anilist` / `submit_anilist_redirect` login flow. No other
|
|
45
|
+
third party is ever contacted.
|
|
46
|
+
|
|
47
|
+
- **Reads** (search, details, genres/tags, recommendations, forum threads,
|
|
48
|
+
activity feeds, public/unlisted user profiles and lists) call the public
|
|
49
|
+
GraphQL endpoint with no credentials and touch only public data.
|
|
50
|
+
- **Your access token, when configured**, is sent as an `Authorization:
|
|
51
|
+
Bearer <token>` HTTP header on every GraphQL request that needs it — this
|
|
52
|
+
is standard OAuth bearer-token usage, not a custom scheme. AniList sees
|
|
53
|
+
this exactly as if you'd made the request yourself while logged in.
|
|
54
|
+
- **This server can write to and post from your real AniList account** when
|
|
55
|
+
a personal/mutation tool is called with a valid token. This is the single
|
|
56
|
+
biggest difference from a purely read-only MCP server, and it is not
|
|
57
|
+
hypothetical — the following tools perform real, live mutations against
|
|
58
|
+
`graphql.anilist.co` the moment they're called, with no separate
|
|
59
|
+
confirmation step of the server's own:
|
|
60
|
+
- **Your list**: `add_list_entry`, `update_list_entry`, `remove_list_entry`
|
|
61
|
+
— add, change (status, score, progress, notes, dates, custom lists,
|
|
62
|
+
advanced scores, rewatches), or delete entries on your anime/manga list.
|
|
63
|
+
- **Favourites and follows**: `toggle_favourite` (anime, manga, characters,
|
|
64
|
+
staff, or studios) and `toggle_follow_user`.
|
|
65
|
+
- **Public posts under your name**: `post_text_activity`,
|
|
66
|
+
`post_message_activity`, `post_thread`, `post_thread_comment` — these
|
|
67
|
+
publish content to AniList's public activity feed or forums, visible to
|
|
68
|
+
other AniList users and attributed to your account, exactly as if you'd
|
|
69
|
+
posted them yourself on anilist.co. Their `delete_activity`,
|
|
70
|
+
`delete_thread`, `delete_thread_comment` counterparts remove your own
|
|
71
|
+
posts the same way.
|
|
72
|
+
- **Account settings**: `update_user` changes settings on your AniList
|
|
73
|
+
profile.
|
|
74
|
+
|
|
75
|
+
Every one of these requires a valid access token (`ANILIST_ACCESS_TOKEN` or
|
|
76
|
+
one obtained via `login_anilist`); without one they return an error instead
|
|
77
|
+
of a doomed request. There is no tool-level allow/deny list beyond that —
|
|
78
|
+
if the calling AI model decides to invoke one of these tools with your
|
|
79
|
+
token configured, the mutation happens. Review what your AI agent intends
|
|
80
|
+
to do before authorizing it to act with a write-capable token, the same way
|
|
81
|
+
you would before granting any other tool access to a real account.
|
|
82
|
+
|
|
83
|
+
- **`get_notifications` / `get_authorized_user`** read private data (your own
|
|
84
|
+
notifications, your own profile as seen while logged in) using the same
|
|
85
|
+
bearer token. `get_authorized_user` doesn't write anything; `get_notifications`
|
|
86
|
+
is read-only by default too, but its opt-in `markAsRead: true` resets
|
|
87
|
+
AniList's real unread-notification badge count as a side effect.
|
|
88
|
+
- **The login flow itself** (`login_anilist`): opens your system browser to
|
|
89
|
+
AniList's own authorize page, where you sign in and approve directly with
|
|
90
|
+
AniList (this server never sees your AniList password). AniList redirects
|
|
91
|
+
back with a one-time code, which the server exchanges — sending your
|
|
92
|
+
`ANILIST_CLIENT_ID`/`ANILIST_CLIENT_SECRET` and that code, never a
|
|
93
|
+
password — for an access token at AniList's token endpoint.
|
|
94
|
+
|
|
95
|
+
Once a request reaches AniList, it is governed by
|
|
96
|
+
[AniList's own Terms & Privacy](https://anilist.co/terms) (AniList publishes
|
|
97
|
+
one combined page, not a separate privacy policy).
|
|
98
|
+
`anilist-mcp-server` sends data to no other destination — no analytics
|
|
99
|
+
vendor, no logging service, no server operated by its maintainer.
|
|
100
|
+
|
|
101
|
+
## Storage and retention
|
|
102
|
+
|
|
103
|
+
- **Caching**: successful **read** responses are cached in the server
|
|
104
|
+
process's own memory only (never written to disk), for a short
|
|
105
|
+
configurable TTL (`CACHE_TTL_MS`, default 5 minutes) to cut latency and
|
|
106
|
+
ease pressure on AniList's rate-limited API. Cache keys include the actual
|
|
107
|
+
token in use, so different accounts' cached data can never cross. Mutations
|
|
108
|
+
are never cached, and a successful mutation immediately clears the entire
|
|
109
|
+
cache (since a write can change the answer to previously-cached reads,
|
|
110
|
+
e.g. a newly-favourited title's `isFavourite` flag) so the next read is
|
|
111
|
+
guaranteed fresh. The cache is cleared entirely when the process exits and
|
|
112
|
+
is never shared across machines or users.
|
|
113
|
+
- **Your access token**: if obtained via `login_anilist`, it is written to a
|
|
114
|
+
single local file (`~/.config/anilist-mcp-server/tokens.json` on
|
|
115
|
+
macOS/Linux, `%APPDATA%\anilist-mcp-server\tokens.json` on Windows, or the
|
|
116
|
+
path in `ANILIST_TOKEN_STORE`), created with `0600` permissions
|
|
117
|
+
(owner-read/write only) so it persists across restarts without requiring
|
|
118
|
+
you to log in again — AniList tokens don't support refresh and are valid
|
|
119
|
+
for about a year. If you instead pre-supply `ANILIST_ACCESS_TOKEN`
|
|
120
|
+
directly, it is held in memory only for that run and is **not** written to
|
|
121
|
+
this file. Nothing about this token is ever sent anywhere except to
|
|
122
|
+
AniList itself, as described above.
|
|
123
|
+
- **Logging**: operational logs go to stderr only (never a file, never a
|
|
124
|
+
remote endpoint), with credentials/tokens redacted before anything is
|
|
125
|
+
written. Log verbosity is controlled by `LOG_LEVEL` (default `info`); logs
|
|
126
|
+
live only as long as your MCP client keeps that stderr stream around.
|
|
127
|
+
- Beyond the cache TTL, the on-disk token file, and the running process's
|
|
128
|
+
lifetime, `anilist-mcp-server` retains nothing. There is no other
|
|
129
|
+
persistent storage layer, and no copy of anything you post or write is kept
|
|
130
|
+
by the server itself once the request completes — AniList's own retention
|
|
131
|
+
of that data (e.g. an activity post or list entry) is governed by AniList's
|
|
132
|
+
Terms & Privacy linked above.
|
|
133
|
+
|
|
134
|
+
## Changes to this policy
|
|
135
|
+
|
|
136
|
+
Material changes will be noted in [CHANGELOG.md](CHANGELOG.md) and reflected
|
|
137
|
+
here, at the same URL, with the effective date below updated.
|
|
138
|
+
|
|
139
|
+
_Last updated: 2026-07-30._
|
|
140
|
+
|
|
141
|
+
## Contact
|
|
142
|
+
|
|
143
|
+
Questions about this policy or `anilist-mcp-server`'s data handling:
|
|
144
|
+
[open a GitHub issue](https://github.com/Grinv/anilist-mcp-server/issues) or
|
|
145
|
+
email
|
|
146
|
+
[4070730+Grinv@users.noreply.github.com](mailto:4070730+Grinv@users.noreply.github.com).
|
package/README.md
CHANGED
|
@@ -149,8 +149,8 @@ To enable them, set `ANILIST_CLIENT_ID` + `ANILIST_CLIENT_SECRET` and run the
|
|
|
149
149
|
**`login_anilist`** tool once (a one-time browser authorization; the token is
|
|
150
150
|
then stored and reused). The server does not read a `.env` file, so pass
|
|
151
151
|
config via this `env` block (or your shell environment). See
|
|
152
|
-
[docs/auth.md](docs/auth.md) for the full login walkthrough and
|
|
153
|
-
[docs/clients.md](docs/clients.md) for more clients.
|
|
152
|
+
[docs/auth.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/auth.md) for the full login walkthrough and
|
|
153
|
+
[docs/clients.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/clients.md) for more clients.
|
|
154
154
|
|
|
155
155
|
## Connect your AniList account
|
|
156
156
|
|
|
@@ -196,34 +196,34 @@ That's it. The token is saved locally (`~/.config/anilist-mcp-server/tokens.json
|
|
|
196
196
|
refresh mechanism — you'll need to run `login_anilist` again once it does.
|
|
197
197
|
|
|
198
198
|
> **Prefer no interactive step?** Pre-set a standalone `ANILIST_ACCESS_TOKEN`
|
|
199
|
-
> instead. See [docs/auth.md](docs/auth.md).
|
|
199
|
+
> instead. See [docs/auth.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/auth.md).
|
|
200
200
|
|
|
201
201
|
## Configuration
|
|
202
202
|
|
|
203
203
|
All configuration is via environment variables, all optional — without
|
|
204
204
|
credentials the read tools still work.
|
|
205
205
|
|
|
206
|
-
| Variable | Purpose
|
|
207
|
-
| ----------------------- |
|
|
208
|
-
| `ANILIST_CLIENT_ID` | Your AniList app's Client ID — see [Connect your AniList account](#connect-your-anilist-account).
|
|
209
|
-
| `ANILIST_CLIENT_SECRET` | Your AniList app's Client Secret, paired with the Client ID above.
|
|
210
|
-
| `ANILIST_ACCESS_TOKEN` | _Advanced, optional._ Pre-supply a token instead of running `login_anilist`. See [docs/auth.md](docs/auth.md).
|
|
211
|
-
| `ANILIST_TOKEN_STORE` | Override where the login token is saved on disk (default: your OS's config folder).
|
|
212
|
-
| `ANILIST_OAUTH_PORT` | Only needed if port `8082` is already in use — see step 1 of the [account walkthrough](#connect-your-anilist-account).
|
|
213
|
-
| `LOG_LEVEL` | How much the server logs: `debug` \| `info` \| `warn` \| `error` \| `silent` (default `info`).
|
|
206
|
+
| Variable | Purpose |
|
|
207
|
+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
208
|
+
| `ANILIST_CLIENT_ID` | Your AniList app's Client ID — see [Connect your AniList account](#connect-your-anilist-account). |
|
|
209
|
+
| `ANILIST_CLIENT_SECRET` | Your AniList app's Client Secret, paired with the Client ID above. |
|
|
210
|
+
| `ANILIST_ACCESS_TOKEN` | _Advanced, optional._ Pre-supply a token instead of running `login_anilist`. See [docs/auth.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/auth.md). |
|
|
211
|
+
| `ANILIST_TOKEN_STORE` | Override where the login token is saved on disk (default: your OS's config folder). |
|
|
212
|
+
| `ANILIST_OAUTH_PORT` | Only needed if port `8082` is already in use — see step 1 of the [account walkthrough](#connect-your-anilist-account). |
|
|
213
|
+
| `LOG_LEVEL` | How much the server logs: `debug` \| `info` \| `warn` \| `error` \| `silent` (default `info`). |
|
|
214
214
|
|
|
215
215
|
### Tuning (rarely needed)
|
|
216
216
|
|
|
217
|
-
| Variable | Purpose
|
|
218
|
-
| ----------------------------------------------- |
|
|
219
|
-
| `ANILIST_MIN_INTERVAL_MS` | Min spacing between AniList calls (default `2100`, i.e. ~30/min — AniList's API is currently in a documented degraded state; see [docs/api-references.md](docs/api-references.md)). Set to `0` to disable client-side throttling. |
|
|
220
|
-
| `CACHE_TTL_MS` | TTL for the in-memory read cache (default `300000` = 5 min).
|
|
221
|
-
| `HTTP_TIMEOUT_MS`, `HTTP_RETRIES` | Per-request timeout (default `15000`) and retry attempts for transient failures (default `2`).
|
|
222
|
-
| `ANILIST_GRAPHQL_URL`, `ANILIST_OAUTH_BASE_URL` | Override upstream base URLs.
|
|
217
|
+
| Variable | Purpose |
|
|
218
|
+
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
219
|
+
| `ANILIST_MIN_INTERVAL_MS` | Min spacing between AniList calls (default `2100`, i.e. ~30/min — AniList's API is currently in a documented degraded state; see [docs/api-references.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/api-references.md)). Set to `0` to disable client-side throttling. |
|
|
220
|
+
| `CACHE_TTL_MS` | TTL for the in-memory read cache (default `300000` = 5 min). |
|
|
221
|
+
| `HTTP_TIMEOUT_MS`, `HTTP_RETRIES` | Per-request timeout (default `15000`) and retry attempts for transient failures (default `2`). |
|
|
222
|
+
| `ANILIST_GRAPHQL_URL`, `ANILIST_OAUTH_BASE_URL` | Override upstream base URLs. |
|
|
223
223
|
|
|
224
224
|
Provide these in your MCP client config's `env` block (the server does **not**
|
|
225
|
-
read a `.env` file). See [docs/auth.md](docs/auth.md) for how to obtain the
|
|
226
|
-
credentials, and [docs/clients.md](docs/clients.md) for client configuration
|
|
225
|
+
read a `.env` file). See [docs/auth.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/auth.md) for how to obtain the
|
|
226
|
+
credentials, and [docs/clients.md](https://github.com/Grinv/anilist-mcp-server/blob/main/docs/clients.md) for client configuration
|
|
227
227
|
snippets.
|
|
228
228
|
|
|
229
229
|
## NSFW content
|
|
@@ -244,7 +244,7 @@ npm run check:api # live health-check of the AniList GraphQL endpoint
|
|
|
244
244
|
npm run inspector # run under the MCP Inspector
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
-
Runtime requires Node ≥ 20. See [AGENTS.md](AGENTS.md) for contributor/agent
|
|
247
|
+
Runtime requires Node ≥ 20.11. See [AGENTS.md](AGENTS.md) for contributor/agent
|
|
248
248
|
guidance, including why this server exists and how it avoids the upstream bug
|
|
249
249
|
that motivated building it.
|
|
250
250
|
|
|
@@ -267,6 +267,22 @@ AniList. All data comes from the public [AniList GraphQL API](https://docs.anili
|
|
|
267
267
|
personal-account operations use your own AniList account and token. Use is
|
|
268
268
|
subject to [AniList's Terms of Service](https://anilist.co/terms).
|
|
269
269
|
|
|
270
|
+
## Privacy Policy
|
|
271
|
+
|
|
272
|
+
This server runs locally on your machine and has no telemetry of its own.
|
|
273
|
+
Personal/mutation tools act on your real AniList account (list, favourites,
|
|
274
|
+
follows, posts, account settings) using a token you supply — see
|
|
275
|
+
[PRIVACY.md](PRIVACY.md) for the full details on data collection, what gets
|
|
276
|
+
sent where, caching/token storage and retention, and contact info.
|
|
277
|
+
|
|
278
|
+
## Security
|
|
279
|
+
|
|
280
|
+
This is the broadest write/social tool surface of this project's sibling
|
|
281
|
+
servers — list mutations, favourites, follows, and posting/deleting activity,
|
|
282
|
+
threads, and comments, all on your real AniList account. See
|
|
283
|
+
[SECURITY.md](SECURITY.md) for the full mutating-tool inventory, token
|
|
284
|
+
storage/handling, credential redaction, and how to report a vulnerability.
|
|
285
|
+
|
|
270
286
|
## License
|
|
271
287
|
|
|
272
288
|
[MIT](LICENSE) © Grinv
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Security
|
|
2
|
+
|
|
3
|
+
`anilist-mcp-server` talks to **AniList's own GraphQL API only** — but unlike
|
|
4
|
+
its read-only sibling servers in this project family, it has the broadest
|
|
5
|
+
write/social tool surface of the four: it can post and delete public content,
|
|
6
|
+
and change settings, on the real AniList account it's configured with.
|
|
7
|
+
|
|
8
|
+
## Public reads vs. authenticated writes
|
|
9
|
+
|
|
10
|
+
- **No credential needed** for search/details, characters/staff/studios,
|
|
11
|
+
genres/tags, reviews/recommendations, forum threads, activity feeds, and
|
|
12
|
+
public/unlisted user profiles and lists — these call AniList's public
|
|
13
|
+
GraphQL endpoint directly.
|
|
14
|
+
- **Personal-list and social tools require the user's own OAuth access
|
|
15
|
+
token** (`ANILIST_ACCESS_TOKEN`, or one obtained via `login_anilist`).
|
|
16
|
+
Without one, every tool in that category returns an actionable error
|
|
17
|
+
instead of a doomed request — see [docs/auth.md](docs/auth.md) for the
|
|
18
|
+
three credential tiers.
|
|
19
|
+
|
|
20
|
+
## The mutating tool surface
|
|
21
|
+
|
|
22
|
+
These 13 tools all perform a real, live mutation against
|
|
23
|
+
`graphql.anilist.co` the moment they're called, with no separate
|
|
24
|
+
confirmation step of the server's own, and every one of them requires the
|
|
25
|
+
caller's own valid access token — there is no cross-user write capability
|
|
26
|
+
anywhere in this server:
|
|
27
|
+
|
|
28
|
+
- **List entries**: `add_list_entry`, `update_list_entry`, `remove_list_entry`
|
|
29
|
+
- **Favourites and follows**: `toggle_favourite`, `toggle_follow_user`
|
|
30
|
+
- **Posting**: `post_text_activity`, `post_message_activity`, `post_thread`,
|
|
31
|
+
`post_thread_comment`
|
|
32
|
+
- **Deleting**: `delete_activity`, `delete_thread`, `delete_thread_comment`
|
|
33
|
+
- **Account settings**: `update_user`
|
|
34
|
+
|
|
35
|
+
**Posting and deleting activity, threads, and comments happens on the real
|
|
36
|
+
user's real AniList account**, publicly visible to other AniList users and
|
|
37
|
+
attributed to that account, exactly as if they'd been posted directly on
|
|
38
|
+
anilist.co. There is no tool-level allow/deny list beyond "is a token
|
|
39
|
+
configured" — if the calling AI model decides to invoke one of these tools,
|
|
40
|
+
the mutation happens. Review what an AI agent intends to do before
|
|
41
|
+
authorizing it to act with a write-capable token, the same way you would
|
|
42
|
+
before granting any other tool access to a real account.
|
|
43
|
+
|
|
44
|
+
## Token storage
|
|
45
|
+
|
|
46
|
+
- A token obtained via `login_anilist` is written to a single local file —
|
|
47
|
+
`~/.config/anilist-mcp-server/tokens.json` on macOS/Linux,
|
|
48
|
+
`%APPDATA%\anilist-mcp-server\tokens.json` on Windows, or the path in
|
|
49
|
+
`ANILIST_TOKEN_STORE` — created with `0600` permissions (owner-read/write
|
|
50
|
+
only). Pre-supplying `ANILIST_ACCESS_TOKEN` directly instead keeps the
|
|
51
|
+
token in memory only for that run; it is never written to this file.
|
|
52
|
+
- **Caveat**: `writeFileSync(..., { mode: 0o600 })` (`src/lib/tokenStore.ts`)
|
|
53
|
+
only applies that mode when the file is _created_. If the file already
|
|
54
|
+
exists with looser permissions (e.g. copied in from elsewhere, or created
|
|
55
|
+
by a different process/user), overwriting it does not retroactively
|
|
56
|
+
tighten those permissions. Verify the file's mode yourself if you have any
|
|
57
|
+
reason to suspect it wasn't created by this server.
|
|
58
|
+
- AniList issues no refresh token — access tokens are long-lived JWTs
|
|
59
|
+
(~1 year, read from the token's own `exp` claim). Re-running
|
|
60
|
+
`login_anilist` is the only way to renew one.
|
|
61
|
+
- `login_anilist` never sees your AniList password: it opens AniList's own
|
|
62
|
+
authorize page in your browser, where you sign in and approve directly
|
|
63
|
+
with AniList, which then redirects back with a one-time code. The server
|
|
64
|
+
exchanges that code (plus your `ANILIST_CLIENT_ID`/`ANILIST_CLIENT_SECRET`)
|
|
65
|
+
for an access token at AniList's token endpoint — never a password.
|
|
66
|
+
|
|
67
|
+
## Env-configurable endpoints
|
|
68
|
+
|
|
69
|
+
`ANILIST_GRAPHQL_URL` (default `https://graphql.anilist.co`) and
|
|
70
|
+
`ANILIST_OAUTH_BASE_URL` (default `https://anilist.co/api/v2/oauth`) are
|
|
71
|
+
fixed once at server startup from the environment — there is no tool
|
|
72
|
+
parameter that lets a caller redirect a request to a different host at call
|
|
73
|
+
time. That said, there is also no host allowlist: if you (or whatever
|
|
74
|
+
deploys this server) point either of these at something other than AniList's
|
|
75
|
+
real infrastructure, every GraphQL request — including the bearer token on
|
|
76
|
+
every authenticated call, and the `client_id`/`client_secret` sent during the
|
|
77
|
+
OAuth token exchange — goes to that host instead. Only set these to a host
|
|
78
|
+
you trust with those credentials.
|
|
79
|
+
|
|
80
|
+
## Credential redaction
|
|
81
|
+
|
|
82
|
+
Log lines (stderr only, never a file or a remote endpoint) are passed
|
|
83
|
+
through `redact()` (`src/lib/errors.ts`) before being written, which strips
|
|
84
|
+
`Authorization: Bearer ...` headers and `access_token`/`refresh_token`/
|
|
85
|
+
`client_secret`/`client_id` values in both `key=value` and JSON
|
|
86
|
+
(`"key":"value"`) shapes — the latter matches the actual shape of this
|
|
87
|
+
server's own OAuth token exchange request body
|
|
88
|
+
(`src/clients/anilist.ts`'s `#completeWithCode`), even though no current
|
|
89
|
+
logging call site logs that body directly.
|
|
90
|
+
|
|
91
|
+
## Reporting a vulnerability
|
|
92
|
+
|
|
93
|
+
Open a [GitHub issue](https://github.com/Grinv/anilist-mcp-server/issues) or,
|
|
94
|
+
for anything sensitive, email the address on the maintainer's GitHub profile
|
|
95
|
+
(<https://github.com/Grinv>). Please don't file public issues for
|
|
96
|
+
vulnerabilities that could affect other users' AniList accounts before
|
|
97
|
+
there's a fix available.
|
|
98
|
+
|
|
99
|
+
Not affiliated with AniList. "AniList" is a trademark of its respective
|
|
100
|
+
owner.
|