Skip to main content
Glama
ergut

MCP server for LogSeq

by ergut

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGSEQ_API_URLNoThe URL of the LogSeq APIhttp://localhost:12315
LOGSEQ_API_TOKENYesYour API token for LogSeq

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_pageA

Create a new page in Logseq with properly structured blocks.

Markdown content is automatically parsed into Logseq's block hierarchy:

  • Headings (# ## ###) create nested sections

  • Lists (- or 1.) become proper block trees

  • Code blocks are preserved as single blocks

  • YAML frontmatter (---) becomes page properties

Example content:

---
tags: [project, active]
priority: high
---

# Project Title
Introduction paragraph.

## Tasks
- Task 1
  - Subtask A
- Task 2
update_pageA

Update a page in Logseq with new content and/or properties.

Supports two modes:

  • append: Add new blocks after existing content (default)

  • replace: Clear all existing blocks and add new content

Markdown is parsed into proper block hierarchy just like create_page. YAML frontmatter in content will be merged with explicit properties.

list_pagesB

Lists all pages in a LogSeq graph.

get_page_contentB

Get the content of a specific page from LogSeq.

delete_pageB

Delete a page from LogSeq.

delete_blockB

Delete a block from LogSeq by its UUID.

update_blockB

Update the content of an existing LogSeq block by UUID.

get_blockA

Get a single block by its UUID. Returns the block content, properties, and child blocks (recursively). Useful for inspecting a specific block after finding its UUID via search or query.

searchC

Search for content across LogSeq pages, blocks, and files

queryA

Execute a Logseq DSL query to search pages and blocks. Supports property queries, tag queries, task queries, and logical combinations. See https://docs.logseq.com/#/page/queries for query syntax.

find_pages_by_propertyA

Find all pages that have a specific property, optionally filtered by value. Simpler alternative to the full query DSL.

get_pages_from_namespaceA

Get all pages within a namespace hierarchy (flat list). Use this to discover subpages of a parent page.

get_pages_tree_from_namespaceA

Get pages within a namespace as a hierarchical tree structure. Useful for understanding the full page hierarchy.

rename_pageA

Rename an existing page. All references throughout the graph will be automatically updated.

get_page_backlinksB

Get all pages and blocks that link to a specific page (backlinks/linked references).

insert_nested_blockA

Insert a new block as a child or sibling of an existing block, enabling nested hierarchical structures

set_block_propertiesA

Set properties on a block in Logseq DB-mode. Properties must be defined on the block's tag/class. Use property display names (e.g. 'Content status', not the internal ident).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ergut/mcp-logseq'

If you have feedback or need assistance with the MCP directory API, please join our Discord server