document-evidence-mcp
Provides OCR capabilities for scanned documents and images using PaddleOCR and PP-StructureV3.
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., "@document-evidence-mcpsearch for 'safety valve' evidence"
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.
document-evidence-mcp
一个面向 Codex/其他 MCP 客户端的本地文档证据层:文档首次导入时完整解析并持久化,后续问答只检索 SQLite 索引,返回少量带来源坐标的证据。
它刻意保持“薄”:
不重写 PDF、OOXML、OCR 或表格识别引擎;
原生 PDF、DOCX、XLSX、PPTX 优先读取结构,不做无意义 OCR;Windows 上的旧版 DOC 先经 Microsoft Word 安全转换为临时 DOCX;
扫描 PDF 与图片可选接入 PaddleOCR PP-StructureV3;
源文件按 SHA-256 内容寻址,换路径不重复解析;
SQLite FTS 默认使用 trigram tokenizer,兼顾中文、英文和德文检索;
MCP 响应有总字符预算,不回传整份 OCR、整页图片或二进制;
需要复核时只渲染 PDF 的一个 bbox,返回本地 artifact 路径。
当前状态:0.1.0 Alpha。首版已覆盖本地持久化、文本/Office/PDF 原生解析、可选 OCR 路由和 PDF 局部裁剪;语义向量检索、OCRmyPDF 归档与逐单元格表格 API 属于后续能力。
工具
MCP 工具 | 用途 |
| 首次全量导入;相同内容与配置直接命中缓存 |
| FTS 检索,返回少量证据 ID、页码、bbox、置信度 |
| 按稳定 ID 精确读取证据块 |
| 列出文档版本,不返回正文 |
| 查看文档清单与曾见过的源路径 |
| 仅将指定 PDF 区域渲染为本地 PNG |
| 检查 SQLite/FTS、解析器与 OCR 可用性 |
支持格式:
PDF:PyMuPDF 原生文本、表格、页码与 PDF point bbox;
DOC:仅 Windows;需要已安装 Microsoft Word,经隐藏的 COM 会话禁用宏并只读转换为临时 DOCX,源文件不变;
DOCX:段落、标题样式、表格;
XLSX/XLSM:工作表、行、单元格地址与公式文本;
PPTX:幻灯片文本、表格与 shape bbox;
TXT/Markdown/CSV/TSV/JSON/XML/HTML;
PNG/JPEG/TIFF/BMP/WebP:需要启用 OCR。
Related MCP server: vectorise-mcp
安装
需要 Python 3.11 或更新版本。推荐使用 uv:
git clone https://github.com/mtn888/document-evidence-mcp.git
Set-Location document-evidence-mcp
uv sync --extra dev
uv run document-evidence doctor旧版 .doc 另需 Windows、Windows PowerShell 5.1 和本机 Microsoft Word;
doctor 会在平台或 Word COM 注册缺失时给出警告。转换后的临时 .docx
在首次结构解析成功后会原子保存到源 SHA-256 对象目录,并按转换器版本命名;
后续强制重建或解析配置变化时直接复用,只有缓存缺失、损坏或转换器版本升级才
重新调用 Word。源 .doc 始终保留且不会被改写。
如果仓库位于 Windows UNC/网络映射盘,而 doctor 报告 PyMuPDF 原生扩展无法加载,请把虚拟环境放到本机磁盘(项目代码仍可留在网络盘):
$env:UV_PROJECT_ENVIRONMENT = "$env:LOCALAPPDATA\document-evidence-mcp-venv"
uv sync --extra dev
uv run document-evidence doctorPyMuPDF 官方安装说明也将 Windows _extra DLL load failure 与 Visual C++ Redistributable/原生加载环境列为首要排查项,并推荐新代码使用 import pymupdf 而非旧 fitz 别名:PyMuPDF installation。
Windows GPU + PaddleOCR 完整配置
PP-StructureV3 除 paddleocr 外还需要 paddlex[ocr];本项目的 ocr extra
已经同时声明二者。PaddlePaddle 推理运行时仍需按硬件单独安装。
当前已验证的 Windows 配置使用独立 D 盘环境,避免映射盘上的原生 DLL 加载问题,也不覆盖系统已有 CUDA:
.\scripts\setup_paddleocr.ps1 -ValidateSamples脚本固定使用:
Python 3.12.11:
D:\Codexhome\document-evidence-mcp-runtime;PaddlePaddle GPU 3.3.0 官方 CUDA 12.9 wheel;
PaddleOCR 3.x +
paddlex[ocr];模型:
D:\Codexhome\models\paddlex;文档库:
D:\Codexhome\document-evidence-store。
模型在第一次真实 OCR 时从 Paddle 官方 BOS 下载。PP-StructureV3 使用
PADDLE_PDX_CACHE_HOME,旧 PaddleOCR 下载器使用 PADDLE_OCR_BASE_DIR;
两者都必须配置,不能只设置旧变量。当前适配器关闭公式、印章、图表和区域识别,
保留布局、OCR 和表格识别,减少无关模型。只导入带可靠文本层的 PDF 或 Office
文件不会触发 OCR。
如果不运行脚本,可手动安装当前已验证的 GPU wheel:
uv venv --python 3.12.11 D:\Codexhome\document-evidence-mcp-runtime
$python = 'D:\Codexhome\document-evidence-mcp-runtime\Scripts\python.exe'
uv pip install --python $python --link-mode copy `
'https://paddle-whl.bj.bcebos.com/stable/cu129/paddlepaddle-gpu/paddlepaddle_gpu-3.3.0-cp312-cp312-win_amd64.whl'
uv pip install --python $python --link-mode copy --editable '.[ocr,dev]'本机验证环境、9 份 PDF 的结果和已知空白页边界见 真实 PaddleOCR 验证记录。
命令行试用
uv run document-evidence ingest 'D:\docs\standard.pdf'
uv run document-evidence search '安全阀' --limit 4 --max-chars 5000
uv run document-evidence list首次导入后的典型返回:
{
"document_id": "doc_..._r1",
"cached": false,
"status": "completed",
"source_sha256": "...",
"profile_hash": "...",
"evidence_count": 143
}再次导入同一内容(即使文件换了路径)会返回相同 document_id 且 cached: true。只有源内容、解析配置、语言/OCR 引擎版本发生变化,或显式使用 --force 时才生成新版本。
配置 Codex
先完成安装。以下示例将读取范围限制为本仓库的 pdf/,适合写入可信项目的
.codex/config.toml:
[mcp_servers.document_evidence]
command = 'D:\Codexhome\document-evidence-mcp-runtime\Scripts\document-evidence-mcp.exe'
cwd = 'D:\Codexhome\document-evidence-mcp'
startup_timeout_sec = 60
tool_timeout_sec = 1800
required = false
[mcp_servers.document_evidence.env]
DOCUMENT_EVIDENCE_STORE = 'D:\Codexhome\document-evidence-store'
DOCUMENT_EVIDENCE_OCR_PROVIDER = 'paddleocr'
DOCUMENT_EVIDENCE_OCR_DEVICE = 'gpu:0'
DOCUMENT_EVIDENCE_ALLOWED_ROOTS = 'D:\Codexhome\document-evidence-mcp\pdf'
PADDLE_PDX_CACHE_HOME = 'D:\Codexhome\models\paddlex'
PADDLE_OCR_BASE_DIR = 'D:\Codexhome\models\paddleocr'
PADDLE_PDX_MODEL_SOURCE = 'bos'
PADDLE_PDX_DISABLE_MODEL_SOURCE_CHECK = 'True'DOCUMENT_EVIDENCE_ALLOWED_ROOTS 使用当前操作系统的路径分隔符;Windows 为分号。项目级配置只会在 Codex 信任该项目后加载。字段依据当前 Codex 配置参考中的 mcp_servers.<id>.command、args、cwd、env、启动/工具超时定义:Codex config.toml reference。
如需让任意项目默认可用,应把 MCP 写入用户级 ~/.codex/config.toml,把
cwd 设为稳定的本机目录,并省略 DOCUMENT_EVIDENCE_ALLOWED_ROOTS;这表示
服务端不预先限制可导入根目录,但仍只有显式调用 ingest_document 才会读取
文件。建议同时用用户级 AGENTS.md、skill 和轻量 SessionStart hook 约束为
“只导入当前任务相关文档”。本机已验证的完整配置、文件位置、hook 信任与跨项目
实测见全局 Codex 集成记录。
环境变量
变量 | 默认值 | 说明 |
| Windows | 对象、版本 artifact 与 SQLite |
| 空(不限制) | 允许导入的根目录列表 |
|
|
|
| 空(Paddle 自动选择) | 如 |
|
| 单文件上限 |
|
| 单证据块目标上限 |
|
| 文本块重叠 |
|
| Microsoft Word 转换单个 DOC 的超时秒数 |
|
| 单次 MCP 响应正文硬上限 |
|
| 单次证据条数硬上限 |
|
| PP-StructureV3/PaddleX 模型缓存根目录 |
|
| 旧 PaddleOCR 模型缓存根目录 |
|
| 本配置用 |
|
|
|
推荐工作流
用
ingest_document导入一次;扫描件在首次导入时 OCR。用短关键词调用
search_evidence,通常取 3–6 条。用
get_evidence精取必须引用的证据。数字、条款号、表格列对齐或低置信度内容才调用
render_crop。不把
blocks.jsonl、整份 OCR 文本或所有页面 PNG 直接放进对话。
架构、身份规则和已知边界见 中文架构说明。
开发验证
uv sync --extra dev
uv run ruff check .
uv run pytest
uv build真实 PDF 回归(需要已安装的 OCR/GPU 环境):
$env:DOCUMENT_EVIDENCE_STORE = 'D:\Codexhome\document-evidence-store'
$env:DOCUMENT_EVIDENCE_OCR_PROVIDER = 'paddleocr'
$env:DOCUMENT_EVIDENCE_OCR_DEVICE = 'gpu:0'
$env:PADDLE_PDX_CACHE_HOME = 'D:\Codexhome\models\paddlex'
$env:PADDLE_PDX_MODEL_SOURCE = 'bos'
D:\Codexhome\document-evidence-mcp-runtime\Scripts\python.exe `
.\scripts\validate_real_pdfs.py .\pdf `
--report .\artifacts\reports\real-pdf-validation.jsonGitHub Actions 会在 Windows/Linux 与 Python 3.11/3.13 上执行同一组 lint、测试和构建检查。
本项目采用 MIT 许可证。
Available Tools
7 toolsdoctorB
Report parser, SQLite/FTS and optional OCR availability.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full transparency burden, but it only says that availability is 'reported.' It does not disclose whether checks are executed, whether the operation is read-only, or how failures are reported, even though the output schema may document return fields.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence that front-loads the verb and names the key subjects. There is no filler or repetition, and every word contributes to the core message.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given a zero-parameter tool with an output schema, the description conveys the core reporting function, but it omits any context about when to run doctor and how it relates to the sibling tools. It is minimally viable but leaves the agent to infer the operational context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero properties, so there are no parameter semantics to explain. According to the rubric baseline for 0 parameters, this is adequate without additional parameter detail in the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses the verb 'Report' and lists specific subjects (parser, SQLite/FTS, optional OCR availability), indicating a diagnostic status tool. It is clearly distinct from sibling tools that ingest, search, get, list, or render documents, though the phrase is elliptical.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given for when to use doctor versus the ingestion/search/get/list/render siblings. There are no preconditions, recommendations, or exclusions, leaving the agent to infer that it is a health-check tool only from the name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_documentB
Return one document manifest summary and all source paths seen for it.
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It fails to state whether the operation is read-only, what permissions are needed, what happens if the document is not found, or any potential side effects. It only mentions the return content, leaving important behavioral traits undisclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, front-loaded with the verb, and contains no redundant words. It is concise and to the point, earning a high score for structure and brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple with one parameter and an output schema, which reduces the need to explain return values. However, the lack of annotations and minimal description leaves gaps in usage guidance and behavioral context. It is adequate for a basic getter but not fully complete for an agent making an informed decision.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has no description for document_id (0% coverage), so the description must compensate. It does clarify that the parameter identifies which document's summary and source paths to return, but it does not explain the format or origin of the document_id, nor its relationship to other tools. This adds some semantic value but not comprehensive guidance.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Return' and clearly identifies the resource: 'one document manifest summary and all source paths seen for it.' This distinguishes it from sibling tools like list_documents (which lists documents) and get_evidence (which presumably retrieves evidence), making its purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus alternatives such as list_documents or get_evidence. The description implies usage for retrieving a single document's details, but does not mention context, exclusions, or why one would choose it over a sibling tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_evidenceA
Read exact evidence blocks by stable ID under a total character budget.
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | ||
| evidence_ids | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavioral traits itself. It reveals a key behavior—the total character budget—but does not explain what happens when the budget is exceeded (truncation, omission, or error), nor any other side effects, ordering, or required permissions. The budget disclosure is useful but incomplete for a tool with no annotation support.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, tightly-worded sentence that front-loads the action and resource, and includes the distinctive budget constraint. Every word earns its place; there is no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple 2-parameter tool with an output schema, the description covers the core purpose and the budget constraint, which is essential. However, it lacks usage context (e.g., when to prefer this over search_evidence) and does not clarify behavior under budget limits. Given no annotations and sparse schema, the description is adequate but leaves notable gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 0% schema description coverage, the description adds meaning by mapping 'evidence blocks' to evidence_ids and 'total character budget' to max_chars. This clarifies the purpose of both parameters, especially max_chars, which the schema only labels generically. It does not specify units or edge-case behavior, but it significantly compensates for the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Read') and resource ('exact evidence blocks') qualified by 'by stable ID', clearly distinguishing it from sibling search_evidence. It also introduces a unique constraint ('under a total character budget') that defines its scope precisely.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'exact evidence blocks by stable ID' implies this is for direct retrieval when IDs are known, as opposed to search_evidence or ingest_document. While it does not explicitly state when not to use it or name alternatives, the wording provides clear contextual cues for appropriate use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
ingest_documentA
Import a local document once and persist its structured evidence.
The cache identity includes source SHA-256, parser configuration, OCR provider, languages and engine versions. Use force only to create an explicit new revision.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| force | No | ||
| ocr_mode | No | auto | |
| languages | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral disclosure burden. It discloses that the operation persists data, that cache identity includes source SHA-256, parser configuration, OCR provider, languages, and engine versions, and that force creates an explicit new revision. This goes beyond the schema and informs the agent about side effects and revisioning, though it does not detail failure modes or permission requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact: three sentences total, front-loaded with the primary purpose, followed by cache identity details and force guidance. Every sentence contributes value without redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the 4-parameter complexity, no annotations, and an output schema (which removes the need to describe return values), the description is fairly complete. It covers the main behavior, cache identity, and force semantics. It omits edge cases like duplicate imports or error handling, but the provided context is sufficient for an agent to invoke the tool reasonably correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description must compensate. It explains that cache identity derives from source SHA-256 (linked to path), OCR provider (ocr_mode), and languages, and explicitly clarifies force's role for new revisions. However, it does not explain ocr_mode's enum values or the languages format (e.g., ISO codes), leaving some parameter semantics implicit. It adds meaningful guidance but not full compensation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Import') and resource ('local document'), and clarifies the key action: 'persist its structured evidence'. This clearly distinguishes it from sibling tools like search_evidence, get_evidence, and render_crop, which are all retrieval or manipulation tools rather than ingestion.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the primary use case: importing a local document once for evidence persistence, and explicitly warns that 'force' should only be used to create a new revision. It does not name alternative tools, but the contrast with retrieval-focused siblings is contextually clear. It lacks explicit 'do not use when' exclusions, but the 'once' and 'revision' guidance provides solid usage boundaries.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_documentsA
List recently indexed document versions without returning document bodies.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses the key behavior of not returning document bodies and scopes results to 'recently indexed' versions. With no annotations, the read-only nature is implied but not explicitly stated; however, for a listing tool this is adequate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, direct sentence with no filler, front-loading the verb and resource and adding a useful qualifier.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple and the output schema covers return values, but the lack of parameter explanation and explicit sibling differentiation leaves clear gaps, making it merely adequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The sole parameter `limit` is completely undocumented in both the schema and description. The description does not mention how `limit` affects results, leaving the agent to infer its meaning from the tool name.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'List' and resource 'recently indexed document versions', and explicitly notes it avoids returning bodies, which distinguishes it from siblings like get_document or search_evidence.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when a recent list of documents is needed but does not explicitly state when to prefer this over search_evidence or get_document, nor any exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
render_cropA
Render one PDF evidence rectangle to a local PNG artifact.
Coordinates use PDF points (72 points per inch). This tool returns a path and metadata, never the image bytes.
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| dpi | No | ||
| page | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It adds valuable details beyond the schema by stating that coordinates use PDF points (72 per inch) and that the tool returns a path and metadata, never image bytes. This clarifies the output format and coordinate system, though it omits potential side effects or permission requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three focused sentences. The first states the purpose, the second provides coordinate units, and the third clarifies the output format. Every sentence earns its place with no redundant details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 7 parameters and an output schema, and the description covers the core rendering purpose, coordinate units, and output behavior. It does not mention when to use the tool or any side effects, which is a minor gap, but the existing information is adequate for a moderately complex render operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It adds meaning to the coordinate parameters (x0, y0, x1, y1) by specifying PDF points, but does not explain document_id, page, or dpi further. The parameter names are relatively self-explanatory, but the description only partially fills the gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description starts with a specific verb 'Render' and identifies a precise resource: 'one PDF evidence rectangle to a local PNG artifact.' This clearly distinguishes it from sibling tools like search_evidence or get_document, which handle different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no guidance about when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or when this rendering operation is preferred over other evidence-related tools. The sibling list provides context but the description itself offers no usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_evidenceC
Search the persistent local index and return a bounded set of citations.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| max_chars | No | ||
| document_id | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must disclose behavioral traits, but it only mentions 'persistent' and 'bounded' without clarifying read-only nature, result ordering, or any side effects. It does not address permissions or safety.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence with no wasted words, front-loading the core action and resource. It is appropriately sized for the limited content it conveys.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 4 parameters with no schema descriptions, no annotations, and an output schema, the description is too sparse. It does not explain search behavior, parameter roles, or result format, making it insufficient for robust tool use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description does not mention any of the four parameters (limit, query, max_chars, document_id). It fails entirely to add meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: it searches a persistent local index and returns a bounded set of citations. This distinguishes it from sibling tools like get_evidence and get_document, which imply direct retrieval rather than search.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as get_evidence or list_documents. It only states what the tool does, leaving the agent without context for tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
7 tool updates
v0.1.0- First observed
doctor - First observed
get_document - First observed
get_evidence - First observed
ingest_document - First observed
list_documents - First observed
render_crop - First observed
search_evidence
TDQS
Each tool targets a distinct aspect of the document evidence lifecycle: ingestion, searching, retrieval by ID, document listing, document metadata, rendering crops, and health checks. The overlapping-sounding pairs (search/get, list/get) are clearly differentiated by their descriptions and return types.
Six of seven tools follow a consistent verb_noun pattern (ingest_document, search_evidence, get_evidence, list_documents, get_document, render_crop). The lone exception is 'doctor', which breaks the pattern and is the only naming inconsistency.
Seven tools is well-scoped for a document evidence management server, covering the full workflow from ingestion through search, retrieval, rendering, and diagnostics. Each tool has a clear purpose with no redundancy.
The toolset provides a complete lifecycle from ingestion to evidence retrieval and rendering, including document management and a health check. There are no obvious missing operations, as updates can be handled via explicit new revisions during ingestion.
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 Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.
61- docs2mcpOAuthcom.docs2mcp
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
Related MCP Servers
- AlicenseAqualityAmaintenanceThe open retrieval layer for AI agents. Index your entire project — code, docs, legal, research, data — and serve surgical context via MCP. FTS5 full-text search, optional semantic search (FastEmbed/ONNX), 10 built-in parsers, incremental auto-sync.824MIT
- AlicenseNot gradedqualityDmaintenanceLocal MCP server that indexes folders of documents into a hybrid vector + keyword search index for Claude Desktop, with support for PDFs, Office files, and images via OCR.MIT
- AlicenseAqualityCmaintenanceA local-first document retrieval MCP server that enables AI coding tools like Codex to search private local documents via semantic search and keyword boost, supporting ingestion of PDF, DOCX, TXT, Markdown, and HTML files.7MIT
- AlicenseBqualityAmaintenanceLocal-first MCP server that transforms civil case PDFs into queryable cases with structural provenance, evidence IDs, and page-level verification for drafting and factual review.22Apache 2.0
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/mtn888/document-evidence-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server