Skip to main content
Glama
Augumenter

Suwayomi MCP Server

by Augumenter

?? Suwayomi MCP 服务器

许可证:MIT Python 3.10+ MCP 标准 Suwayomi-Server

一个高性能的**模型上下文协议(MCP)**服务器,可将 AI 编程助手和自主代理(Claude CodeClaude DesktopCursorWindsurfAntigravity)直接连接到您自托管的 Suwayomi-Server 漫画和韩漫库。


?? 问题与解决方案

?? 瓶颈

漫画、韩漫和轻小说爱好者通常会在多个扩展源(MangaDex、Webtoons、Asura、Flame 等)中管理数百部作品和数千个章节。

在此之前,使用 AI 代理管理这些收藏是零散的:

  • 移动端 Mihon/Tachiyomi 没有公开的 API,需要脆弱的静态备份解析(.tachibk),无法执行实时搜索、写入更改或下载章节。

  • 聚合器 UI 需要手动搜索、在 5 个以上的扩展标签页中点击,并手动排队下载章节。

?? 解决方案

suwayomi-mcp 弥合了这一差距。通过标准 JSON-RPC(stdio 传输)直接与 Suwayomi 的本地 GraphQL 引擎通信,您的 AI 助手可以:

  1. 实时审计您的收藏库状态(跟踪未读章节积压、完成状态和类型)。

  2. 在您的数据库中执行即时全文搜索,并批量将作品添加到收藏。

  3. 用一句自然语言排队并触发后台章节下载


Related MCP server: Mealie MCP Server

?? 系统架构

+-------------------------------------------------------------------------+
|                         LLM / AI ASSISTANT                              |
|           (Claude Desktop, Claude Code, Cursor, Windsurf)               |
+-------------------------------------------------------------------------+
                                     ¦  (Natural Language Intent)
                                     ?
+-------------------------------------------------------------------------+
|                  SUWAYOMI MCP SERVER (FastMCP / Python)                 |
|  • suwayomi_get_library       • suwayomi_search_and_add                 |
|  • suwayomi_download_chapters • suwayomi_get_download_status            |
+-------------------------------------------------------------------------+
                                     ¦  (GraphQL POST JSON / stdio)
                                     ?
+-------------------------------------------------------------------------+
|                  SUWAYOMI-SERVER DAEMON (localhost:4567)                |
|  • GraphQL Resolver           • H2 Database (Library & Metadata)        |
|  • Source Scrapers            • Chapter Downloader Worker               |
+-------------------------------------------------------------------------+

?? 工具套件与真实场景提示词

工具

签名

您可以在聊天中询问的内容

suwayomi_get_library

(in_library_only=True, search=None, limit=50)

"我的收藏库中哪些漫画目前有超过 100 个未读章节?"

suwayomi_search_and_add

(query, auto_add_first=False, limit=20)

"在我的数据库中查找'Latna Saga'并将其添加到我的收藏。"

suwayomi_download_chapters

(manga_id, count=5, unread_only=True, chapter_ids=None)

"下载 Hand Jumper 接下来的 5 个未读章节。"

suwayomi_get_download_status

()

"检查 Suwayomi 章节下载器是否仍在运行。"


