Executes natural language queries using Logseq's DataScript capabilities.
Parameters:
request: Natural language description of what you want to find
includeQuery: (Optional) Include the generated Datalog query in results
advanced: (Optional) Use advanced analysis features
Features:
Page connections and relationships
Content clustering
Task progress analysis
Concept evolution tracking
suggestConnections
Uses AI to analyze your graph and suggest interesting connections.
Parameters:
minConfidence: (Optional) Minimum confidence score for suggestions (0-1, default: 0.6)
maxSuggestions: (Optional) Maximum number of suggestions to return (default: 10)
focusArea: (Optional) Topic or area to focus suggestions around
Features:
Discovers potential connections between pages
Identifies knowledge synthesis opportunities
Suggests exploration paths based on recent interests
Provides confidence scores for suggestions
Development
The server is built using:
Model Context Protocol TypeScript SDK
Zod for parameter validation
Logseq HTTP API for data access
To extend with new tools, add additional server.tool() definitions in index.ts.
Troubleshooting
Common Issues
Node.js Version Managers (fnm, nvm, etc.)
If you're using a Node.js version manager like fnm or nvm, Claude Desktop won't be able to access the Node.js binaries properly, as it runs outside of your shell environment where the PATH is modified.
Solution: Install a system-wide Node.js with Homebrew:
This ensures Node.js is available to all applications, including Claude Desktop.
Basic Troubleshooting Steps
Ensure Logseq is running with the HTTP API enabled
Verify your auth token in .env matches the one set in Logseq
Check that the path to your index.ts file is correct in the Claude configuration
Try running npx tsx index.ts directly in your terminal to verify it works
Executes natural language queries using Logseq's DataScript capabilities.
Parameters:
request: Natural language description of what you want to find
includeQuery: (Optional) Include the generated Datalog query in results
advanced: (Optional) Use advanced analysis features
Features:
Page connections and relationships
Content clustering
Task progress analysis
Concept evolution tracking
suggestConnections
Uses AI to analyze your graph and suggest interesting connections.
Parameters:
minConfidence: (Optional) Minimum confidence score for suggestions (0-1, default: 0.6)
maxSuggestions: (Optional) Maximum number of suggestions to return (default: 10)
focusArea: (Optional) Topic or area to focus suggestions around
Features:
Discovers potential connections between pages
Identifies knowledge synthesis opportunities
Suggests exploration paths based on recent interests
Provides confidence scores for suggestions
Development
The server is built using:
Model Context Protocol TypeScript SDK
Zod for parameter validation
Logseq HTTP API for data access
To extend with new tools, add additional server.tool() definitions in index.ts.
Troubleshooting
Common Issues
Node.js Version Managers (fnm, nvm, etc.)
If you're using a Node.js version manager like fnm or nvm, Claude Desktop won't be able to access the Node.js binaries properly, as it runs outside of your shell environment where the PATH is modified.
Solution: Install a system-wide Node.js with Homebrew:
This ensures Node.js is available to all applications, including Claude Desktop.
Basic Troubleshooting Steps
Ensure Logseq is running with the HTTP API enabled
Verify your auth token in .env matches the one set in Logseq
Check that the path to your index.ts file is correct in the Claude configuration
Try running npx tsx index.ts directly in your terminal to verify it works