Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGSEQ_API_URLNoFull URL of the Logseq HTTP APIhttp://127.0.0.1:12315/api
LOGSEQ_TIMEOUTNoRequest timeout in seconds15
LOGSEQ_API_TOKENYesYour Logseq API token

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

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/Johnsonxd4/mcp-logseq'

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