Meet Rupert MCP Server
Enables Claude to search and read documentation, ask RAG AI questions (one-shot or in a conversation), and create/edit documents in the Meet Rupert knowledgebase, including handling image attachments.
README
Meet Rupert MCP Server
An MCP server that lets Claude work with the Meet Rupert knowledgebase (https://app.meetrupert.com): search and read documentation, ask the RAG AI questions (one-shot or in a conversation), and create/edit documents.
Node 20+ / TypeScript ESM, the official @modelcontextprotocol/sdk over stdio,
built with tsup.
Tools
| Tool | Description |
|---|---|
search_documents |
Search documents by title; returns ids, titles, status, categories (paginated). |
read_document |
Read a document by id; body returned as Markdown. |
create_document |
Create a document from Markdown. Defaults to draft (not AI-searchable) unless published: true. |
update_document |
Edit a document; omitted fields are preserved. content (Markdown) replaces the whole body. |
list_categories |
List categories with ids and document counts (for tagging / retrieval scoping). |
create_attachment |
Upload an image from a file path or HTTPS URL (never base64) and get a markdownRef to embed. |
list_attachments |
List a document's images with their ids and whether they still resolve in storage. |
download_attachment |
Write an image to a path, or return a short-lived signed URL. Reports size + sha256. |
delete_attachment |
Remove an image's reference from a document. Does not delete the stored file — see Attachments. |
ask_ai |
Ask a one-shot natural-language question; returns an answer + source documents. |
create_chat_thread |
Start a multi-turn conversation thread; returns a threadId. |
ask_in_thread |
Ask a question within a thread (remembers prior context). |
list_chat_threads |
List recent conversation threads to resume. |
How it works
Meet Rupert has no API-key / service-token auth, so this server logs in as a
real user via POST /api/login/local, caches the short-lived JWT access token,
and silently re-authenticates when it nears expiry or on a 401. All requests
are scoped to the user's organisation, which is auto-resolved from the login
response (override with MEETRUPERT_ORG_ID).
The two "ask" tools consume the platform's text/event-stream RAG endpoints and
return the fully-accumulated answer plus its sources. Document content is
stored as Tiptap JSON and transparently converted to/from Markdown so Claude can
read and author documents in plain text.
Images use the platform's existing presigned-upload flow: the server asks for a
presigned PUT, uploads the bytes itself, and stores the returned storage key in
a Tiptap image node — the same representation the web editor produces. Reading
an image back goes through a short-lived media token. See
Attachments.
Tip: Create a dedicated low-privilege service user (role
editor) in Meet Rupert for this server rather than using a personal admin login.
Attachments
Documents can embed images. The workflow is two calls:
create_attachment { path: "C:/Users/you/Pictures/step4-poll-fileset-500.png" }
→ { attachmentId: "9f3c1a2e-….png",
contentLength: 92324,
sha256: "…",
markdownRef: "" }
create_document { title: "New Defect Form",
content: "# Steps\n\n" }
create_document and update_document resolve every attachment://<id> to its
storage key at save time. read_document renders stored images back as
attachment:// refs, so a document can be read, edited and written back without
losing them.
Why there is no base64 parameter
The caller never supplies image bytes — it names a source and the server reads it. This is not a stylistic choice. A model cannot reliably reproduce a large base64 payload into a tool-call argument: in testing an 18,880-byte payload arrived as 7,312 bytes, silently corrupting the file with no error raised. Anything above roughly 10 KB is unsafe, which rules out essentially every real screenshot.
Reading server-side also makes the returned contentLength and sha256 facts
about the file rather than facts about the transport, so a caller can verify them
against the source. Compare with Get-FileHash -Algorithm SHA256 <file>.
What is accepted
image/png, image/jpeg, image/webp and image/gif, up to 10 MB. The type is
determined from the file's magic bytes, not its extension, and a file whose
extension disagrees with its content is rejected rather than uploaded.
SVG is rejected outright — it can carry script and external references, and the
platform's own content-type allowlist excludes it. Non-image files (PDF, .docx,
plain text) are also rejected: the platform has no storage for them.
Limitations
These follow from the platform having no attachment entity — images are presigned S3 uploads referenced by storage key, with no table, no metadata and no delete endpoint. Removing them needs a backend change, not a change here.
- Images only. No PDF,
.docxor text attachments. delete_attachmentunlinks, it does not delete. It removes the reference from a document; the stored object remains and stays readable by anyone holding a signed URL. Don't tell a user their file has been erased.- No garbage collection. Attachments uploaded but never referenced by a saved
document are reported on stderr after
MEETRUPERT_ATTACHMENT_TTL_MS, not reclaimed. (Orphans are not unique to this server — the web editor presigns an upload before the user saves and records nothing, so an abandoned edit leaks an object the same way.) filenameandsha256are advisory. They are returned at creation and not persisted, because there is nowhere to persist them.
Security
pathfails closed. Reads are confined toMEETRUPERT_ATTACHMENT_DIRS, which is empty by default, sopathis refused until an operator opts in. Symlinks are resolved before the containment check and containment is compared on path segments, so neither a symlink nor a..nor a same-prefix sibling directory (/srv/uploads-evilvs/srv/uploads) can escape.source_urlis SSRF-hardened. HTTPS only; private, loopback, link-local, CGNAT and cloud-metadata ranges are blocked after DNS resolution, with the connection pinned to the vetted address so a rebind cannot land elsewhere; redirects are not followed; connect and read timeouts apply; and the size cap is enforced per chunk while streaming, aborting the transfer rather than checking after the download completes.- Tenancy. Storage keys are always built from the resolved org id, never from caller input, so an attachment is only reachable within the workspace that created it. The backend independently enforces the same prefix.
- Logging. Filenames, byte counts and checksums only — never file contents, and attachment bytes are never placed in an error message or stack trace. Fetched URLs have credentials and query strings redacted.
Setup
npm install
cp .env.example .env # then fill in credentials
npm run build
Credentials (.env)
| Variable | Required | Description |
|---|---|---|
MEETRUPERT_EMAIL |
yes | Service user's email. |
MEETRUPERT_PASSWORD |
yes | Service user's password. |
MEETRUPERT_BASE_URL |
no | API base URL incl. /api. Defaults to https://app.meetrupert.com/api. |
MEETRUPERT_ORG_ID |
no | Override the organisation. Defaults to the logged-in user's org. |
MEETRUPERT_ATTACHMENT_DIRS |
no | Directories create_attachment may read from and download_attachment may write to (;-separated on Windows, : elsewhere). Empty by default, which refuses every path read — see Attachments. |
MEETRUPERT_ATTACHMENT_MAX_BYTES |
no | Per-attachment size cap. Defaults to 10485760 (10 MB), the platform's own limit. |
MEETRUPERT_ATTACHMENT_TTL_MS |
no | How long before an unreferenced attachment is reported as an orphan. Defaults to 3600000 (1 h). |
Registering with Claude
Claude Desktop / Claude Code (claude_desktop_config.json or .claude/settings.json)
{
"mcpServers": {
"meetrupert": {
"command": "node",
"args": ["/path/to/meet-rupert-mcp/dist/index.js"],
"env": {
"MEETRUPERT_EMAIL": "service-user@yourdomain.com",
"MEETRUPERT_PASSWORD": "…",
"MEETRUPERT_BASE_URL": "https://app.meetrupert.com/api"
}
}
}
}
The env block can be omitted if a .env file sits next to the server (env is
loaded relative to the built file, not the host's working directory). You can
also add it interactively via /mcp in Claude Code.
Development
npm run typecheck # tsc --noEmit
npm run build # tsup → dist/
npm run dev # rebuild + restart on change
npm start # node dist/index.js
npm test # vitest — Tiptap converters, SSE parser, attachments
The attachment tests cover round-trip sha256 integrity, the size cap on every
input path (including a body that only breaches it partway through streaming),
extension/magic-byte mismatch, path traversal via .. and via symlink, SSRF
against private and metadata addresses, cross-tenant reads, and a document
referencing an unknown attachment:// id failing without saving.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。