MCP server for LogSeq
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOGSEQ_API_URL | No | The URL of the LogSeq API | http://localhost:12315 |
| LOGSEQ_API_TOKEN | Yes | Your API token for LogSeq |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_pageA | Create a new page in Logseq with properly structured blocks. Markdown content is automatically parsed into Logseq's block hierarchy:
Example content: |
| update_pageA | Update a page in Logseq with new content and/or properties. Supports two modes:
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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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