WeRead MCP Server

January 23, 2026 · View on GitHub

MCP server for WeRead with SQLite caching.

  • Sync bookshelf, highlights, thoughts from WeRead API
  • Local SQLite cache with TTL-based refresh
  • 14 tools: bookshelf, book info, highlights, search, export, etc.

Quick Start

  1. Open https://weread.qq.com and login
  2. F12 → Application → Cookies → weread.qq.com
  3. Copy cookie string

Required cookie fields:

FieldDescriptionExample
wr_vidUser ID12345678
wr_skeySession key, expires in ~2hAbcdEfg
wr_rtAuth tokenweb@xxx...

Full cookie format: wr_vid=xxx; wr_skey=xxx; wr_rt=xxx; ...

2. Configure MCP

{
  "mcpServers": {
    "weread": {
      "command": "weread-mcp",
      "env": {
        "WEREAD_COOKIE": "wr_vid=xxx; wr_skey=xxx; wr_rt=xxx; ...",
        "WEREAD_DATA_DIR": "~/.weread",
        "WEREAD_CACHE_TTL": "300"
      }
    }
  }
}

Environment variables:

VariableRequiredDefaultDescription
WEREAD_COOKIEYes-Cookie string from browser
WEREAD_DATA_DIRNo~/.wereadCache directory path
WEREAD_CACHE_TTLNo300Cache TTL in seconds

Tools

ToolDescription
get_bookshelfList all books
get_book_infoBook details
get_book_chaptersTable of contents
get_book_bookmarksHighlights
get_book_reviewsThoughts
get_book_notesExport as Markdown
get_reading_progressProgress %
get_finished_booksCompleted books
get_notebooksBooks with notes
search_booksSearch by title/author
search_notesSearch highlights
sync_shelfForce sync
sync_all_bookmarksSync all highlights
get_cache_statsCache info

All tools support force param to bypass cache.

Disclaimer

⚠️ For educational and personal use only.

  • Comply with Tencent ToS and WeRead User Agreement
  • Do not use for commercial purposes
  • Do not share your cookie
  • Authors not responsible for misuse

License

MIT