?? 前提条件

  1. Suwayomi-Server 已安装并在本地运行,端口为 4567(默认端点:http://127.0.0.1:4567/api/graphql)。

  2. Python 3.10+ 已安装在您的系统上。


?? 安装指南

?? Windows 设置(PowerShell)

# 1. Clone repository
git clone https://github.com/augumenter/suwayomi-mcp.git
cd suwayomi-mcp

# 2. Create and activate virtual environment
python -m venv .venv
.\.venv\Scripts\activate

# 3. Install in editable mode
pip install -e .

# 4. Run automated test suite to verify live connectivity
pytest tests -v

?? macOS 设置(终端 / zsh)

# 1. Clone repository
git clone https://github.com/augumenter/suwayomi-mcp.git
cd suwayomi-mcp

# 2. Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate

# 3. Install in editable mode
pip install -e .

# 4. Run automated test suite
pytest tests -v

?? Linux / Docker 设置(Ubuntu / Debian / Arch)

# 1. Clone repository
git clone https://github.com/augumenter/suwayomi-mcp.git
cd suwayomi-mcp

# 2. Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate

# 3. Install package
pip install -e .

# 4. Run tests
pytest tests -v

?? AI 客户端配置

1. Claude Desktop

将此添加到您的 claude_desktop_config.json

  • Windows%APPDATA%\Claude\claude_desktop_config.json

  • macOS~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "suwayomi": {
      "command": "C:\\path\\to\\suwayomi-mcp\\.venv\\Scripts\\python.exe",
      "args": ["-m", "src.server"],
      "cwd": "C:\\path\\to\\suwayomi-mcp",
      "env": {
        "SUWAYOMI_GRAPHQL_URL": "http://127.0.0.1:4567/api/graphql"
      }
    }
  }
}

(在 macOS/Linux 上,将 command 替换为 /path/to/suwayomi-mcp/.venv/bin/python


2. Claude Code CLI(~/.claude.json

{
  "mcpServers": {
    "suwayomi": {
      "command": "C:\\path\\to\\suwayomi-mcp\\.venv\\Scripts\\python.exe",
      "args": ["-m", "src.server"],
      "cwd": "C:\\path\\to\\suwayomi-mcp",
      "env": {
        "SUWAYOMI_GRAPHQL_URL": "http://127.0.0.1:4567/api/graphql"
      }
    }
  }
}

3. Cursor(.cursor/mcp.json

{
  "mcpServers": {
    "suwayomi": {
      "command": "python",
      "args": ["-m", "src.server"],
      "env": {
        "SUWAYOMI_GRAPHQL_URL": "http://127.0.0.1:4567/api/graphql"
      }
    }
  }
}

?? 真实场景对话示例

示例 1:收藏库审计与推荐

User: "Check my library and recommend something intense to read from my unread backlog."

Agent: "I checked your Suwayomi library. Here are your top unread thriller & action series:
1. Hand Jumper (130 unread chapters) - Thriller / Supernatural
2. Psychopath in Murim (30 unread chapters) - Action / Fantasy
3. Lookism (1,237 unread chapters) - Action / Delinquents

Would you like me to queue the next 5 chapters of Hand Jumper for offline reading?"

示例 2:自动添加作品

User: "Find Latna Saga and make sure it is added to my library favorites."

Agent: "Found 'Latna Saga: Survival of a Sword King' (ID: 38).
I executed the updateManga mutation and set inLibrary: true. It is now tracked in your favorites."

示例 3:批量下载章节

User: "Download the next 10 unread chapters of Omniscient Reader."

Agent: "Fetched unread chapter IDs [412, 413, 414, 415, 416, 417, 418, 419, 420, 421].
Dispatched enqueueChapterDownloads mutation and triggered the downloader daemon.
Download status: STARTED (10 items in queue)."

?? 交互式神经网络可视化器

此项目包含一个实时动画的神经突触图,可可视化 MCP 桥接每一层的数据包传输。

启动可视化器:

python -m http.server 8080 --directory visualizer

在浏览器中打开 http://localhost:8080,与动态节点交互、触发突触脉冲序列,并检查实时负载遥测。


?? 故障排除与常见问题

无法连接到远程服务器(127.0.0.1:4567)

  • 原因:Suwayomi-Server 未运行。

  • 修复:启动您的本地 Suwayomi 守护进程(Windows 上为 Suwayomi Launcher.bat,或通过终端运行 suwayomi-server),并验证 http://localhost:4567 是否能在浏览器中正常加载。

GraphQL 错误:缺少源

  • 原因:该漫画是从当前已禁用或已卸载的扩展导入的。

  • 修复:打开 Suwayomi WebUI -> 浏览 -> 扩展,确保相应的扩展已安装并更新。


?? 许可证

MIT 许可证。版权所有(c)2026 Ileri Nwajei(@augumenter)。

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

View all MCP Connectors

Latest Blog Posts

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/Augumenter/suwayomi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server