
quotecheck
io.github.feenmile由 GitHub 账号 feenmile 发布v0.1.1更新于 Oct 31, 2026
Check that a quoted passage appears word for word in its cited source (URL, DOI or PubMed ID).
概览
通过一个 MCP 工具检查引文是否逐字出现在其引用来源(URL、DOI 或 PubMed ID)中,并指出出现位置。
- 可以做什么
- 用 http/https 网址、doi: 标识或 pmid: 标识核对引文是否出现在来源中
- 返回 EXACT、NEAR、NOT_FOUND 或 SOURCE_UNAVAILABLE 判定,并附相似度与原因
- 近似匹配时给出字符位置和来源中的实际措辞片段
- 抓取并返回来源提取出的纯文本,供助手直接查看
- 适用场景
- 适合在助手撰写含直接引语或引用的文稿时,发布前确认措辞确实出现在所引来源中。它能发现“引用真实、措辞有误”的情况,但不判断论点是否成立。
- 运行要求
- 以 Python 包(quotecheck-mcp,命令 quotecheck-mcp)通过 stdio 在本机运行,需要 Python 3.10 或更高版本;MCP 服务器还需可选的 mcp SDK。未声明账号、API 密钥或环境变量。抓取来源需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 quotecheck,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
quotecheck
Does the quoted passage actually appear in the source?
AI agents (and people) often cite real sources but misstate what those sources
say: real references, wrong claims. quotecheck fetches the cited source and
checks that the quoted text is really there, word for word, and tells you where.
Built by Feenmile.
Verdicts
char_start / char_end are Python string indices (end exclusive) into the
plain text quotecheck extracted from the source, which you can get with
quotecheck.fetch_source(source).text.
Read NEAR carefully. A NEAR result means the wording differs. A changed
number ("43,548" vs "43,549") or a dropped "not" can still score above 0.90.
Use the returned snippet as the quotation, or rephrase as a paraphrase.
Sources
https://...orhttp://...URLsdoi:10.xxxx/...(resolved through https://doi.org, following the publisher redirect)pmid:12345(the PubMed abstract, via NCBI E-utilitiesefetch, plain text)
Install
The PyPI distribution is named quotecheck-mcp; the import package and the
command are still quotecheck.
Python 3.10 or newer.
Quick start: CLI
Output is always JSON on stdout. Exit status is 0 when a verdict was printed
(1 with --strict unless EXACT) and 2 for usage errors such as an empty quote.
Quick start: library
The core library uses only the Python standard library.
Quick start: MCP server
The server speaks MCP over stdio and exposes one tool, check_quote(quote, source).
If the script is not on your PATH, use "command": "python", "args": ["-m", "quotecheck.mcp_server"].
The tool description tells the agent to call it before presenting text as a direct quotation, and how to act on each verdict.
Safe fetching
quotecheck fetches URLs that came from model output, so it treats them as untrusted:
- only
httpandhttps; URLs with embedded credentials are refused; - the host is resolved and every resolved address must be public: private, loopback, link-local, multicast, reserved and unspecified addresses (including IPv4-mapped IPv6 forms) are refused; the connection then goes to the checked address, so a second DNS answer cannot swap in an internal one;
- the same checks run again on every redirect, with at most 5 redirects;
- one 15 second deadline covers the whole fetch, and the body is capped at 5 MB (declared, streamed and after decompression);
- requests identify as
quotecheck/0.1 (+https://feenmile.com); - proxy environment variables are not used.
Limits (v0.1)
- EXACT means the text appears, not that the claim is true. quotecheck does not judge context, meaning, or whether the source is reliable. A quote can be verbatim and still be used to support something the source does not say.
- No PDFs. PDF responses return
SOURCE_UNAVAILABLEwith the reasonpdf not supported in v0.1. Many DOIs resolve to a landing page whose abstract is HTML; the full text may only be in a PDF. - No JavaScript rendering. Pages that build their text in the browser come
back empty (
SOURCE_UNAVAILABLE) or incomplete (NOT_FOUND). - Paywalls, logins, cookie walls and bot blocks. quotecheck sees what an
anonymous client sees. Text behind them reads as
NOT_FOUNDorSOURCE_UNAVAILABLE, which does not mean the quote is wrong. - PubMed is abstract-only.
pmid:checks the abstract text, not the full paper. - Ellipses are literal. A quote that skips words with "..." will not match exactly; check each fragment separately.
- HTML extraction is simple. Text is taken from the standard-library HTML parser with script, style and template removed. Navigation, footers and hidden elements are included; text split across unusual markup may not join the way it reads on screen.
- Unicode. Characters are NFKC-normalized one at a time; the same accented letter written in composed and decomposed forms will not match exactly.
- Fuzzy search is anchored on words shared with the quote. Quotes longer than 20,000 characters are checked for exact matches only.
- Pages larger than 5 MB are refused rather than truncated.
Development
The tests are offline. They run a local http.server fixture. Because the
SSRF guard blocks loopback, tests exempt specific fixture (ip, port) pairs
with quotecheck._testing.allow_loopback_endpoints, a test-only switch that is
off unless a test turns it on. A second fixture server is never exempted, so
the tests can prove that a redirect into loopback is refused.
scripts/mutation_check.py copies the project to a temporary directory,
disables the address check, and confirms the suite fails.
License
MIT. See LICENSE.
来源:README.md,提交 8569f6e
工具
0版本历史
1- v0.1.1最新Oct 31, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分