
Laserfiche Mcp
io.github.adventist-gc由 GitHub 帳號 adventist-gc 發布v2.6.2更新於 Oct 24, 2026
MCP server for self-hosted Laserfiche repositories — search and read documents from Claude.
概覽
面向自架 Laserfiche 文件庫的 MCP 伺服器,讓助理搜尋、讀取、分析文件,並可選擇性地修改文件。
- 可以做什麼
- 以 Laserfiche 原生查詢或名稱樣式搜尋,包含掃描檔的全文與 OCR 段落檢索
- 瀏覽資料夾、依 ID 或路徑查詢項目,讀取中繼資料、範本欄位、標籤與連結定義
- 下載檔案,或從 PDF、Word、PowerPoint、郵件、HTML、RTF 擷取文字並支援頁碼範圍
- 比較項目、找出位元組完全相同的重複檔案,並在提示預估花費後檢視圖片
- 開啟寫入後可建立、匯入、複製、重新命名、移動項目,編輯欄位、標籤與連結,以及刪除項目
- 也可作為命令列工具以 JSON 輸出執行,或作為 HTTP 伺服器供網頁用戶端使用
- 適用情境
- 適用於組織自架 Laserfiche 文件庫、希望助理回答文件相關問題、摘要或比較紀錄、找出重複檔案,或在安全限制下批次修改中繼資料的情境。
- 執行需求
- 需要 Python 3.10+,以及可連線的 Laserfiche Repository API 伺服器與具讀取權限的服務帳號。需設定 LF_REPO_API_URL、LF_REPOSITORY_ID、LF_USERNAME 與 LF_PASSWORD,LF_API_VERSION 選擇 v1 或 v2。選用擴充可支援 Office 格式與圖片縮放。預設以 stdio 在本機執行,也可作為 HTTP 伺服器供網頁用戶端使用。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Laserfiche Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
laserfiche-mcp
[PyPI version] [Python versions] [CI] [License: MIT] [MCP]
Owned by the General Conference of Seventh-day Adventists. Not affiliated with or endorsed by Laserfiche.
Let Claude (Desktop, Code, or any MCP
client) search and read documents in a self-hosted
Laserfiche repository — and, if you opt in,
change them. The same program is also a command-line tool (ls, cat,
search, dedupe, ...) for work that needs no AI at all.
Read-only by default. Writes are off until you set LF_READ_ONLY=false,
and destructive actions always need a second confirmation step.
Current release: v2.6.2 — see the CHANGELOG.
Quick start
Then connect it to Claude. Prefer no terminal? Use the Claude Desktop extension. New to MCP? Read the step-by-step guide (~7 min). Want ready-made prompts and commands? See examples.
What it can do
Once connected, you can ask Claude things like:
- "Which leases mention an unpaid balance, and what do they say?"
- "Summarize the newest document in the Onboarding folder."
- "Are these two scans the same record, or is something different?"
- "Find duplicate invoices under 2023 and tell me how much space they take."
- "Set Status to Approved on these five entries."
Behind that, it can:
Find things
- Search with native Laserfiche queries or by name pattern — or let Claude draft the query from your repository's own templates and field names, with automatic repair if Laserfiche rejects it.
- Search inside documents, including scans. Full-text search returns the matching passages (page number plus surrounding text) straight from Laserfiche's OCR index, so most "what does it say about X?" questions are answered without downloading anything.
- Look at images. Claude can view picture files in the repository (PNG, JPEG,
GIF, WebP) to describe, label and tag them against your own tag and template
standard. Images cost tokens, so you're warned of the estimated cost and asked
first; for scans of text it tries Laserfiche's OCR before looking at the picture.
Optional
laserfiche-mcp[images]adds downscaling.
Read things
- Browse folders, look up entries by ID or path, and read metadata, template field values, and your repository's field / tag / template / link definitions.
- Download files, or extract text — PDF, Word, PowerPoint, email, HTML, RTF and
plain text (Excel and Outlook
.msgneedpip install 'laserfiche-mcp[office]') — with page ranges for long documents.
Analyze
- Compare two entries' metadata and fields, and find byte-identical duplicates (only files whose sizes match are ever downloaded). From the command line you can also inventory a whole folder tree to CSV.
Make changes (opt-in)
- Create folders, import documents, copy, rename and move entries.
- Edit fields, tags and links (merge or replace), and assign or clear templates — with required-field checks before Laserfiche sees the request.
- Delete entries, files, or page ranges. Deletes, renames and moves always show a preview first; folders can be fenced, tools allow-listed, and bulk deletes capped. See Safety.
Run where you need it
- Locally in Claude Desktop or Claude Code, as a one-click Desktop extension, or as an HTTP server for claude.ai and ChatGPT with per-user sign-in.
- Self-hosted Laserfiche (Repository API v1 and v2); Cloud support is in beta.
- As a command-line tool with no AI involved — the same operations from a
shell, with
--jsonoutput for scripts. See docs/cli.md.
Every tool, with details: docs/tools.md.
Install
Claude Desktop extension
No terminal, no config files.
-
Download the extension (needs Claude Desktop).
-
Double-click it, click Install, and fill in the form:
Not sure what to enter? Ask whoever runs Laserfiche at your organization.
-
Ask Claude something, like "Find every invoice from March in the Accounting folder."
More detail: docs/desktop-extension.md.
Python package
Needs Python 3.10+ and a reachable Laserfiche Repository API Server with an account that can read it.
Configure
Run laserfiche-mcp setup, or set these environment variables:
Everything else — write guardrails, size limits, search tuning, web-client links, logging — is in docs/configuration.md.
[!WARNING] Laserfiche Cloud support is beta and has never been verified against a live tenant. If you have Cloud access, please open an issue with what worked or broke. Details in docs/configuration.md.
Connect to Claude
Claude Code
Pass settings with --env LF_REPO_API_URL=... flags, or export them in your shell first.
Claude Desktop — add this to claude_desktop_config.json
(%APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS), then restart:
Try a tool without Claude using the MCP Inspector:
npx @modelcontextprotocol/inspector uvx laserfiche-mcp
Web clients (claude.ai, ChatGPT)
By default the server talks over stdio to a local client. Web connectors can't launch a local program, so run it as an HTTP server instead:
For anything beyond your own machine you need TLS, authentication (per-user OAuth or a shared token) and a network path to your Laserfiche server. Setup and the security checklist: docs/remote-http.md.
Command line
Every command takes --json. More recipes in examples;
the full reference is docs/cli.md.
Safety
- Writes are off by default.
- When on, you can fence them to specific folders (
LF_WRITE_PATHS_ALLOW), limit which write tools exist (LF_WRITE_TOOLS_ALLOWED), and cap folder deletes. delete,renameandmovereturn a preview and a short-lived token; nothing changes until the call is repeated with that token.- Start in a sandbox folder: see the recommended write-mode config.
Where your document content goes: Data handling & privacy. All guardrails: docs/safety.md.
Troubleshooting
Start with one command — it tests your login, probes your server, and tells you what's wrong:
On Windows, put repository paths in double quotes: laserfiche-mcp list "\HR\Leases".
Claude Desktop logs: %APPDATA%\Claude\logs\ (macOS: ~/Library/Logs/Claude/).
When a tool fails it returns a structured error (not a crash) that tells the model whether to retry, ask you, or give up. See docs/error-contract.md.
Documentation
Roadmap
- Cloud verification — needs someone with a Laserfiche Cloud tenant to confirm the auth flow end to end.
- Per-user access (beta) —
LF_AUTH_MODE=oauth_passthroughruns Laserfiche calls as each user instead of a shared account; needs confirming against a live LFDS tenant (details). - Audit logging — a server-side log of every write call.
- v3.0 — remove the old verb-first tool names (
get_entry, ...); onlylaserfiche_{resource}_{verb}remain. - Later — Workflow trigger tools; stateless-MCP review for multi-instance deployments.
Contributing
Issues, suggestions, and PRs are encouraged and appreciated. Run the tests with:
See CONTRIBUTING.md for setup, where help is most wanted, and the opt-in integration tests. This project is not affiliated with or endorsed by Laserfiche.
Ownership and license
This is an open-source project owned by the General Conference of Seventh-day Adventists and available to the public as-is, without warranty. It was created by, and is maintained by, Samuel Hernandez on the General Conference's behalf; the maintainer holds no copyright in it. See the LICENSE file for the full terms.
Bug reports, questions, and suggestions are encouraged and appreciated — please open an issue.
來源:README.md,提交 39c8a06
工具
0版本歷史
1- v2.6.2最新Oct 15, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分