
LogSeq
Connects LLMs to your LogSeq knowledge base for automated note creation and organization. Allows programmatic interaction with LogSeq pages, blocks, and knowledge graphs.
Integrates with LogSeq API to enable automated note-taking, knowledge graph analysis, and workflow automation for developers and knowledge workers.
What it does
- 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
Best for
About LogSeq
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
LogSeq is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
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.
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 namecontent(string, required): Block contentis_page_block(boolean): Create as page-level blockbefore(boolean): Insert before parent blockcustom_uuid(string): Custom UUIDv4 for block
-
logseq_edit_block - Enter block editing mode Parameters:
src_block(string, required): Block UUIDpos(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 nameproperties(object): Page propertiesjournal(boolean): Create as journal pageformat(string): Page format (markdown/org)
-
logseq_get_page - Get page details Parameters:
src_page(string, required): Page identifierinclude_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 contentis_page_block: Set true for page-level blocks
logseq_create_page
Create a new Logseq page Arguments:
page_name: Name of the pageproperties: Page properties as JSONjournal: 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
- Generate API token in Logseq: API → Authorization tokens
- 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
Alternatives
Related Skills
Browse all skillsPERSONAL APP ARCHITECT - Strategic development orchestrator for personal productivity applications. Analyzes project context, makes architectural decisions for single-developer projects, delegates to specialized skills, and ensures alignment between user experience goals and technical implementation. Optimized for personal apps targeting 10-100 users.
Analyze conversation patterns, track productivity, and surface self-knowledge insights. Use when user wants to understand their own patterns (when they chat, what topics they discuss, productivity trends, sentiment over time). Provides weekly/monthly reports, topic recommendations, and time-based insights. Privacy-first design with all analysis local.
Install and configure essential Windsurf extensions for productivity. Activate when users mention "install extensions", "setup windsurf plugins", "configure extensions", "extension recommendations", or "productivity extensions". Handles extension installation and configuration. Use when working with windsurf extension pack functionality. Trigger with phrases like "windsurf extension pack", "windsurf pack", "windsurf".
Expert methodology for defining, tracking, and interpreting engineering performance metrics including DORA, team health, productivity, and executive reporting.
Expert email management assistant for Apple Mail. Use this when the user mentions inbox management, email organization, email triage, inbox zero, organizing emails, managing mail folders, email productivity, checking emails, or email workflow optimization. Provides intelligent workflows and best practices for efficient email handling.
Analyze team AI usage patterns and productivity metrics. Activate when users mention "usage analytics", "ai metrics", "productivity tracking", "usage reports", or "roi analysis". Handles analytics and reporting configuration. Use when working with windsurf usage analytics functionality. Trigger with phrases like "windsurf usage analytics", "windsurf analytics", "windsurf".