Lydie
Search, read and edit the pages and databases in your Lydie workspace, and leave notes beside them. Hosted server with OAuth; needs a Lydie account with a cloud workspace.
호스팅형 MCP 서버
npx add-mcp 'https://api.lydie.co/mcp'Claude Code, Codex, Cursor 등에 설치됩니다
문서
Lydie’s MCP server lets AI assistants search, read and edit your pages. It uses the same operations as the REST API, so an agent can do what you can do in the app.
https://api.lydie.co/mcp
It speaks Streamable HTTP and answers each request with JSON. It keeps no state between requests.
Connect a client
Most clients sign in with OAuth: they open Lydie, you pick a workspace and approve. To use an API token instead, add an Authorization: Bearer lyd_pat_… header to the configs below. Settings → Agents & API → Hosted MCP in the app shows these snippets with your token filled in.
Claude Code
Terminal
claude mcp add --transport http lydie https://api.lydie.co/mcp
Cursor
.cursor/mcp.json
{
"mcpServers": {
"lydie": { "url": "https://api.lydie.co/mcp" }
}
}
VS Code
.vscode/mcp.json
{
"servers": {
"lydie": { "type": "http", "url": "https://api.lydie.co/mcp" }
}
}
Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"lydie": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.lydie.co/mcp"]
}
}
}
Tools
Each tool does one task an agent does on its own, and each one either reads or writes:
- Documents:
search,list_docs,fetch_doc,create_doc,update_doc(title, properties and body in one call),move_doc,delete_docandrestore_doc. - Links and versions:
list_backlinks,list_outgoing_links,list_doc_versions,get_doc_versionandrestore_doc_version. - Databases:
list_databases,get_database,query_database,create_database,write_database_rows,change_database_schemaandchange_database_views. - Notes beside a document:
create_thread,reply_to_threadandresolve_thread. - Files:
list_attachments,get_attachment,get_attachment_url,prepare_attachment_upload,create_attachmentanddelete_attachment. - Sharing and people:
list_members,get_sharing,share_doc,unshare_docandmove_doc_to_space. - Publishing:
list_connectors,list_connections,list_publications,create_publicationandpublish_document. - History:
list_activity,list_session_changesandundo_session. whoami,add_to_inboxandinstall_template(adds a template, such as a reading list).
MCP tools lists them all with their inputs.
Some things are left to the app on purpose: permanently deleting, workspace administration (members, roles, teamspaces, invitations), public links, setting up publishing connections, API tokens and backups. The REST API has all of them.
The connection’s workspace
A token or an OAuth connection belongs to one workspace, so tools default to it: leave out workspaceId. whoami returns who the connection acts as, the workspace (id and name), the teamspaces you can see and the current history session. Another workspaceId is answered with not_found.
Names, not only ids
Tools take what you would write, as Linear’s MCP server does:
- Properties by id, key or name (case-insensitive), also in view filters, sorts, groups and columns.
- Views by id or name.
- Database rows by id or by their unique id, such as
LYD-12, inwrite_database_rows.
A name that matches more than one thing fails with the candidates. Ids are what Lydie stores.
Links to documents
Every document in a result has a url: its page in the Lydie web app, such as https://app.lydie.co/w/acme/d/launch-plan-01a1df141fa03793242a43fc6c7617a5. Link to it when you tell someone about a document. Anyone the document is shared with can open it.
Strict inputs
An input key a tool does not have is an error, with a hint when it belongs elsewhere: query_database with limit says it belongs under window. Results that page say whether more remain (hasMore).
Writing
- Change a body with
update_docandedits, not by sending the whole page. Each edit has atype:replace(the default:oldStrbecomesnewStr),insertBeforeorinsertAfter(putnewStrnext tooldStr),prependorappend(addnewStras a block at the start or end, also of an empty page). Edits apply in order and all or nothing: when anoldStrdoes not match exactly once (usereplaceAllfor every match), nothing is written and the error names the edit. Pass theexpectedVersionfromfetch_doc. write_database_rowscreates, updates and deletes rows with their values and their page content (markdown) in one call, and returns each row’s id, title and unique id.
Undo what an agent did
An agent’s changes are grouped into sessions, one per run of work. Without a sessionId, list_session_changes shows what the agent changed in its current session, and undo_session reverts all of it in one step. See Agent changes and undo.
On your own computer
The desktop app can run a local MCP server for a workspace opened from a folder. No account or network is needed, and every change is written to the Markdown files in that folder. Turn it on under Settings → Agents & API → On this computer. It listens on 127.0.0.1 and needs the token from the token file shown there.
The tools are the same as on the hosted server. The lydie command-line tool in the open-source client runs the same server with lydie mcp --vault ~/Notes, or --stdio for clients that start the server themselves.