seafile-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@seafile-mcpsearch for files containing 'Q4 report' in my libraries"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Seafile-mcp
An MCP server for Seafile, designed for multi-user deployments: one server instance serves many people, and each user supplies their own Seafile API token as the MCP API key.
How authentication works
The Seafile token is the API key. There is no separate account, no registration, and no credential storage — "authenticated" simply means "Seafile accepted this token."
Two kinds of Seafile token work, and the server auto-detects which one you gave it:
Token | How to get it | Scope |
Library API token (recommended) | In Seafile: library → Advanced → API Token, choose read-only or read-write | One library. Cannot delete, move, or copy — Seafile itself offers no such endpoints for these tokens. |
Account token |
| Your whole account, all libraries. Needed for search, move, copy, and delete. |
Prefer a read-only library token unless you specifically need more. It is the single most effective way to limit what an assistant can do on your behalf.
The server is a stateless pass-through: it stores no credentials, keeps no user database, and retains nothing between requests. Isolation between users is structural — each request carries its own token and no per-user state exists to leak.
Related MCP server: File Search Tool
Safety
Deployments choose a mode via SEAFILE_MCP_MODE; tools outside the active tier are never
registered, so a model cannot call what it cannot see.
read_only— no mutating tools at all.safe_write— default. Write, upload, create directory, rename, move, copy. Every one is reversible via Seafile's file history or an inverse operation.full— additionally exposes delete.
Nothing this server exposes can irreversibly destroy data: deletes go to the library trash, and overwrites create a new version in file history. The trash purge endpoint is deliberately not wrapped as a tool.
Reading PDFs
(This feature is still under development, parsing functionality will be extended)
Most files in a typical Seafile library are PDFs, so seafile_read_file extracts their
text layer instead of returning raw bytes as mojibake. There is no OCR — a scanned or
image-only PDF comes back with an explicit notice instead of an error or garbage — and
layout, tables, and images are not preserved.
A bare call returns the whole document, except that a PDF longer than a configurable
page threshold (15 pages by default) is previewed (first 2 pages only) instead, to
keep a single call cheap; pass start_page/end_page (1-indexed, inclusive) to read
a specific range instead. The response's notice field always states the document's
true page count and whether what you got was a preview or the full text, so the two
are never ambiguous.
System admins can tune or disable the threshold with
SEAFILE_MCP_PDF_PREVIEW_THRESHOLD_PAGES:
SEAFILE_MCP_PDF_PREVIEW_THRESHOLD_PAGES=30 # preview only past 30 pages
SEAFILE_MCP_PDF_PREVIEW_THRESHOLD_PAGES=all # never preview; always extract the whole documentAgent skill
skills/seafile-mcp-tools is a
skill documenting the tool-selection pitfalls above plus one this README doesn't
cover: saving PDF/Word/Excel/PowerPoint files, which seafile_write_file will
silently corrupt since it only ever sends UTF-8 text. It bundles a tested
generator script per format so an agent doesn't have to build these binary
formats by hand. The skill assumes the agent has access to a sandbox or other
environment where it can execute code (a shell and Python) — without one, those
document formats can't be produced through this server at all.
Running it
See docs/clients.md for client configuration (LibreChat, Claude Desktop, Claude Code, generic HTTP, and local stdio) and docs/deploy.md for the Docker + Caddy deployment.
# local, single user
export SEAFILE_SERVER_URL=https://seafile.example.org
export SEAFILE_API_TOKEN=your_token
uvx seafile-mcp --transport stdioLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for managing Shelv shelf operations, enabling users to list, search, and read files within shelves. It also supports optional write functionalities for creating and hydrating shelves through configured tools.4151Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables file system search and inspection, including directory listing, regex-based file name and content searches, and reading text, PDF, and DOCX files.1MIT
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that provides read/write access to a Seafile library, enabling file operations and full-text search for a personal knowledge vault.MIT
- AlicenseNot gradedqualityCmaintenanceA secure, git-aware MCP server for working with local repositories, enabling file management, shell commands, and full git operations within allowed directories.1211GPL 3.0
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/virtUOS/seafile-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server