首页
学习
活动
专区
圈层
工具
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
首页
学习
活动
专区
圈层
工具
MCP广场
MCP广场 >详情页
anilist-mcp云托管模式2025-06-160分享
github
AniList MCP 服务器是一个基于模型上下文协议(MCP)的工具,旨在与 AniList API 进行交互,使 LLM 客户端能够访问和操作 AniList 上的动漫、漫画、角色、工作人员和用户数据。其主要功能包括搜索和获取动漫、漫画、角色、工作人员及用户信息,支持高级筛选选项,并允许用户执行收藏、关注等操作。该服务器可以通过 Smithery 或手动安装,并支持与 Claude Desktop 等 MCP 客户端集成。开发者还可以通过 Docker 进行部署,并利用 MCP Inspector 进行调试和测试。
By yuna0x0
2025-06-160
github
详情内容

AniList MCP 服务器

smithery 徽章

这是一个与 AniList API 交互的模型上下文协议(MCP)服务器,允许 LLM 客户端访问和交互 AniList 上的动漫、漫画、角色、工作人员和用户数据。

功能

  • 搜索动漫、漫画、角色、工作人员和工作室
  • 获取特定动漫、漫画、角色和工作人员的详细信息
  • 访问用户个人资料和列表
  • 支持高级筛选选项
  • 获取类型和媒体标签

先决条件

  • Node.js 18+

与 Claude Desktop(或其他 MCP 客户端)一起使用

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 AniList MCP 服务器:

npx -y @smithery/cli install @yuna0x0/anilist-mcp --client claude

# 对于其他 MCP 客户端,使用以下命令:
# 列出可用的客户端
npx -y @smithery/cli list clients
# 安装到其他客户端
npx -y @smithery/cli install @yuna0x0/anilist-mcp --client <client_name>

通过 mcp-get 安装

npx @michaellatman/mcp-get@latest install anilist-mcp

手动安装

  1. 将此服务器添加到您的 claude_desktop_config.json 文件中:
{
  "mcpServers": {
    "anilist": {
      "command": "npx",
      "args": ["-y", "anilist-mcp"],
      "env": {
        "ANILIST_TOKEN": "your_api_token"
      }
    }
  }
}

如果您不打算使用 AniList 令牌进行需要登录的操作,可以完全删除 env 对象。

  1. 重启 Claude Desktop
  2. 使用工具与 AniList 交互

环境变量

  • ANILIST_TOKEN: (可选)AniList API 令牌(仅在需要登录的操作中使用)

获取 AniList API 令牌(可选)

要获取 API 令牌,请按照以下步骤操作:

  1. 前往 AniList 设置
  2. 点击“创建新客户端”。
  3. 使用以下 URL 作为客户端的“重定向 URL”:
https://anilist.co/api/v2/oauth/pin
  1. 点击“保存”
  2. 然后前往 https://anilist.co/api/v2/oauth/authorize?client_id={clientID}&response_type=token,将 {clientID} 替换为您获得的客户端 ID。它将要求您登录,然后为您提供要使用的令牌。
  3. 复制生成的令牌并在您的 .env 文件或环境变量中使用。

可用工具

杂项工具

  • get_genres: 获取 AniList 上所有可用的类型
  • get_media_tags: 获取 AniList 上所有可用的媒体标签
  • get_site_statistics: 获取 AniList 站点过去七天的统计信息
  • get_studio: 通过 AniList ID 或名称获取工作室的信息
  • favourite_studio: [需要登录] 通过 ID 收藏或取消收藏工作室

活动工具

  • delete_activity: [需要登录] 删除当前授权用户的活动帖子
  • get_activity: 通过 ID 获取特定的 AniList 活动
  • get_user_activity: 获取用户的活动
  • post_message_activity: [需要登录] 发布新的消息活动或更新现有活动
  • post_text_activity: [需要登录] 发布新的文本活动或更新现有活动

列表工具

  • get_user_anime_list: 获取用户的动漫列表
  • get_user_manga_list: 获取用户的漫画列表
  • add_list_entry: [需要登录] 将条目添加到授权用户的列表中
  • remove_list_entry: [需要登录] 从授权用户的列表中删除条目
  • update_list_entry: [需要登录] 更新授权用户列表中的条目

媒体工具

  • get_anime: 通过 AniList ID 获取动漫的详细信息
  • get_manga: 通过 AniList ID 获取漫画的详细信息
  • favourite_anime: [需要登录] 通过 ID 收藏或取消收藏动漫
  • favourite_manga: [需要登录] 通过 ID 收藏或取消收藏漫画

人物工具

  • get_character: 通过 AniList ID 获取角色的信息
  • get_staff: 通过 AniList ID 获取工作人员的信息
  • favourite_character: [需要登录] 通过 ID 收藏或取消收藏角色
  • favourite_staff: [需要登录] 通过 ID 收藏或取消收藏工作人员
  • get_todays_birthday_characters: 获取今天生日的所有角色
  • get_todays_birthday_staff: 获取今天生日的所有工作人员

推荐工具

  • get_recommendation: 通过 ID 获取 AniList 推荐
  • get_recommendations_for_media: 获取特定媒体的 AniList 推荐

搜索工具

  • search_activity: 在 AniList 上搜索活动
  • search_anime: 使用查询词和筛选器搜索动漫
  • search_manga: 使用查询词和筛选器搜索漫画
  • search_character: 基于查询词搜索角色
  • search_staff: 基于查询词搜索工作人员
  • search_studio: 基于查询词搜索工作室
  • search_user: 在 AniList 上搜索用户

