JUHE API Marketplace
ergut avatar
MCP Server

MCP server for LogSeq

Interacts with [LogSeq](https://logseq.com/) via its API.

146
GitHub Stars
11/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "mcp-logseq",
3 "command": "uv",
4 "args": [
5 "run",
6 "--with",
7 "mcp-logseq",
8 "mcp-logseq"
9 ],
10 "env": {
11 "LOGSEQ_API_TOKEN": "your_token_here",
12 "LOGSEQ_API_URL": "http://localhost: 12315"
13 }
14}
JSON14 lines
  1. Home
  2. MCP Servers
  3. mcp-logseq-server

README Documentation

MCP LogSeq

MCP server for LogSeq

MCP server to interact with LogSeq via its API. Enables Claude to read, create, and manage LogSeq pages through a comprehensive set of tools.

✨ What You Can Do

Transform your LogSeq knowledge base into an AI-powered workspace! This MCP server enables Claude to seamlessly interact with your LogSeq graphs.

šŸŽÆ Real-World Examples

šŸ“Š Intelligent Knowledge Management

"Analyze all my project notes from the past month and create a status summary"
"Find pages mentioning 'machine learning' and create a study roadmap"
"Search for incomplete tasks across all my pages"

šŸ“ Automated Content Creation

"Create a new page called 'Today's Standup' with my meeting notes"
"Add today's progress update to my existing project timeline page"  
"Create a weekly review page from my recent notes"

šŸ” Smart Research & Analysis

"Compare my notes on React vs Vue and highlight key differences"
"Find all references to 'customer feedback' and summarize themes"
"Create a knowledge map connecting related topics across pages"

šŸ¤ Meeting & Documentation Workflow

"Read my meeting notes and create individual task pages for each action item"
"Get my journal entries from this week and create a summary page"
"Search for 'Q4 planning' and organize all related content into a new overview page"

šŸ’” Key Benefits

  • Zero Context Switching: Claude works directly with your LogSeq data
  • Preserve Your Workflow: No need to export or copy content manually
  • Intelligent Organization: AI-powered page creation, linking, and search
  • Enhanced Productivity: Automate repetitive knowledge work

šŸš€ Quick Start

Step 1: Enable LogSeq API

  1. Settings → Features → Check "Enable HTTP APIs server"
  2. Click the API button (šŸ”Œ) in LogSeq → "Start server"
  3. Generate API token: API panel → "Authorization tokens" → Create new

Step 2: Add to Claude (No Installation Required!)

Claude Code

claude mcp add mcp-logseq \
  --env LOGSEQ_API_TOKEN=your_token_here \
  --env LOGSEQ_API_URL=http://localhost:12315 \
  -- uv run --with mcp-logseq mcp-logseq

Claude Desktop

Add to your config file (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "mcp-logseq": {
      "command": "uv",
      "args": ["run", "--with", "mcp-logseq", "mcp-logseq"],
      "env": {
        "LOGSEQ_API_TOKEN": "your_token_here",
        "LOGSEQ_API_URL": "http://localhost:12315"
      }
    }
  }
}

Step 3: Start Using!

"Please help me organize my LogSeq notes. Show me what pages I have."

šŸ› ļø Available Tools

The server provides 6 comprehensive tools:

ToolPurposeExample Use
list_pagesBrowse your graph"Show me all my pages"
get_page_contentRead page content"Get my project notes"
create_pageAdd new pages"Create a meeting notes page"
update_pageModify existing pages"Update my task list"
delete_pageRemove pages"Delete the old draft page"
searchFind content across graph"Search for 'productivity tips'"

āš™ļø Prerequisites

LogSeq Setup

  • LogSeq installed and running
  • HTTP APIs server enabled (Settings → Features)
  • API server started (šŸ”Œ button → "Start server")
  • API token generated (API panel → Authorization tokens)

System Requirements

  • uv Python package manager
  • MCP-compatible client (Claude Code, Claude Desktop, etc.)

šŸ”§ Configuration

Environment Variables

  • LOGSEQ_API_TOKEN (required): Your LogSeq API token
  • LOGSEQ_API_URL (optional): Server URL (default: http://localhost:12315)

Alternative Setup Methods

Using .env file

# .env
LOGSEQ_API_TOKEN=your_token_here
LOGSEQ_API_URL=http://localhost:12315

System environment variables

export LOGSEQ_API_TOKEN=your_token_here
export LOGSEQ_API_URL=http://localhost:12315

šŸ” Verification & Testing

Test LogSeq Connection

uv run --with mcp-logseq python -c "
from mcp_logseq.logseq import LogSeq
api = LogSeq(api_key='your_token')
print(f'Connected! Found {len(api.list_pages())} pages')
"

Verify MCP Registration

claude mcp list  # Should show mcp-logseq

Debug with MCP Inspector

npx @modelcontextprotocol/inspector uv run --with mcp-logseq mcp-logseq

šŸ› Troubleshooting

Common Issues

"LOGSEQ_API_TOKEN environment variable required"

  • āœ… Enable HTTP APIs in Settings → Features
  • āœ… Click šŸ”Œ button → "Start server" in LogSeq
  • āœ… Generate token in API panel → Authorization tokens
  • āœ… Verify token in your configuration

"spawn uv ENOENT" (Claude Desktop)

Claude Desktop can't find uv. Use the full path:

which uv  # Find your uv location

Update config with full path:

{
  "mcpServers": {
    "mcp-logseq": {
      "command": "/Users/username/.local/bin/uv",
      "args": ["run", "--with", "mcp-logseq", "mcp-logseq"],
      "env": { "LOGSEQ_API_TOKEN": "your_token_here" }
    }
  }
}

Common uv locations:

  • Curl install: ~/.local/bin/uv
  • Homebrew: /opt/homebrew/bin/uv
  • Pip install: Check with which uv

Connection Issues

  • āœ… Confirm LogSeq is running
  • āœ… Verify API server is started (not just enabled)
  • āœ… Check port 12315 is accessible
  • āœ… Test with verification command above

šŸ‘©ā€šŸ’» Development

For local development, testing, and contributing, see DEVELOPMENT.md.


Ready to supercharge your LogSeq workflow with AI?

⭐ Star this repo if you find it helpful!

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright Ā© 2025 - All rights reserved