Privacy-first knowledge base
## Logseq MCP Server: Knowledge Graph Notes The **Logseq MCP Server** integrates Logseq knowledge management into Google Antigravity, enabling AI-assisted note-taking, knowledge graph exploration, and bi-directional linking for personal knowledge bases. ### Why Logseq MCP? - **Outliner Format**: Hierarchical bullet-point note structure - **Bi-directional Links**: Automatic backlinks between notes - **Knowledge Graph**: Visual graph view of connected notes - **Local-First**: Privacy-focused with local file storage - **Open Source**: Free and open-source software ### Key Features #### 1. Note Creation ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a new Logseq page for project meeting notes with linked references" }] ) ``` #### 2. Search ```python # Search notes response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Search Logseq for all notes mentioning machine learning" }] ) ``` #### 3. Graph Queries ```python # Query graph response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find all pages linked to the project planning page" }] ) ``` #### 4. Block Operations ```python # Manage blocks response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Add TODO items to the daily journal with priorities" }] ) ``` ### Configuration ```json { "mcpServers": { "logseq": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-logseq"], "env": { "LOGSEQ_GRAPH_PATH": "/path/to/logseq/graph", "LOGSEQ_API_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Personal Knowledge**: Build a personal knowledge base. **Research Notes**: Organize research with linked references. **Project Management**: Track projects with connected tasks. **Learning**: Create study notes with spaced repetition. The Logseq MCP Server brings knowledge graph capabilities into your workflow.
{
"mcpServers": {
"logseq": {
"mcpServers": {
"logseq": {
"env": {
"LOGSEQ_GRAPH_PATH": "/path/to/graph"
},
"args": [
"-y",
"logseq-mcp-server"
],
"command": "npx"
}
}
}
}
}