mcp-logseq
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOGSEQ_API_URL | No | Full URL of the Logseq HTTP API | http://127.0.0.1:12315/api |
| LOGSEQ_TIMEOUT | No | Request timeout in seconds | 15 |
| LOGSEQ_API_TOKEN | Yes | Your Logseq API token |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| logseq_callC | Call any Logseq API method, for example logseq.Editor.getCurrentPage. |
| get_current_graphB | Return metadata for the current Logseq graph. |
| get_current_graph_configsB | Return current graph config values. Pass keys to read specific config entries. |
| get_current_graph_favoritesB | Return favorites for the current graph. |
| get_current_graph_recentB | Return recent pages for the current graph. |
| get_current_graph_templatesB | Return templates for the current graph. |
| get_user_configsB | Return Logseq user configuration. |
| get_app_infoB | Return Logseq app info, optionally for a specific key. |
| check_current_is_db_graphA | Return whether the current graph is a DB graph. |
| get_current_pageA | Return the page currently open in Logseq. |
| get_current_blockA | Return the current block being edited or selected in Logseq. |
| get_current_page_blocks_treeB | Fetch the current page's block tree. |
| get_all_pagesB | Return all pages in the current graph, or in the provided repo. |
| get_all_tagsA | Return all tags in the current graph. |
| get_all_propertiesA | Return all properties in the current graph. |
| get_pageB | Fetch a Logseq page by name or UUID. |
| get_page_blocks_treeC | Fetch a page's block tree by page name. |
| get_page_linked_referencesC | Fetch linked references for a page. |
| get_page_propertiesC | Fetch properties for a page. |
| get_pages_from_namespaceC | Fetch flattened pages from a namespace. |
| get_pages_tree_from_namespaceC | Fetch namespace pages as a tree. |
| get_blockC | Fetch a block by UUID. |
| get_block_propertiesC | Fetch all properties for a block. |
| get_block_propertyC | Fetch one property for a block. |
| get_previous_sibling_blockC | Fetch a block's previous sibling. |
| get_next_sibling_blockC | Fetch a block's next sibling. |
| searchC | Search the current Logseq graph. |
| queryC | Run a Logseq Datalog query with optional inputs. |
| datascript_queryD | Run a Datascript query with optional inputs. |
| create_pageC | Create a Logseq page. |
| create_journal_pageC | Create a journal page for a date string accepted by Logseq. |
| rename_pageC | Rename a Logseq page. |
| delete_pageB | Delete a Logseq page. |
| append_block_in_pageC | Append a block to a page. |
| prepend_block_in_pageC | Prepend a block to a page. |
| insert_blockC | Insert a block under or near an existing block. |
| insert_batch_blockC | Insert multiple blocks under or near an existing block. |
| move_blockC | Move a block relative to another block. |
| update_blockC | Update a block's content by UUID. |
| remove_blockC | Remove a block by UUID. |
| new_block_uuidA | Create a new UUID string suitable for a Logseq block. |
| set_block_collapsedA | Set a block collapsed flag. Use true, false, or 'toggle'. |
| set_block_iconC | Set a block icon. icon_type is usually 'emoji' or 'tabler-icon'. |
| remove_block_iconC | Remove a block icon. |
| upsert_block_propertyC | Create or update a block property. |
| remove_block_propertyC | Remove a block property. |
| upsert_propertyC | Create or update a graph property schema. |
| remove_propertyC | Remove a graph property. |
| create_tagC | Create a tag. |
| get_tagC | Fetch a tag by name or identity. |
| get_tags_by_nameC | Fetch tags matching a name. |
| get_tag_objectsC | Fetch objects tagged by a tag. |
| add_block_tagC | Add a tag to a block. |
| remove_block_tagB | Remove a tag from a block. |
| add_tag_extendsC | Make a tag extend another tag. |
| remove_tag_extendsC | Remove a tag extension relationship. |
| add_tag_propertyC | Add a property to a tag. |
| remove_tag_propertyC | Remove a property from a tag. |
| list_asset_filesA | List asset files in the current graph, optionally filtered by extension. |
| make_asset_urlB | Create a Logseq asset URL for a graph-relative asset path. |
| open_assetC | Ask Logseq to open an asset path with its built-in opener. |
| git_execC | Run a Logseq Git command. |
| git_load_ignore_fileB | Load the current graph's Git ignore file. |
| git_save_ignore_fileC | Save the current graph's Git ignore file. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 64 tools
Most tools have clearly distinct purposes, but there is some overlap between query/search/datascript_query and get_block_properties/get_block_property, which could cause misselection. Overall, descriptions help differentiate.
The naming convention is largely consistent with verb_noun snake_case (e.g., get_block, create_page). However, a few outliers like check_current_is_db_graph, git_exec, and logseq_call deviate from the pattern, causing minor inconsistency.
The 64 tools are excessive for typical MCP servers (usually 3-15). While Logseq has many features, this number may overwhelm agents, leading to poor selection and increased complexity.
The tool set covers nearly all aspects of Logseq: blocks, pages, tags, properties, graphs, configs, Git, assets, queries. There are no obvious gaps; users can perform full CRUD and lifecycle operations.