SOP Retrieval
A local, offline MCP server that indexes your SOP documents and answers operational questions with sourced, version-aware citations.
ingest_documents(folder_path)— loads SOP files (txt/md/csv/json/log per the schema; README also claims PDF/DOCX) into the retrieval index; re-ingesting unchanged files is a no-opsearch_procedure(query, top_k=5)— retrieves matching passages with full source attribution (document, version, section, excerpt), preferring the latest version of a procedurelist_documents()— lists all loaded SOPs with their detected versionscheck_versions()— flags version conflicts where multiple versions of the same procedure are loaded, risking outdated stepstrial_status()— reports the 30-day evaluation period statusAll processing runs locally; document text never leaves your machine
Click on "Deploy 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., "@SOP Retrieval What must be checked before dispatching goods?"
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.
SOP Retrieval — Self-Serve Test Package
Evaluate SOP retrieval on your own data, locally. Your documents never leave your machine.
What is inside
run_server.py— starts the MCP server (stdio transport)tools/ingest_cli.py— one-command ingestion of your SOP foldersample_sops/— six sample warehouse SOPs to try immediatelysop_mcp/— server code (PDF/DOCX/text ingestion, pure-Python retrieval)SCOPE.md— what this package does and does not do (read first)
Related MCP server: Nümtema Private Knowledge MCP
Requirements
Python 3.10+
pip install -r requirements.txt(installs themcppackage only)
Install from PyPI
pip install sop-retrieval-mcpThis installs the sop-retrieval-mcp MCP server entrypoint (stdio transport). Listed in the official MCP Registry as io.github.tanbopiao/sop-retrieval-mcp. Running from source (below) still works.
Quick start (3 steps)
Ingest your documents
python tools/ingest_cli.py /path/to/your/sop/folderSupported file types:
.pdf,.docx,.txt,.md,.csv,.json,.log. Re-running is safe — unchanged files are skipped.Start the MCP server
python run_server.pyConnect from any MCP client (Claude Desktop, Cursor, etc.) with this configuration:
{ "mcpServers": { "sop-retrieval": { "command": "python", "args": ["/full/path/to/this/folder/run_server.py"] } } }
Then ask questions like:
"What must be checked before dispatching goods?"
"What do I do if the vehicle seal number does not match?"
"Where do damaged cartons go during putaway?"
Every answer comes back with its source: document name, version, and section — so an operator can verify before acting.
Tools provided by the server
Tool | What it does |
| Load SOP files into the index |
| Retrieve the right procedure passage with source |
| Show loaded documents and detected versions |
| Flag multiple versions of the same procedure |
| Show evaluation period status |
Version handling
If two versions of the same procedure are loaded (e.g.
SOP-WH-003_Picking_v3.0.txt and SOP-WH-003_Picking_v3.1.txt),
search_procedure prefers the highest version and flags the conflict
via check_versions().
Evaluation period
Free for 30 days from first run, unlimited documents. For the managed production version (integration with your ERP/AI systems, hosted indexing, multi-site support), contact us.
Scope
Read SCOPE.md before evaluating: it lists exactly what this package
does, what it does not do, and what is out of scope. Nothing beyond
that scope is promised.
Troubleshooting
"unsupported type" when ingesting — the file extension is not in the supported list. Convert it to PDF, DOCX or plain text.
PDF ingests but content looks wrong — the PDF may be a scan without a text layer. SCOPE.md covers this limit; use text-based PDFs or DOCX.
Answers cite an old version — run
check_versions(); if several versions of one procedure are loaded, remove the outdated files and re-ingest.MCP client cannot connect — make sure the
argspath in your client config is the absolute path torun_server.py, and thatpythonresolves to Python 3.10+.
More from us
This package is one piece of a broader verifiable-agent toolkit. The official site — with the full works catalog and background — lives at huodouai.com.
道统映射表(命名即种子)
索骥——按图索骥:规程检索的本质,是沿着版本这条线索找到当下唯一正确的做法。命名即架构,全仓结构由这个名字生长而来:
道统 | 仓内落位 |
命名即种子:索骥=按图索骥,按版本线索检索规程 |
|
检索可溯源:每条答案必须带出处,操作员先核验再执行 |
|
防篡改现形:文件改动即指纹失配,重索引不静默覆盖 |
|
旧版让位:同族多版本并存时,高版本加权靠前并标记冲突 |
|
试用有闸:先试后买,期限与状态可查 |
|
回归铁律:改动后历史用例必须全绿 |
|
License
MIT — see LICENSE. The evaluation-period terms in SCOPE.md apply on top of it for the trial gate; the managed production version is licensed separately.
Offline diagnostic CLI
Prefer a one-shot health check over running the MCP server? Use the diagnostic CLI — it ingests a folder of SOPs and reports version conflicts, missing metadata, stale documents, coverage gaps and a retrieval self-test, without any document text leaving your machine. See DIAGNOSTIC_README.md for the 3-step quick start.
🌐 智能体生态社区
本作品是 huodouai.com 智能体生态社区 的一部分——一个智能体自主登记、认领任务、交付留痕的开放社区。 新到的智能体请先读 启动记忆,按 新手村分步指引 五步完成接入。
Available Tools
5 toolscheck_versionsA
Detect version conflicts: multiple versions of the same procedure loaded at once, which can cause operators to follow outdated steps.
Inputs: no named parameters.
ingest_documentsA
Load SOP documents (txt/md/csv/json/log) from a folder into the retrieval index. Re-ingesting unchanged files is a no-op.
Inputs: folder_path (required).
list_documentsB
List all loaded SOP documents with their detected versions.
Inputs: no named parameters.
search_procedureA
Search loaded SOPs for an answer to an operational question. Returns matching passages with full source attribution: document, version, section and excerpt. Latest document version is preferred when several versions of the same procedure are loaded.
Inputs: query (required), top_k.
trial_statusB
Show evaluation period status.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct operation: ingestion, document listing, version-conflict detection, procedural search, and trial-status inspection. The overlap between list_documents and check_versions is minimal because one enumerates loaded documents while the other specifically diagnoses version conflicts.
Four of five tools follow a predictable verb_noun pattern (list_documents, check_versions, ingest_documents, search_procedure). trial_status is a noun phrase rather than a verb-led name, which is a minor inconsistency but still readable.
Five tools is well-scoped for a focused SOP retrieval server, with each tool earning a distinct place in the workflow. There is no obvious bloat or missing core operation due to the count itself.
The surface covers the main lifecycle: ingest documents, list them, detect version conflicts, and search procedures with attribution. Minor gaps remain, such as removing or clearing documents and fetching a document directly without search, but agents can work around these.
Maintenance
Related MCP Connectors
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Query any docs site via MCP. Submit a URL, ask questions, get cited answers.
Public MCP endpoint for collaborative research and knowledge discovery.
MCP server for querying Forkast documentation
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides tools for ingesting documents into a local vector database and retrieving relevant information via semantic search, enabling retrieval-augmented generation for MCP clients.8-
- FlicenseNot gradedqualityDmaintenanceEnables users to build and query a private knowledge base by uploading documents, which are embedded and stored locally, then accessible via MCP for semantic search and retrieval.-
- FlicenseNot gradedqualityDmaintenanceEnables local document question-answering and retrieval via MCP, supporting multi-turn conversation, intent recognition, and tools for document search, Q&A, and summarization.5-
- FlicenseNot gradedqualityCmaintenanceEnables MCP hosts to index local PDFs and ask grounded questions over them, retrieving semantically relevant passages with optional reranking and source-attributed, citation-backed answers.-