
dailydaniel/logseq-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
dailydaniel/logseq-mcp - кандидат на сервер MCP, импортированный из https://github.com/dailydaniel/logseq-mcp.
Обзор
dailydaniel/logseq-mcp - кандидат на сервер MCP, импортированный из https://github.com/dailydaniel/logseq-mcp.
Обзор (машинный перевод)
** Поверните график Logseq в память и рабочее пространство для агентов ИИ.**
Сервер контекстного протокола для
Logseq с проверкой безопасности пишет, аудиторский след в вашем
Ежедневный журнал и проверенные запросы, выставленные в качестве инструментов. Построено на FastMCP
API высокого уровня официального пакета mcp.
Нацеливается на версию file/Markdown (OG) Logseq — и файлы с простым текстом являются частью того, почему график создает хорошую агентную память: гит-синхронизируемую, греппируемую, Прочный, без блокировки. Новая версия DB (SQLite) изменила основную Схема; некоторые методы могут вести себя по-разному.
Почему
Агентам нужна долговечная память, а вы уже поддерживаете ее — свой график. The Недостающая часть — это доступ, которому вы можете доверять: агент должен читать широко и писать. Полезно, но никогда не прикасайтесь к тому, чего не должно, и никогда не делайте ничего, чего не можете. Смотри. Три варианта дизайна делают это возможным:
Письма, связанные с именем. Агенты пишут только под собственным приставкой
byAgent/ по умолчанию, плюс один намеренно узкий канал кросс-имя
Это не может изменить ничего, кроме маркера задачи [2]. Черный список
Страницы скрыты и отредактированы от каждого прочитанного.
** Аудит в вашем ежедневном журнале.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Logseq MCP Server
Turn your Logseq graph into memory and workspace for AI agents. A
Model Context Protocol server for
Logseq with safety-scoped writes, an audit trail in your
daily journal, and verified queries exposed as tools. Built on FastMCP (the
high-level API of the official mcp package).
Targets the file/Markdown (“OG”) version of Logseq — and plain-text files are part of why a graph makes good agent memory: git-syncable, greppable, durable, no lock-in. The newer DB (SQLite) version changed the underlying schema; some methods may behave differently there.
Why
Agents need durable memory, and you already maintain one — your graph. The missing piece is access you can trust: an agent should read broadly and write usefully, but never touch what it shouldn’t — and never do anything you can’t see. Three design choices make that possible:
- Namespace-scoped writes. Agents write only under their own prefix
(
byAgent/by default), plus one deliberately narrow cross-namespace channel that can change nothing but a task’sTODO/DOING/DONEmarker. Blacklisted pages are hidden and redacted from every read. - An audit trail in your daily journal. Every successful write appends a
line like
22:30 [[byAgent]] wrote [[byAgent/readingList/...]]to today’s journal — reviewing your agents’ work becomes part of a morning routine you already have. - Verified queries as tools. Ship known-good Datalog from config as named
tools (
query_week_plan, …), so agents don’t compose datascript by hand and cheaper models stay reliable.
How I use it
I run a small fleet of Claude Code agents with this server on an always-on Mac mini, against my live personal graph:
- Nightly research. A link dropped into the reading list from the phone; at
night an agent claims it (
status:: researching), reads the article — or shallow-clones and reads the repo — writes a structured summary onto the page and flips it toread. - Morning brief. At 08:30 a small model assembles a one-page dashboard — what was read overnight, week-plan progress, current NOW/DOING tasks — and sends a single push notification.
- One journal for everyone. The human’s tasks and the agents’ audit lines interleave in the same daily note:
Установка
uvx mcp-server-logseqКонфигурация
{
"mcpServers": {
"logseq": {
"command": "uvx",
"args": ["mcp-server-logseq"],
"env": {
"LOGSEQ_API_TOKEN": "<YOUR_TOKEN>",
"LOGSEQ_API_URL": "http://127.0.0.1:12315"
}
}
}
}