Skip to main content
Glama
LiveJournal MCP Server

LiveJournal MCP Server

by pavelber

LiveJournal MCP Server

Local MCP server for LiveJournal journals. It uses the legacy LiveJournal XML-RPC API to read entries, read comments, post to your own journal, and build a local SQLite cache for search.

Features

  • Read recent entries.

  • Read one entry by itemid.

  • Read entries for a specific date.

  • Search recently fetched entries.

  • Read entry comments with LJ.XMLRPC.getcomments.

  • Create posts, with dry_run: true by default.

  • Generate an ljsession for authenticated LiveJournal web endpoints.

  • Cache entries in SQLite and search cached entries locally.

Related MCP server: Letterboxd MCP

Tools

  • check_login

  • list_entries

  • get_entries_for_date

  • search_recent_entries

  • get_entry

  • sync_entries

  • get_entry_comments

  • create_post

  • generate_session

  • cache_recent_entries

  • cache_entries_for_date

  • cache_synced_entries

  • cache_entry

  • search_cached_entries

  • list_cached_entries

  • get_cached_entry

  • cache_stats

  • clear_cache

Requirements

  • Python 3.10+

  • A LiveJournal account

  • An MCP-compatible client

SQLite is built into Python. No separate SQLite installation is required.

Install Locally

PowerShell:

git clone git@github.com:pavelber/livejournal-mcp.git
Set-Location "livejournal-mcp"
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install -e .

macOS/Linux:

git clone git@github.com:pavelber/livejournal-mcp.git
cd livejournal-mcp
python3 -m venv .venv
./.venv/bin/python -m pip install --upgrade pip
./.venv/bin/python -m pip install -e .

Environment Variables

Required:

  • LJ_USERNAME: LiveJournal username.

  • LJ_PASSWORD: LiveJournal password.

Optional:

  • LJ_JOURNAL: target journal. Defaults to LJ_USERNAME.

  • LJ_BASE_URL: defaults to https://www.livejournal.com.

  • LJ_CLIENT_VERSION: defaults to Cursor-MCP/0.1.0.

  • LJ_CACHE_PATH: SQLite cache path. On Windows, a good explicit path is C:\Users\you\AppData\Local\livejournal-mcp\livejournal.sqlite3.

Do not commit credentials. Put them in your MCP client config or environment.

Cursor

Add this to your Cursor MCP config, replacing paths and credentials.

Windows:

{
  "mcpServers": {
    "livejournal": {
      "command": "C:\\path\\to\\livejournal-mcp\\.venv\\Scripts\\python.exe",
      "args": ["-m", "livejournal_mcp.server"],
      "env": {
        "LJ_USERNAME": "your_livejournal_username",
        "LJ_PASSWORD": "your_livejournal_password",
        "LJ_JOURNAL": "your_livejournal_username",
        "LJ_CACHE_PATH": "C:\\Users\\you\\AppData\\Local\\livejournal-mcp\\livejournal.sqlite3"
      }
    }
  }
}

macOS/Linux:

{
  "mcpServers": {
    "livejournal": {
      "command": "/path/to/livejournal-mcp/.venv/bin/python",
      "args": ["-m", "livejournal_mcp.server"],
      "env": {
        "LJ_USERNAME": "your_livejournal_username",
        "LJ_PASSWORD": "your_livejournal_password",
        "LJ_JOURNAL": "your_livejournal_username",
        "LJ_CACHE_PATH": "/Users/you/.local/share/livejournal-mcp/livejournal.sqlite3"
      }
    }
  }
}

Reload MCP servers or restart Cursor.

Claude Desktop

Edit claude_desktop_config.json.

Windows:

{
  "mcpServers": {
    "livejournal": {
      "command": "C:\\path\\to\\livejournal-mcp\\.venv\\Scripts\\python.exe",
      "args": ["-m", "livejournal_mcp.server"],
      "env": {
        "LJ_USERNAME": "your_livejournal_username",
        "LJ_PASSWORD": "your_livejournal_password",
        "LJ_JOURNAL": "your_livejournal_username",
        "LJ_CACHE_PATH": "C:\\Users\\you\\AppData\\Local\\livejournal-mcp\\livejournal.sqlite3"
      }
    }
  }
}

macOS/Linux:

{
  "mcpServers": {
    "livejournal": {
      "command": "/path/to/livejournal-mcp/.venv/bin/python",
      "args": ["-m", "livejournal_mcp.server"],
      "env": {
        "LJ_USERNAME": "your_livejournal_username",
        "LJ_PASSWORD": "your_livejournal_password",
        "LJ_JOURNAL": "your_livejournal_username",
        "LJ_CACHE_PATH": "/Users/you/.local/share/livejournal-mcp/livejournal.sqlite3"
      }
    }
  }
}

Restart Claude Desktop after editing the config.

Claude Code

From the cloned repo, register the server with an MCP config that points at the virtualenv Python. If your Claude Code installation supports project MCP config files, use the same mcpServers JSON shown above.

You can also run the server directly for debugging:

