LiveJournal MCP Server

LiveJournal MCP Server

Enables reading, searching, and posting to LiveJournal journals via the legacy XML-RPC API, with local SQLite caching for offline search.

Category
访问服务器

README

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.

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选