productivity

LogSeq

by dailydaniel

Integrate LogSeq for automated note-taking, knowledge graph analysis, and workflow automation. Boost productivity for de

Integrates with LogSeq API to enable automated note-taking, knowledge graph analysis, and workflow automation for developers and knowledge workers.

github stars

32

Direct LogSeq API integrationRequires local LogSeq instance

best for

  • / Knowledge workers automating note organization
  • / Developers building LogSeq integrations
  • / Researchers managing large knowledge bases
  • / Teams standardizing documentation workflows

capabilities

  • / Create and edit LogSeq pages programmatically
  • / Insert and modify blocks within pages
  • / Retrieve page details and content
  • / Manage LogSeq knowledge graph structure
  • / Automate note-taking workflows
  • / Organize information with custom properties

what it does

Connects LLMs to your LogSeq knowledge base for automated note creation and organization. Allows programmatic interaction with LogSeq pages, blocks, and knowledge graphs.

about

LogSeq is a community-built MCP server published by dailydaniel that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate LogSeq for automated note-taking, knowledge graph analysis, and workflow automation. Boost productivity for de It is categorized under productivity.

how to install

You can install LogSeq in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

LogSeq is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Logseq MCP Server

A Model Context Protocol server that provides direct integration with Logseq's knowledge base. This server enables LLMs to interact with Logseq graphs, create pages, manage blocks, and organize information programmatically.

<a href="https://glama.ai/mcp/servers/@dailydaniel/logseq-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@dailydaniel/logseq-mcp/badge" alt="Logseq Server MCP server" /> </a>

Usage with Claude Desktop

{
  "mcpServers": {
    "logseq": {
      "command": "uvx",
      "args": ["mcp-server-logseq"],
      "env": {
        "LOGSEQ_API_TOKEN": "<YOUR_KEY>",
        "LOGSEQ_API_URL": "http://127.0.0.1:12315"
      }
    }
  }
}

If you have errors, use 0.0.1 version:

{
  "mcpServers": {
    "logseq": {
      "command": "uvx",
      "args": ["mcp-server-logseq==0.0.1"],
      "env": {
        "LOGSEQ_API_TOKEN": "<YOUR_KEY>",
        "LOGSEQ_API_URL": "http://127.0.0.1:12315"
      }
    }
  }
}

Available Tools

Block Operations

  • logseq_insert_block - Create new blocks in Logseq Parameters:

    • parent_block (string): Parent block UUID or page name
    • content (string, required): Block content
    • is_page_block (boolean): Create as page-level block
    • before (boolean): Insert before parent block
    • custom_uuid (string): Custom UUIDv4 for block
  • logseq_edit_block - Enter block editing mode Parameters:

    • src_block (string, required): Block UUID
    • pos (number): Cursor position
  • logseq_exit_editing_mode - Exit editing mode Parameters:

    • select_block (boolean): Keep block selected

Page Operations

  • logseq_create_page - Create new pages Parameters:

    • page_name (string, required): Page name
    • properties (object): Page properties
    • journal (boolean): Create as journal page
    • format (string): Page format (markdown/org)
  • logseq_get_page - Get page details Parameters:

    • src_page (string, required): Page identifier
    • include_children (boolean): Include child blocks
  • logseq_get_all_pages - List all pages Parameters:

    • repo (string): Repository name

Content Retrieval

  • logseq_get_current_page - Get active page/block Parameters: None

  • logseq_get_current_blocks_tree - Current page's block hierarchy Parameters: None

  • logseq_get_editing_block_content - Get content of active block Parameters: None

  • logseq_get_page_blocks_tree - Get page's block structure Parameters:

    • src_page (string, required): Page identifier

Prompts

logseq_insert_block

Create a new block in Logseq Arguments:

  • parent_block: Parent block reference (page name or UUID)
  • content: Block content
  • is_page_block: Set true for page-level blocks

logseq_create_page

Create a new Logseq page Arguments:

  • page_name: Name of the page
  • properties: Page properties as JSON
  • journal: Set true for journal pages

Installation

Using pip

pip install mcp-server-logseq

From source

git clone https://github.com/dailydaniel/logseq-mcp.git
cd logseq-mcp
cp .env.example .env
uv sync

Run the server:

python -m mcp_server_logseq

Configuration

API Key

  1. Generate API token in Logseq: API → Authorization tokens
  2. Set environment variable:
export LOGSEQ_API_TOKEN=your_token_here

Or pass via command line:

python -m mcp_server_logseq --api-key=your_token_here

Graph Configuration

Default URL: http://localhost:12315 To customize:

python -m mcp_server_logseq --url=http://your-logseq-instance:port

Examples

Create meeting notes page

Create new page "Team Meeting 2024-03-15" with properties:
- Tags: #meeting #engineering
- Participants: Alice, Bob, Charlie
- Status: pending

Add task block to existing page

Add task to [[Project Roadmap]]:
- [ ] Finalize API documentation
- Due: 2024-03-20
- Priority: high

Create journal entry with first block

Create journal entry for today with initial content:
- Morning standup completed
- Started work on new authentication system

Debugging

npx @modelcontextprotocol/inspector uv --directory . run mcp-server-logseq

Contributing

We welcome contributions to enhance Logseq integration:

  • Add new API endpoints (page linking, query support)
  • Improve block manipulation capabilities
  • Add template support
  • Enhance error handling

FAQ

What is the LogSeq MCP server?
LogSeq is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for LogSeq?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    LogSeq is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated LogSeq against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: LogSeq is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    LogSeq reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend LogSeq for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: LogSeq surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    LogSeq has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, LogSeq benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired LogSeq into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    LogSeq is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.