.\.venv\Scripts\python.exe -m livejournal_mcp.server
./.venv/bin/python -m livejournal_mcp.server

Windsurf, Cline, Continue, And Other MCP Clients

Use the same stdio command shape:

{
  "mcpServers": {
    "livejournal": {
      "command": "/absolute/path/to/python",
      "args": ["-m", "livejournal_mcp.server"],
      "env": {
        "LJ_USERNAME": "your_livejournal_username",
        "LJ_PASSWORD": "your_livejournal_password",
        "LJ_JOURNAL": "your_livejournal_username",
        "LJ_CACHE_PATH": "/absolute/path/to/livejournal.sqlite3"
      }
    }
  }
}

On Windows, use the virtualenv executable:

C:\path\to\livejournal-mcp\.venv\Scripts\python.exe

On macOS/Linux, use:

/path/to/livejournal-mcp/.venv/bin/python

Common Workflows

Check credentials:

Use the livejournal MCP server and run check_login.

Read recent entries:

Use list_entries with limit 10.

Read entries for a date:

Use get_entries_for_date with date "2026-06-09".

Build a searchable cache:

Use cache_recent_entries with limit 50.
Then use search_cached_entries for "search words".

Post safely:

Use create_post with dry_run true.

create_post defaults to dry_run: true and security: private. Set dry_run: false only when you are ready to publish.

Notes

  • LiveJournal XML-RPC sometimes returns text fields as XML-RPC binary values. This server converts them to normal strings before returning MCP responses.

  • The cache stores entry text and metadata, not your password.

  • For full historical sync, use LiveJournal's syncitems workflow gradually and cache results with cache_synced_entries.

Available Tools

18 tools
cache_entries_for_dateC

Fetch one date of LiveJournal entries and save them to the local SQLite cache.

Inputs: date (required), journal. Returns: object

cache_entryB

Fetch one LiveJournal entry by itemid and save it to the local SQLite cache.

Inputs: itemid (required), journal. Returns: object

cache_recent_entriesC

Fetch recent LiveJournal entries and save them to the local SQLite cache.

Inputs: limit, journal, beforedate. Returns: object

cache_statsC

Return local SQLite cache statistics.

Inputs: journal. Returns: object

cache_synced_entriesC

Fetch entries changed since a sync timestamp and save them to the local SQLite cache.

Inputs: lastsync (required), journal. Returns: object

check_loginA

Validate LiveJournal credentials and return account basics.

Inputs: no named parameters. Returns: object

clear_cacheB

Clear cached LiveJournal entries. Pass journal to clear one journal, or omit it for the default journal.

Inputs: journal. Returns: object

create_postC

Post a new entry to your LiveJournal journal. Defaults to dry_run and private.

Inputs: body (required), subject, journal, security, +3 more. Returns: object

generate_sessionC

Generate an ljsession cookie for authenticated LiveJournal web endpoints.

Inputs: expiration, ipfixed. Returns: object

get_cached_entryC

Read one entry from the local SQLite cache by itemid.

Inputs: itemid (required), journal. Returns: result

get_entries_for_dateA

Read LiveJournal entries for one date in YYYY-MM-DD format.

Inputs: date (required), journal. Returns: result

get_entryC

Read one LiveJournal entry by itemid.

Inputs: itemid (required), journal. Returns: result

get_entry_commentsC

Read comments for a LiveJournal entry using LJ.XMLRPC.getcomments.

Inputs: itemid (required), journal, page. Returns: object

list_cached_entriesC

List entries already saved in the local SQLite cache.

Inputs: journal, limit, offset. Returns: result

list_entriesC

Read recent entries from your LiveJournal journal.

Inputs: limit, journal, beforedate. Returns: result

search_cached_entriesC

Search entries already saved in the local SQLite cache.

Inputs: query (required), journal, limit, offset. Returns: result

search_recent_entriesD

Search the most recent LiveJournal entries fetched from the API.

Inputs: query (required), limit, journal, beforedate. Returns: result

sync_entriesB

Read entries changed since a LiveJournal sync timestamp.

Inputs: lastsync (required), journal. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 18 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, with caching, reading, authentication, and posting separated. Overlapping functions like cache_entries_for_date, cache_recent_entries, and cache_synced_entries are differentiated by date, recency, or sync timestamp.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, such as cache_entries_for_date, create_post, check_login, and list_entries. No mixing of conventions.

    Tool Count4/5

    18 tools is slightly on the higher side but still reasonable for a LiveJournal server covering authentication, caching, reading, searching, and posting. Each tool has a clear role, though some consolidation might be possible.

    Completeness3/5

    The tool set covers reading (multiple variants), caching, authentication, and creating entries, but lacks update and delete operations for entries. This is a notable gap for full CRUD.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides access to your Amplenote SQLite database cache, enabling search and retrieval of notes and tasks, including full-text search, bidirectional references, task filtering by priority and due dates, and recently modified content tracking.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables subscribing to RSS/Atom feeds, polling them incrementally, and querying cached entries with search, summaries, and source listings. Tracks per-session consumption state so unacknowledged candidates can be surfaced for proactive notification.
      6
      MIT