Skip to main content
Glama

lncrawl-mcp

Let an AI assistant search web-novel sites, download chapters, read them, and export EPUBs through Lightnovel Crawler (lncrawl). It is an MCP server that calls the REST API of a running lncrawl server.

"Find Solo Leveling on a French source, download the first 10 chapters, read me chapter 1, then build an EPUB."

Status: early (0.1), MIT licensed. Python 3.10+, tested against lncrawl 4.14.0. Not affiliated with lncrawl.

Quick start

  1. Install uv and lncrawl (pipx install lightnovel-crawler).

  2. Start the server, bound to localhost:

    lncrawl server --host 127.0.0.1 --port 8181

    The default bind is 0.0.0.0, and a fresh server accepts admin / admin. Change the password in the web UI at http://127.0.0.1:8181 before exposing the port.

  3. Install this server:

    uv tool install git+https://github.com/alchimestre/lncrawl-mcp
  4. Add it to your MCP client:

    {
      "mcpServers": {
        "lncrawl": {
          "command": "lncrawl-mcp",
          "env": {
            "LNCRAWL_EMAIL": "admin",
            "LNCRAWL_PASSWORD": "your-password"
          }
        }
      }
    }

Related MCP server: booklore-mcp

Configuration

Variable

Default

Meaning

LNCRAWL_URL

http://127.0.0.1:8181

Server base URL

LNCRAWL_EMAIL, LNCRAWL_PASSWORD

none

Login; renewed when the token expires

LNCRAWL_TOKEN

none

API token, used instead of a login

LNCRAWL_DOWNLOAD_DIR

./downloads

Where save_ebook writes

Tools

Tool

Does

list_sources

Supported sites, filtered by domain, language, search support

search_novels

Title search across all sources, or one domain

add_novel

Fetch metadata and chapter list from a novel URL

list_novels, get_novel, list_chapters

Browse the server's library

read_chapter

Chapter text, downloaded first when missing

download_missing_chapters

Download every undownloaded chapter

update_novel

Refresh metadata, download new chapters, rebuild e-books

make_ebook

Build epub, txt, json; pdf, mobi, azw3 and others need Calibre on the server

save_ebook

Copy an e-book file to a local directory

get_job, cancel_job

Poll or stop a job

Tools that start a job wait wait_seconds (default 60). A slower job returns finished: false; poll it with get_job.

Limits

  • lncrawl runs one job queue. An all-source search delays every job behind it: pass domain to search_novels, or cancel_job it.

  • read_chapter returns the server's HTML, not plain text.

  • Not covered: translation, libraries, read history, admin endpoints. Use the lncrawl web UI.

  • Whether you may download a novel depends on the source site's terms.

Development

uv sync --extra dev
uv run pytest

Available Tools

13 tools
add_novelC

Fetch a novel's metadata and chapter list from its page URL. Returns its novel_id.

Inputs: url (required), wait_seconds.

cancel_jobC

Cancel a running job.

Inputs: job_id (required).

download_missing_chaptersB

Download every chapter not yet downloaded. Long novels outlive wait_seconds: poll get_job.

Inputs: novel_id (required), wait_seconds.

get_jobB

Job progress. Set wait_seconds to block until it finishes. Search jobs include results in extra.

Inputs: job_id (required), wait_seconds.

get_novelC

Novel details with synopsis and its exported e-book files (artifacts).

Inputs: novel_id (required).

list_chaptersC

List chapters of a novel. is_available means the content is downloaded.

Inputs: novel_id (required), limit, offset.

list_novelsB

List novels already in the server's library, optionally filtered by title.

Inputs: limit, offset, search.

list_sourcesB

List supported novel sites. Filter by domain substring, language code, or search support.

Inputs: query, language, can_search. Returns: result

make_ebookB

Build e-book files from downloaded chapters. Formats: epub, txt, json; pdf, mobi, azw3, kepub, docx and others need Calibre on the server. Defaults to epub.

Inputs: novel_id (required), formats, language, wait_seconds.

read_chapterB

Read a chapter's text. Downloads it first when missing and auto_fetch is true.

next_id and previous_id are chapter ids for paging.

Inputs: chapter_id (required), language, auto_fetch, wait_seconds.

save_ebookB

Download an e-book file to a local directory (default $LNCRAWL_DOWNLOAD_DIR or ./downloads).

Inputs: artifact_id (required), directory.

search_novelsA

Search novels by title across every searchable source, or one domain.

Waits up to wait_seconds; if finished is false, call get_job with the job id for more results. Pass a result url to add_novel.

Inputs: query (required), domain, wait_seconds.

update_novelC

Refresh metadata, download new chapters, then rebuild the e-books.

Inputs: novel_id (required), wait_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target distinct actions on distinct resources (sources, novels, chapters, e-books, jobs). A few boundaries blur: add_novel vs update_novel both fetch metadata, and download_missing_chapters overlaps with read_chapter's auto_fetch and make_ebook's implicit rebuild in update_novel, though the descriptions clarify the intended split.

    Naming Consistency5/5

    Every tool follows a consistent snake_case verb_noun pattern (list_sources, get_novel, download_missing_chapters, cancel_job). The verb choice (list/get/add/update/read/download/make/save/cancel) is predictable and readable throughout.

    Tool Count5/5

    13 tools is well within the sweet spot and each covers a real step in the pipeline: discovery, ingest, browsing, downloading, exporting, and job control. Nothing feels redundant or padded.

    Completeness4/5

    The lifecycle is nearly complete: find sources, search, add, inspect, read, download, build and save e-books, plus async job management. The notable gap is no delete/remove_novel or artifact cleanup, so the library can grow but never shrink.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Connects AI assistants to the Hardcover book library, enabling natural language book searches, reading status updates, list management, and library exploration.
      28
      107 PyPI
      10
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with BookLore self-hosted libraries, allowing natural language queries to search books, manage reading status, ratings, series, authors, and highlights.
      7
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to interact with a local Calibre Content Server to search libraries, list books, retrieve ebook content, chapters, and more.
      15 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query a local reader's current state (book, chapter, CFI, visible text, selection) and perform actions like opening books, navigating by CFI or progress, searching, and creating or clearing highlights.
      MIT