
joelhooks/logseq-mcp-tools
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
joelhooks/logseq-mcp-tools は [https://github.com/joelhooks/logseq-mcp-tools. からインポートされた MCP サーバーの候補です
概要
joelhooks/logseq-mcp-tools は [https://github.com/joelhooks/logseq-mcp-tools. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
モデルコンテキストプロトコル(MCP)サーバーで、Logseqナレッジグラフへのアクセスを構造化したAIアシスタントを提供します。
概要
このプロジェクトでは、ClaudeのようなAIアシスタントがLogseqナレッジベースとやりとりできるMCPサーバーを作成します。 それは、 ツールを提供:
- すべてのページの一覧を取得する
- 特定のページからコンテンツを取得する
- 柔軟な日付範囲のジャーナル要約を生成する
- リンクされたページを抽出し、接続を探索する
インストール
##Smitheryでインストールする
Claudeデスクトップ用のLogseqツールを自動的にインストールするには スミサリー経由:
- このリポジトリをクローンする
- npm、ヤーン、またはpnpmを使用して依存関係を取付けて下さい:
3。 環境テンプレートをコピーし、Logseqトークンを設定します。
設定
.envにコピーして名前を変更できる[.env.template]ファイルが含まれています。
Logseq の auth トークンを次の方法で見つけることができます:
- Logseq を開く 2。 設定 > 機能 > で HTTP API を有効にする HTTP APIを有効にする
- 認証トークンの設定 > 機能 > HTTP API 認証トークン
使用法
##MCP Server の実行
サーバは、次のように起動できます。
##Claudeと接続する
####Claudeデスクトップ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
- Clone this repository
- Install dependencies using npm, yarn, or pnpm:
# Using npm
npm install
# Using yarn
yarn install
# Using pnpm
pnpm install
- 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:
- Opening Logseq
- Enabling the HTTP API in Settings > Features > Enable HTTP API
- 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:
- Important: Install Node.js globally via Homebrew (or whatever):
brew install node
- Install the Claude desktop app
- Open the Claude menu and select “Settings…”
- Click on “Developer” in the left sidebar, then click “Edit Config”
- This will open your
claude_desktop_config.jsonfile. 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)
- 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:
- Open Cursor
- Add a new MCP service from settings
- Enter the following command:
npx tsx "/path/to/index.ts"
- Give your service a name like “Logseq Tools”
インストール
npx tsx /path/to/your/index.ts設定
{
"mcpServers": {
"logseq": {
"command": "npx",
"args": [
"tsx",
"/path/to/your/index.ts"
]
}
}
}