logseq-mcp

logseq-mcp

18

Logseq MCP Server is a Model Context Protocol server that integrates directly with Logseq, enabling programmatic management of notes and knowledge graphs. Its functionalities include creating and managing pages and blocks within Logseq, facilitating enhanced interaction with personal or shared knowledge bases.

Logseq MCP Server

A Model Context Protocol server designed for integration with Logseq's knowledge base. This server allows interaction with Logseq graphs, including creating pages, managing blocks, and organizing information systematically. Features include block operations like inserting and editing blocks, page operations for creating and retrieving page details, and content retrieval functionalities.

Installation

  • Using pip: Install via pip install mcp-server-logseq
  • From source: Clone the repository and run the server using python -m mcp_server_logseq

Configuration

  • Generate an API token in Logseq
  • Set the environment variable LOGSEQ_API_TOKEN

Available Tools

  • Block operations such as logseq_insert_block and logseq_edit_block
  • Page operations like logseq_create_page and logseq_get_page