Legado Server
FreeNot checkedEnables interaction with Legado Web API via MCP, allowing AI-assisted debugging and management of book sources, RSS sources, replace rules, books, and other Leg
About
Enables interaction with Legado Web API via MCP, allowing AI-assisted debugging and management of book sources, RSS sources, replace rules, books, and other Legado features.
README
legado-mcp-server 是一个把Legado Web API封装成MCP服务的项目,主要是为了方便通过AI编写书源时调试
适用场景
- 把 Legado 接入 Codex、Claude Desktop、Cherry Studio 等 MCP 客户端
文档
环境要求
- Python 3.11+
- 已开启 Legado Web 服务的设备
- 推荐使用
uv
快速开始
安装
- 下载源码到本地
- 在项目根目录下执行:
或者直接从 GitHub 安装:uv tool install .uv tool install git+https://github.com/joestar817/legado-mcp-server.git
配置
命令行参数:
--transport:stdio或streamable-http(默认为stdio)--host:streamable-http的监听地址 (默认127.0.0.1)--port:streamable-http的监听端口 (默认8000)--legado-base-url: Legado HTTP 地址 (如http://192.168.1.10:1122)--legado-ws-url: Legado WebSocket 地址,可选 (如果不指定,默认按 HTTP 端口 + 1 推导)
环境变量:
LEGADO_BASE_URLLEGADO_WS_URLLEGADO_HTTP_TIMEOUT: HTTP 请求超时时间 (默认 60s)LEGADO_SESSION_BUFFER_SIZE: WebSocket 消息缓冲区大小 (默认 1000)
MCP 客户端接入示例
Codex
[mcp_servers.legado]
command = "legado-mcp-server"
args = ["--legado-base-url", "http://192.168.1.10:1122"]
enabled = true
LM studio
{
"mcpServers": {
"legado-mcp-server": {
"command": "legado-mcp-server",
"args": [
"--legado-base-url",
"http://192.168.1.10:1122"
]
}
}
}
工具概览
完整参数和返回结构见 MCP 工具说明。
按类别概览:
- 书源:
book_source_getbook_source_listbook_source_savebook_source_save_manybook_source_delete_many
- RSS:
rss_source_getrss_source_listrss_source_saverss_source_save_manyrss_source_delete_many
- 替换规则:
replace_rule_listreplace_rule_savereplace_rule_deletereplace_rule_test
- 图书:
book_savebook_deletebookshelf_listbook_refresh_tocbook_get_chaptersbook_get_contentbook_save_progressbook_add_local
- 图片与配置:
book_get_coverbook_get_imageweb_read_config_getweb_read_config_save
- 调试与搜索:
book_source_debugrss_source_debugbook_search
许可证
Installing Legado Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/joestar817/legado-mcp-serverFAQ
Is Legado Server MCP free?
Yes, Legado Server MCP is free — one-click install via Unyly at no cost.
Does Legado Server need an API key?
No, Legado Server runs without API keys or environment variables.
Is Legado Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Legado Server in Claude Desktop, Claude Code or Cursor?
Open Legado Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Legado Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
