About Anime Garden
Anime Garden is a third-party mirror of 動漫花園 and an anime torrent aggregator for viewers and developers. It combines advanced search, broadcast schedules, RSS subscriptions, and an open API.
Key features
- 01Anime torrent aggregation
- 02Advanced search with filters
- 03Anime broadcast schedules
- 04Custom and combined RSS feeds
- 05Open API and JavaScript client
Use cases
- 01Find recent torrents for an anime
- 02Filter releases by fansub, quality, or keywords
- 03Subscribe to filtered results via RSS
MCP support
It provides an MCP server endpoint at https://api.animes.garden/mcp for MCP clients to search Anime Garden anime resources.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api.animes.garden/mcpclaude mcp add --transport http garden-animes-animegarden https://api.animes.garden/mcp{"mcpServers":{"garden-animes-animegarden":{"type":"http","url":"https://api.animes.garden/mcp"}}}Open in Cursor{"servers":{"garden-animes-animegarden":{"type":"http","url":"https://api.animes.garden/mcp"}}}Open in VS Code{"mcpServers":{"garden-animes-animegarden":{"type":"http","url":"https://api.animes.garden/mcp"}}}{"mcpServers":{"garden-animes-animegarden":{"serverUrl":"https://api.animes.garden/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project README🌸 Anime Garden
動漫花園 第三方 镜像站 以及 动画 BT 资源聚合站.
- ☁️ 为开发者准备的开放 API 接口
- 📺 查看 动画放送时间表 来找到你喜欢的动画
- 🔖 支持丰富的高级搜索, 例如:
上伊那牡丹 +简日 字幕组:喵萌奶茶屋 类型:动画 - 📙 自定义 RSS 订阅链接, 例如: 上伊那牡丹
- ⭐ 搜索条件收藏夹和生成聚合的 RSS 订阅链接
- 👷♂️ 支持与 AutoBangumi 和 AnimeSpace 集成
讨论群: Telegram @animegarden_dev
推送频道: Telegram @animegarden_channel
项目文档: 由 DeepWiki 生成
使用插件
选择你使用的 Agent 客户端安装插件.
Codex
codex plugin marketplace add yjl9903/AnimeGarden
codex plugin add animegarden@animegarden
Claude Code
claude plugin marketplace add yjl9903/AnimeGarden
claude plugin install animegarden@animegarden
安装后打开新会话,直接输入:
使用 AnimeGarden 查找上伊那牡丹第一话资源
使用 Skills
Anime Garden skill: 用于从 Anime Garden 上检索动画资源.
使用 Vercel skills CLI 添加 Anime Garden skill.
npx skills add https://github.com/yjl9903/AnimeGarden --skill animegarden
使用 MCP
Anime Garden MCP 服务端点: https://api.animes.garden/mcp.
例如,在 Claude Code 的 MCP 配置中添加:
{
"mcpServers": {
"animegarden": {
"type": "http",
"url": "https://api.animes.garden/mcp"
}
}
}
使用开放 API
curl "https://api.animes.garden/resources?page=1&pageSize=10"
你可以在这里找到交互式的 Open API 文档, 以及在本仓库的 examples/api.http 文件内查看到更多 API 用例.
你也可以直接使用网站, 在资源列表页 (例如 上伊那牡丹 最新资源) 直接复制生成的 cURL、JavaScript 和 Python 的 API 请求代码.
如果你正在使用 JavaScript 和 TypeScript 进行开发, 那么你可以直接使用 npm 包 @animegarden/client, 它是对这些 API 请求的上层封装.
使用 npm 包
支持 Node.js 24+ 或提供标准 Fetch API 的浏览器环境.
它是 AnimeGarden 的 JavaScript / TypeScript 的 API 客户端封装.
npm i @animegarden/client
示例:
import { fetchResources } from '@animegarden/client';
// Fetch the first page of resources
const result = await fetchResources();
if (!result.ok) {
throw result.error;
}
console.log(result.resources);
// Fetch matching resources across pages
const botan = await fetchResources({
count: -1,
subject: 543360,
fansub: '喵萌奶茶屋',
keywords: ['简日']
});
if (!botan.ok) {
throw botan.error;
}
console.log(botan.resources);
更多程序示例见 ./examples/.
常用筛选条件(取交集):
| 字段 | 筛选逻辑 |
|---|---|
subjects | 按 Bangumi 条目 ID 筛选,多个 ID 匹配任意一个. |
fansubs / publishers | 分别按字幕组或发布者名称筛选,匹配任意一个;同时设置时满足任一条件即可. |
search | 按番剧名或关键词搜索标题;设置后忽略 include. |
include | 标题包含任意一个指定词,可用于按番剧名搜索. |
keywords | 标题包含全部指定词,例如 ['1080p', '简日']. |
exclude | 排除标题包含任意一个指定词的资源. |
after / before | 限定发布时间范围,包含边界时间. |
fetchResources() 成功返回时,包含以下字段:
| 字段 | 含义 |
|---|---|
ok | true 表示请求成功. |
resources | 匹配的资源数组,去重后按发布时间从新到旧排序. |
pagination | 最后取得的页码 page、每页条数 pageSize;complete: true 表示没有下一页. |
filter | 服务端解析后实际使用的筛选条件. |
timestamp | 首次成功响应的时间. |
使用内嵌代码
你可以从资源搜索页复制出网页嵌入代码,放到你的博客等各种页面中.
<iframe src="https://animes.garden/iframe?subject=543360" width="100%" height="600" frameborder="0"></iframe>
本地开发
参考 CONTRIBUTING.md 中的描述配置环境和开始开发.
相关项目
- AnimeSpace: Keep following your favourite anime
- anipar: Parse structure metadata from resource's title.
- bgmx: Bangumi Data / API Clients
鸣谢
开源协议
AGPL-3.0 License © 2023 XLor
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.
