npm @deckflow/deckprobe-mcpstdioMITupdated 17d ago
Let an agent ask what's inside a PDF, Office, or iWork file โ without opening it.
What can you do with deckprobe?
DeckProbe MCP Server
Let an agent ask what's inside a PDF, Office, or iWork file โ without opening it.
Install ยท Tools ยท Configuration ยท Security ยท How it works ยท DeckProbe
An MCP server that exposes
DeckProbe โ ffprobe for documents โ as
four typed tools. Ask for page counts, slide counts, metadata, encryption and
macro signals, structure, or integrity, and get back bounded, deterministic JSON
with confidence, evidence, and measured I/O cost.
Nothing is rendered, no macro runs, no external reference is followed, and no network connection is opened. It is safe to point at untrusted files.
// probe { "path": "deck.pptx", "targets": ["slide_count"], "view": "values" }
{
"schema_version": 2,
"status": "ok",
"driver": { "id": "powerpoint", "profile": "pptx" },
"values": { "powerpoint.slide_count": 31 },
"view": "values"
}
Install
Nothing to install ahead of time โ npx fetches the server and the engine
together.
Claude Code
claude mcp add deckprobe -- npx -y @deckflow/deckprobe-mcp
Claude Desktop, Cursor, VS Code, Zed, and anything else reading mcpServers
{
"mcpServers": {
"deckprobe": {
"command": "npx",
"args": ["-y", "@deckflow/deckprobe-mcp"]
}
}
}
For a pinned install, npm install -g @deckflow/deckprobe-mcp and use
deckprobe-mcp as the command.
Requires Node.js 20 or newer. The engine binary arrives as a per-platform
optional dependency for macOS, Linux (glibc and musl), and Windows on x86-64 and
ARM64; anywhere else the server falls back to the same engine compiled to
WebAssembly, so npx works wherever Node does.
Tools
| Tool | Use it for |
|---|---|
probe |
Everything about one document |
probe_batch |
Inventory or triage many documents in one call |
list_formats |
Which formats are supported, and where support stops |
list_targets |
The exact target names a format offers |
There is also one resource, deckprobe://schema, carrying the report JSON
Schema bundled with the running engine.
probe
{
"path": "reports/q3.pptx",
"targets": ["@summary", "@security"], // presets, short names, or canonical names
"level": "metadata", // header | metadata | deep
"min_confidence": "high", // low | medium | high | exact
"target_confidence": { "slide_count": "exact" },
"view": "report", // report | values
"budget": { "max_physical_bytes": 8388608, "timeout_ms": 1000 }
}
targets accepts short names (slide_count), canonical names
(powerpoint.slide_count), and presets:
| Preset | Expands to |
|---|---|
@header |
Container identity only โ format, size, extension match, encryption flag |
@summary |
Identity, common metadata, and primary structure |
@security |
Encryption, macros, signatures, external references, active content |
@structure |
Format-owned counts, names, and dimensions |
@assets |
Images, media, previews, fonts, embedded objects |
@quality |
Integrity, repair, extension match, conformance |
@format |
Every format-specific target at the active level |
@all |
Everything available at the active level |
@summary deliberately omits statistics that need a full-file read. A PDF's
page_count is the notable case โ ask for it explicitly.
probe_batch
{ "paths": ["a.pdf", "b.pptx", "c.xlsx"], "targets": ["@security"] }
One engine process handles the whole batch. Results come back in input order,
each with its own report or its own error, so one bad file never spoils the run.
Defaults to the compact values view. Literal paths only โ expand globs
yourself.
list_formats and list_targets
list_targets takes a format (pdf, docx, xlsx, pptx, doc, xls,
ppt, key, numbers, pages) and returns each target's aliases,
description, value type, minimum level, cost class, and selector membership.
Pass detail: "full" for the engine's complete report, including per-target
JSON Schema fragments and expanded selector lists.
Both are cached for the lifetime of the server process.
Reading a report
The tool result is the engine's own schema-v2 envelope, unmodified. Two things are worth knowing before consuming it:
status: "partial"is not a failure. It means at least one requested target could not be resolved at the requested confidence. It is named inexecution.unresolved_targets, and every other result still stands.confidence_scoreis a fixed constant per label (0.4,0.7,0.95,1.0), not a calibrated probability.0.95does not mean the value is right 95% of the time.
Only results with status resolved or estimated carry a value. unknown is
common and usually means the document simply does not record that fact.
A failing call returns isError with the engine's error envelope plus one line
saying what to do about it. Failures the server itself raises before the engine
runs โ a missing path, a directory, a path outside the allow-list, an exceeded
deadline โ use the same envelope shape with an MCP_-prefixed code and
origin: "mcp-server".
Configuration
Every setting is an environment variable, set in your client's MCP config. All are optional.
| Variable | Default | Meaning |
|---|---|---|
DECKPROBE_MCP_BIN |
โ | Engine binary to use instead of the bundled one |
DECKPROBE_MCP_ROOTS |
unrestricted | Allowed directories, separated like PATH |
DECKPROBE_MCP_TIMEOUT_MS |
30000 |
Hard per-call deadline on an engine process |
DECKPROBE_MCP_MAX_CONCURRENCY |
4 |
Concurrent engine processes |
DECKPROBE_MCP_MAX_BATCH |
64 |
Paths accepted by one probe_batch call |
{
"deckprobe": {
"command": "npx",
"args": ["-y", "@deckflow/deckprobe-mcp"],
"env": { "DECKPROBE_MCP_ROOTS": "/Users/me/Documents:/Users/me/Downloads" }
}
}
Security
DeckProbe is built for untrusted input: bounded parsing, no renderer, no macro interpreter, no external-reference resolution, and no network access. This server adds two things on top.
- Process isolation and a hard deadline. Each probe runs in its own
short-lived process, killed if it outruns
DECKPROBE_MCP_TIMEOUT_MS. - An optional read allow-list.
DECKPROBE_MCP_ROOTSpins the reachable tree; paths are symlink-resolved before the check, so a link cannot step around it. The default is unrestricted, matching the CLI the user could run themselves โ set it for shared or automated deployments.
Reports describe a document (metadata, counts, signals) rather than reproducing its contents. Note that report values such as a document title are still attacker-controlled strings: the server passes them through as JSON data and never interpolates them into instructions, and a consumer should treat them the same way.
Report a vulnerability privately as described in SECURITY.md.
How it works
MCP client
โ JSON-RPC over stdio
โผ
deckprobe-mcp โโ validates arguments, resolves the path, maps the result
โ argv + stdout (one process per probe, or one --jsonl process per batch)
โผ
DeckProbe engine โโ plans the cheapest paths that answer the request
The server spawns the native DeckProbe CLI rather than calling the WebAssembly build. The CLI reads only the byte ranges a probe plan needs, where the WebAssembly path holds the whole file in memory, and a separate OS process both isolates untrusted parsing and can be killed outright. The engine is chosen in this order:
DECKPROBE_MCP_BIN- the binary that ships with this package's
@deckflow/deckprobedependency deckprobeonPATH- the bundled WebAssembly engine
The resolved engine is logged to stderr at startup. stdout belongs to the MCP transport and carries nothing else.
MCP server or agent skill?
DeckProbe also ships an Agent Skill that teaches a shell-capable agent to use the CLI directly. Both teach the same vocabulary. Use the skill when the agent has a shell and you want the CLI's full surface; use this server when it does not, or when you want typed arguments validated before the engine ever runs.
Development
npm install
npm test # typecheck, lint, build, and the full suite
npm run test:watch
Contributions are welcome โ see CONTRIBUTING.md. The design rationale, including the alternatives that were rejected, is in docs/rfc.md.
License
MIT. See LICENSE.
Install
Add deckprobe to your client. Pick the one you use.
claude mcp add deckprobe-mcp -- npx -y @deckflow/deckprobe-mcpcodex mcp add deckprobe-mcp -- npx -y @deckflow/deckprobe-mcpamp mcp add deckprobe-mcp -- npx -y @deckflow/deckprobe-mcp{
"mcpServers": {
"deckprobe-mcp": {
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"deckprobe-mcp": {
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"deckprobe-mcp","command":"npx","args":["-y","@deckflow/deckprobe-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"deckprobe-mcp": {
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"deckprobe-mcp": {
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"deckprobe-mcp": {
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"deckprobe-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"deckprobe-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@deckflow/deckprobe-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @deckflow/deckprobe-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
3 tools
deckprobe exposes 3 tools to a connected agent.
- probe_batch
- Inventory or triage many documents in one call
- list_formats
- Which formats are supported, and where support stops
- list_targets
- The exact target names a format offers
Score
76 / 100
Good
- Documentation25/25
- Maintenance19/25
- Trust16/20
- Capability4/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 10 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 3 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.1Latest | Aug 22, 2026 |