JL

joelhooks/logseq-mcp-tools

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

70 stars 17 forks Качество 63 Тренд 0NOASSERTION

joelhooks/logseq-mcp-tools - кандидат на сервер MCP, импортированный из https://github.com/joelhooks/logseq-mcp-tools.

Обзор

joelhooks/logseq-mcp-tools - кандидат на сервер MCP, импортированный из https://github.com/joelhooks/logseq-mcp-tools.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который предоставляет помощникам ИИ структурированный доступ к вашему графу знаний Logseq.

Обзор

Этот проект создает MCP-сервер, который позволяет помощникам ИИ, таким как Клод, взаимодействовать с базой знаний Logseq. Это Предоставляет инструменты для:

  • Получение списка всех страниц Получение контента с конкретных страниц Создание журнальных резюме для гибких диапазонов дат
  • Извлечение связанных страниц и изучение связей

##Установка

###Установка через Smithery

Установка Logseq Tools для Claude Desktop С помощью Smithery:

  1. Клонировать это хранилище

  2. Установите зависимости с помощью npm, yarn или pnpm:

  3. Скопируйте шаблон среды и настройте свой токен Logseq:

Конфигурация

Этот проект включает в себя файл .env.template, который вы можете скопировать и переименовать в .env.

Вы можете найти свой токен Logseq auth по:

  1. Открытие Logseq
  2. Включение HTTP API в Настройки > Функции > Включить HTTP API
  3. Настройка маркера аутентификации в настройках > Функции > HTTP API Authentication Token

Использование

Запуск сервера MCP

Сервер можно запустить с помощью:

###Связь с Клодом

####Клод Десктоп

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Logseq MCP Tools

A Model Context Protocol (MCP) server that provides AI assistants with structured access to your Logseq knowledge graph.

Overview

This project creates an MCP server that allows AI assistants like Claude to interact with your Logseq knowledge base. It provides tools for:

  • Retrieving a list of all pages
  • Getting content from specific pages
  • Generating journal summaries for flexible date ranges
  • Extracting linked pages and exploring connections

Installation

Installing via Smithery

To install Logseq Tools for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @joelhooks/logseq-mcp-tools --client claude
  1. Clone this repository
  2. Install dependencies using npm, yarn, or pnpm:
# Using npm
npm install

# Using yarn
yarn install

# Using pnpm
pnpm install
  1. Copy the environment template and configure your Logseq token:
cp .env.template .env
# Edit .env with your Logseq authentication token

Configuration

This project includes a .env.template file that you can copy and rename to .env.

You can find your Logseq auth token by:

  1. Opening Logseq
  2. Enabling the HTTP API in Settings > Features > Enable HTTP API
  3. Setting your authentication token in Settings > Features > HTTP API Authentication Token

Usage

Running the MCP Server

The server can be started using:

# Using the npm script
npm start

# Or directly with tsx
npx tsx index.ts

Connecting with Claude

Claude Desktop

Follow the Claude MCP Quickstart guide:

  1. Important: Install Node.js globally via Homebrew (or whatever):
brew install node
  1. Install the Claude desktop app
  2. Open the Claude menu and select “Settings…”
  3. Click on “Developer” in the left sidebar, then click “Edit Config”
  4. This will open your claude_desktop_config.json file. Replace its contents with:
{
  "mcpServers": {
    "logseq": {
      "command": "npx",
      "args": [
        "tsx",
        "/path/to/your/index.ts"
      ]
    }
  }
}

IMPORTANT: Replace /path/to/your/index.ts with the exact absolute path to your index.ts file (e.g., /Users/username/Code/logseq-mcp-tools/index.ts)

  1. Save the file and restart Claude Desktop

Now you can chat with Claude and ask it to use your Logseq data:

  • “Show me my recent journal entries”
  • “Summarize my notes from last week”
  • “Find all pages related to [topic]”

Claude in Cursor

Follow the Cursor MCP documentation:

  1. Open Cursor
  2. Add a new MCP service from settings
  3. Enter the following command:
npx tsx "/path/to/index.ts"
  1. Give your service a name like “Logseq Tools”
Открыть полный README на GitHub

Установка

npx tsx /path/to/your/index.ts
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "logseq": { "command": "npx", "args": [ "tsx", "/path/to/your/index.ts" ] } } }