home / mcp / mcp logseq server

MCP LogSeq Server

MCP server to interact with LogSeq via its Local HTTP API - enabling AI assistants like Claude to seamlessly read, write, and manage your LogSeq graph.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ergut-mcp-logseq": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp-logseq",
        "mcp-logseq"
      ],
      "env": {
        "LOGSEQ_API_URL": "http://localhost:12315",
        "LOGSEQ_API_TOKEN": "your_token_here"
      }
    }
  }
}

Available tools

list_pages

Browse your LogSeq graph to see all pages.

get_page_content

Read the content of a specified page.

create_page

Add a new page with a given title and content.

update_page

Modify the content or metadata of an existing page.

delete_page

Remove a page from your graph.

search

Search across your LogSeq data for terms or phrases and return matching pages.