线程工具

  • get_thread: 通过 AniList ID 获取特定线程
  • get_thread_comments: 获取特定线程的评论
  • delete_thread: [需要登录] 通过 ID 删除线程

用户工具

  • get_user_profile: 获取用户的 AniList 个人资料
  • get_user_stats: 获取用户的 AniList 统计信息
  • get_full_user_info: 获取用户的完整个人资料和统计信息
  • get_user_recent_activity: 获取用户的最近活动
  • get_authorized_user: [需要登录] 获取当前授权用户的个人资料信息
  • follow_user: [需要登录] 通过 ID 关注或取消关注用户
  • update_user: [需要登录] 更新用户设置

示例用法

基本动漫搜索

你能搜索类似于《孤独摇滚!》的动漫吗?

获取角色信息

你能告诉我关于后藤一里的信息吗?使用 AniList 工具查找信息。

比较工作室作品

吉卜力工作室制作了哪些动漫?你能列出他们最受欢迎的作品吗?

本地开发

此项目使用 Bun 作为其包管理器。如果尚未安装,您应该安装它。

克隆仓库并安装依赖项:

git clone https://github.com/yuna0x0/anilist-mcp.git
cd anilist-mcp
bun install

配置(可选)

  1. 通过复制示例创建 .env 文件:
cp .env.example .env
  1. 编辑 .env 文件并添加您的 AniList API 令牌:
ANILIST_TOKEN=your_api_token

使用 MCP Inspector 调试

您可以使用 MCP Inspector 测试和调试 AniList MCP 服务器:

npx @modelcontextprotocol/inspector -e ANILIST_TOKEN=your_api_token npx anilist-mcp

# 本地开发时使用此命令
bun run inspector

然后在浏览器中打开提供的 URL(通常为 http://127.0.0.1:6274)以访问 MCP Inspector 界面。从那里,您可以:

  1. 连接到正在运行的 AniList MCP 服务器
  2. 浏览可用的工具
  3. 使用自定义参数运行工具
  4. 查看响应

这对于在连接到 Claude 或其他 AI 助手之前测试您的设置特别有用。

Docker

从 Docker Hub 拉取:

docker pull yuna0x0/anilist-mcp

Docker 构建(本地开发):

docker build -t yuna0x0/anilist-mcp .

Docker 多平台构建(本地开发):

docker buildx build --platform linux/amd64,linux/arm64 -t yuna0x0/anilist-mcp .

安全通知

此 MCP 服务器接受您在 .env 文件或环境变量中的 AniList API 令牌。请确保此信息安全,切勿将其提交到版本控制中。

许可证

此项目根据 MIT 许可证授权 - 有关详细信息,请参阅 LICENSE 文件。

通过SSE URL连接服务
Server已在腾讯云托管,可在连接后免费调用和在线进行工具测试~
工具测试
已支持Server下的44个工具,可选择工具进行在线测试
add_list_entry
[Requires Login] Add an entry to the authorized user's list
delete_activity
[Requires Login] Delete the current authorized user's activity post
delete_thread
[Requires Login] Delete a thread by its ID
favourite_anime
[Requires Login] Favourite or unfavourite an anime by its ID
favourite_character
[Requires Login] Favourite or unfavourite a character by its ID
favourite_manga
[Requires Login] Favourite or unfavourite a manga by its ID
favourite_staff
[Requires Login] Favourite or unfavourite a staff member by their ID
favourite_studio
[Requires Login] Favourite or unfavourite a studio by its ID
follow_user
[Requires Login] Follow or unfollow a user by their ID
get_activity
Get a specific AniList activity by its ID
get_anime
Get detailed information about an anime by its AniList ID
get_authorized_user
[Requires Login] Get profile information of the currently authorized user
get_character
Get information about a character by their AniList ID or name
get_full_user_info
Get a user's complete profile and stats information
get_genres
Get all available genres on AniList
get_manga
Get detailed information about a manga by its AniList ID
get_media_tags
Get all available media tags on AniList
get_recommendation
Get an AniList recommendation by its ID
get_recommendations_for_media
Get AniList recommendations for a specific media
get_site_statistics
Get AniList site statistics over the last seven days
get_staff
Get information about staff member by their AniList ID or name
get_studio
Get information about a studio by its AniList ID or name
get_thread
Get a specific thread by its AniList ID
get_thread_comments
Get comments for a specific thread
get_todays_birthday_characters
Get all characters whose birthday is today
get_todays_birthday_staff
Get all staff members whose birthday is today
get_user_activity
Fetch activities from a user
get_user_anime_list
Get a user's anime list
get_user_manga_list
Get a user's manga list
get_user_profile
Get a user's AniList profile
get_user_recent_activity
Get recent activity from a user
get_user_stats
Get a user's AniList statistics
post_message_activity
[Requires Login] Post a new message activity or update an existing one
post_text_activity
[Requires Login] Post a new text activity or update an existing one
remove_list_entry
[Requires Login] Remove an entry from the authorized user's list
search_activity
Search for activities on AniList
search_anime
Search for anime with query term and filters
search_character
Search for characters based on a query term
search_manga
Search for manga with query term and filters
search_staff
Search for staff members based on a query term
search_studio
Search for studios based on a query term
search_user
Search for users on AniList
update_list_entry
[Requires Login] Update an entry on the authorized user's list
update_user
[Requires Login] Update user settings
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档