Logseq
Control and interact with a local Logseq graph for knowledge management and note-taking.
🔥 Logseq MCP v4.0 - Complete Integration
A powerful Model Context Protocol (MCP) server that provides complete control over Logseq from Claude Desktop.
🚀 Features
✅ Complete Functionality (20/20 Functions)
- 📊 System Management: System info, configuration, export
- 📄 Page Operations: Create, read, update, delete, list with filters
- 🧱 Block Management: Insert, update, delete, get by UUID, list all
- ✅ TODO Management: Organized by status (TODO, DOING, DONE, etc.)
- 📅 Journal Operations: Create, read by date, today's journal
- 🔍 Search: Global search across all content
- 📊 Properties: Get/set page properties with front matter
- 🎯 Advanced: UUID tracking, full CRUD operations
🎯 Key Capabilities
- ✅ Parameter Processing: All functions with parameters work perfectly
- ✅ UUID Support: Block-level operations with persistent UUIDs
- ✅ File Persistence: Changes saved directly to Logseq files
- ✅ Search & Discovery: Find content across your entire graph
- ✅ Metadata Management: Handle page properties and front matter
- ✅ Journal Integration: Create and manage daily journals
📦 Installation
Prerequisites
- Node.js (v16 or higher)
- Claude Desktop
- Logseq with a local graph
Quick Setup
-
Clone the repository:
git clone https://github.com/griederer/logseq-mcp-tools.git cd logseq-mcp-tools
-
Install dependencies:
npm install
-
Configure Claude Desktop: Add to
~/Library/Application Support/Claude/claude_desktop_config.json
:{ "mcpServers": { "logseq": { "command": "npx", "args": [ "tsx", "/path/to/logseq-mcp-tools/index-complete-v4-fixed.ts" ] } } }
-
Update Logseq path in the script (line 17-23) to point to your Logseq graph directory.
-
Restart Claude Desktop and start using Logseq functions!
🎯 Available Functions
📊 System & Info
get_system_info
- Complete system information
📄 Page Management
list_pages(filter?)
- List all pages with optional filterread_page(pageName)
- Read complete page contentcreate_page(pageName, content?)
- Create new pageupdate_page(pageName, content)
- Update page contentdelete_page(pageName)
- Delete page completely
🧱 Block Management
list_blocks(pageName)
- List all blocks in a pageget_block(blockUuid)
- Get specific block by UUIDinsert_block(pageName, content, todo?, priority?)
- Insert new blockupdate_block(blockUuid, content)
- Update block contentdelete_block(blockUuid)
- Delete specific block
✅ TODO Management
get_todos
- Get all TODOs organized by status
📅 Journal Management
get_today_journal
- Get today's journalget_journal_by_date(date)
- Get journal for specific datecreate_journal_page(date?)
- Create journal page
🔍 Search & Discovery
search(query)
- Global search across all content
📊 Properties & Metadata
get_page_properties(pageName)
- Get page propertiesset_page_property(pageName, propertyName, propertyValue)
- Set property
⚙️ Configuration & Export
get_config
- Get Logseq configurationexport_graph
- Export entire graph as JSON
💡 Usage Examples
Create and Manage Content
// Create a new page
create_page("My Project", "This is my new project page")
// Add a block with TODO
insert_block("My Project", "Complete the documentation", "TODO", "A")
// Search for content
search("documentation")
// Create a journal entry
create_journal_page("2025-01-15")
Manage TODOs
// Get all TODOs organized by status
get_todos()
// Update a TODO status by editing the block
update_block("abc12345", "DONE Complete the documentation")
Properties and Metadata
// Set page properties
set_page_property("My Project", "status", "active")
set_page_property("My Project", "tags", "project, documentation")
// Get properties
get_page_properties("My Project")
🏗️ Architecture
File Structure
index-complete-v4-fixed.ts
- Main MCP server (latest version)MCP_V4_FUNCTIONS.md
- Complete function documentationdocs/
- Additional documentationlogseq/
- Logseq source code (forked)
Key Features
- TypeScript: Full type safety and modern JavaScript features
- MCP SDK: Official Model Context Protocol implementation
- Zod Validation: Robust parameter validation
- UUID Support: Persistent block tracking
- File-based: Direct file system operations for reliability
🐛 Troubleshooting
Common Issues
-
"Logseq directory not found"
- Update
POSSIBLE_LOGSEQ_PATHS
in the script with your Logseq graph path
- Update
-
"Tool not found" errors
- Restart Claude Desktop after configuration changes
- Verify the file path in
claude_desktop_config.json
-
Parameter errors
- Ensure you're using the v4-fixed version
- Check that parameters match the function signatures
Debug Mode
Set NODE_ENV=development
to enable detailed logging.
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Anthropic for the Model Context Protocol
- Logseq for the amazing knowledge management platform
- The open-source community for inspiration and contributions
📊 Project Status
- ✅ v4.0: Complete implementation with 20 functions
- ✅ Parameter Processing: Fully resolved and working
- ✅ UUID Management: Block-level operations functional
- ✅ Production Ready: Tested and stable
🚀 Transform your Logseq experience with complete programmatic control through Claude!
Related Servers
Laravel Boost
Laravel Boost is an MCP server equipped with over 15 specialized tools designed to streamline AI-assisted coding workflows.
Penpot MCP Server
Integrates AI language models with the Penpot design platform to automate design workflows.
DeepLucid3D UCPF Server
An MCP server for advanced cognitive analysis, creative problem-solving, and structured thinking using the UCPF framework.
MCP-Wait
A simple server to pause execution and wait for other tasks to complete.
JIRA Zephyr
Integrates with JIRA's Zephyr test management system.
Jotdown
An MCP server that enables LLMs to create or update Notion pages and generate Markdown Books (mdbooks).
HiveFlow
Connect AI assistants directly to the HiveFlow automation platform.
Miro
Access the Miro REST API v2 for managing boards, creating content, and collaborating.
Ramp
Interact with Ramp's Developer API to run analysis on your spend and gain insights leveraging LLMs
Lunch Roulette MCP Server
Manages and randomly selects from a list of lunch restaurants, storing choices and visit statistics locally.