Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Full text of research papers by DOI, arXiv, PMC or OpenReview id, verified against the record
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
UNPAYWALL_EMAIL, FULLTEXT_OUTPUT_DIR, WILEY_API_KEY, ELSEVIER_API_KEY, SPRINGER_API_KEY, SEMANTIC_SCHOLAR_API_KEYค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"fulltext-article-downloader": {
"command": "uvx",
"args": [
"fulltext-article-downloader"
],
"env": {
"UNPAYWALL_EMAIL": "ใส่ค่าของคุณ",
"FULLTEXT_OUTPUT_DIR": "ใส่ค่าของคุณ",
"WILEY_API_KEY": "ใส่ค่าของคุณ",
"ELSEVIER_API_KEY": "ใส่ค่าของคุณ",
"SPRINGER_API_KEY": "ใส่ค่าของคุณ",
"SEMANTIC_SCHOLAR_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add fulltext-article-downloader --env UNPAYWALL_EMAIL='ใส่ค่าของคุณ' --env FULLTEXT_OUTPUT_DIR='ใส่ค่าของคุณ' --env WILEY_API_KEY='ใส่ค่าของคุณ' --env ELSEVIER_API_KEY='ใส่ค่าของคุณ' --env SPRINGER_API_KEY='ใส่ค่าของคุณ' --env SEMANTIC_SCHOLAR_API_KEY='ใส่ค่าของคุณ' -- uvx fulltext-article-downloaderเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"fulltext-article-downloader": {
"command": "uvx",
"args": [
"fulltext-article-downloader"
],
"env": {
"UNPAYWALL_EMAIL": "ใส่ค่าของคุณ",
"FULLTEXT_OUTPUT_DIR": "ใส่ค่าของคุณ",
"WILEY_API_KEY": "ใส่ค่าของคุณ",
"ELSEVIER_API_KEY": "ใส่ค่าของคุณ",
"SPRINGER_API_KEY": "ใส่ค่าของคุณ",
"SEMANTIC_SCHOLAR_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"fulltext-article-downloader": {
"type": "stdio",
"command": "uvx",
"args": [
"fulltext-article-downloader"
],
"env": {
"UNPAYWALL_EMAIL": "ใส่ค่าของคุณ",
"FULLTEXT_OUTPUT_DIR": "ใส่ค่าของคุณ",
"WILEY_API_KEY": "ใส่ค่าของคุณ",
"ELSEVIER_API_KEY": "ใส่ค่าของคุณ",
"SPRINGER_API_KEY": "ใส่ค่าของคุณ",
"SEMANTIC_SCHOLAR_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
UNPAYWALL_EMAIL envFULLTEXT_OUTPUT_DIR envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub computron ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: WILEY_API_KEY, ELSEVIER_API_KEY, SPRINGER_API_KEY, SEMANTIC_SCHOLAR_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.4) เข้า registry 39 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
fulltext-article-downloader is a Python package for programmatically downloading the full text of research articles from a DOI, arXiv id, PubMed Central id or OpenReview id. It chains together publisher APIs, open-access indexes and repositories in a fallback sequence, checks that what came back is really the requested article, and can be used from Python, from the command line, or by an AI agent through an MCP server or a Claude Code skill.
Video tutorial: https://youtu.be/fTtc4QWMYzE
tqdm progress bar, and file logs that record which tool succeeded or why an identifier failed.fulltext-config script.fulltext-download CLI, fulltext-mcp server for any MCP client, and a Claude Code plugin with a ready-made skill.pip install fulltext-article-downloader
Optional extras enable additional routes and the MCP server:
| Extra | Adds |
|---|---|
mcp | the fulltext-mcp server (fastmcp) |
tls | a Chrome TLS fingerprint fallback for hosts that reject plain HTTPS clients (curl-cffi) |
springer | the Springer Nature open-access XML route (sprynger) |
preprints | bioRxiv/medRxiv downloads through paperscraper |
aps | the APS route that reuses your browser's login cookies (browser-cookie3) |
all | everything above |
tls and aps both work by making a request look more like your own browser than a script: tls matches Chrome's TLS fingerprint for hosts that turn away plain HTTPS clients, and aps reuses the APS session cookie you are already signed in with. Neither opens anything you are not licensed for, but both go a step beyond a plain API client, so they are worth checking against your institution's agreements before you enable them. A default install has neither; all includes them.
pip install "fulltext-article-downloader[mcp,tls]"
For development, clone the repository and run pip install -e ".[dev,all]". Make sure to configure your installation afterwards (see next section).
All credentials are optional; each one unlocks a route. Without keys, and off campus, expect open-access papers, preprints and DOE-funded manuscripts to work and most paywalled articles to fail.
| Service | Environment variable | Where to get the key |
|---|---|---|
| Unpaywall and Crossref contact email (your own address) | UNPAYWALL_EMAIL | (enter your email address) |
| Elsevier API | ELSEVIER_API_KEY | https://dev.elsevier.com |
| Wiley TDM API | WILEY_API_KEY | https://onlinelibrary.wiley.com/library-info/resources/text-and-datamining |
| Springer Open Access API | SPRINGER_API_KEY | https://dev.springernature.com |
| Semantic Scholar (optional; raises the rate limit and enables the title search that finds arXiv copies of papers whose DOI record has no PDF) | SEMANTIC_SCHOLAR_API_KEY | https://www.semanticscholar.org/product/api (free, approved by email in a few days) |
UNPAYWALL_EMAIL is sent only to Unpaywall and Crossref, which ask API users for a contact address; Crossref serves requests that carry one from its faster "polite" pool. Keys and the email stay on your machine.
Set these environment variables or run the interactive helper:
fulltext-config
The script stores keys in ~/.fulltext_keys, which are loaded automatically on import. If a required key is missing, the corresponding tool is skipped and the downloader falls back to other methods. Publisher keys return paywalled content only when the key or the network is entitled; the package detects truncated or abstract-only responses and moves on.
Any of these forms is accepted everywhere an identifier is expected:
10.1021/jacs.3c13302, https://doi.org/10.1021/jacs.3c13302, doi:10.1021/jacs.3c133022310.19377, arXiv:2310.19377, https://arxiv.org/abs/2310.19377, cond-mat/9712061, 10.48550/arXiv.2310.19377PMC6561843fNyXCCZ0g6fulltext-download <ID> [<ID> ...] [-o DIR] [--tools a,b,c] [--workers N] [--no-check] [--log-file FILE]
fulltext-download 10.1371/journal.pone.0171501 -o papers
fulltext-download 10.1021/jacs.3c13302 arXiv:1710.10324 PMC6561843 -o papers --workers 4
The command prints one JSON object per identifier and exits 0 only when every download succeeded:
[
{ "identifier": "10.1021/jacs.3c13302", "success": true, "path": "papers/10.1021_jacs.3c13302.pdf", "source": "osti", "note": "OSTI accepted manuscript, not the publisher's version of record", "error": null, "attempts": [], "supplements": [] } ]
The original form fulltext-download [ ] still works.
fetch returns the same structure the CLI prints; fetch_many downloads a list concurrently:
from fulltext_article_downloader import fetch, fetch_many
r = fetch("10.1371/journal.pone.0171501", "papers") if r["success"]: print(r["path"], r["source"], r["note"]) else: print(r["error"]) # every route tried, with its reason
rs = fetch_many(["10.1002/advs.201900808", "10.48550/arXiv.2207.03928"], "papers", workers=4)
The earlier functions are unchanged: download_article(doi, output_dir, ...) returns the path or raises, and bulk_download_articles(dois, output_dir, log_file=..., sleep=..., workers=...) returns a dict of paths or "ERROR: ..." strings with a progress bar.
Options shared by all of them: output_filename (single download), tools (a list of route names that overrides the publisher default), log_file (append a download log), and for fetch also check=False to skip verification and skip_existing=False to re-download a file that is already present.
fetch(..., supplements=True), fetch_many(..., supplements=True), fulltext-download --supplements and the MCP tools' supplements=true also fetch the article's supplementary files (supporting information, data tables, videos). They are separate files from separate places, so they are saved next to the article as _si1.pdf, _si2.xlsx, ... and listed in the result's supplements. Sources: the ChemRxiv and Elsevier APIs, Europe PMC's supplement bundle for PMC articles, and otherwise the article's landing page (Springer Nature, Wiley, bioRxiv, ACS, RSC, PLOS and others link them there; most publishers serve supplements without a subscription). Off by default because it costs one more request per article; a missing supplement never fails the download.
fulltext-mcp exposes two tools, get_paper(identifier, output_dir="", tools=None, supplements=False) and get_papers(identifiers, output_dir="", max_workers=4, supplements=False), returning the structure shown above. It needs the mcp extra and reads the same keys as the CLI. FULLTEXT_OUTPUT_DIR sets where files go when a call gives no output directory (default ./papers).
Claude Code:
claude mcp add fulltext-article-downloader -- uvx --from "fulltext-article-downloader[mcp]" fulltext-mcp
Any other MCP client, in its server configuration:
{
"mcpServers": { "fulltext-article-downloader": { "command": "uvx", "args": ["--from", "fulltext-article-downloader[mcp]", "fulltext-mcp"], "env": { "UNPAYWALL_EMAIL": "you@example.org", "FULLTEXT_OUTPUT_DIR": "/abs/path/papers" } } } }
uvx fetches the package from PyPI into an isolated environment on first use, so nothing needs to be installed beforehand. The server is also listed in the official MCP registry as io.github.computron/fulltext-article-downloader.
This repository is also a Claude Code plugin. It installs a skill that teaches Claude when and how to use fulltext-download, plus the MCP server above:
/plugin marketplace add computron/fulltext-article-downloader
/plugin install fulltext-article-downloader@fulltext-article-downloader
The skill alone (no MCP) is enough inside Claude Code: it runs the CLI and reads the JSON. The MCP server is for clients that cannot run shell commands, and for other agent frameworks.
Many articles are not open-access, and publishers explicitly restrict or discourage text and data mining. This example is expected to FAIL:
fulltext-download 10.1109/GROUP4.2007.4347715 -o papers
The error field lists every route tried and why it failed. A failure almost always means the article is paywalled with no open-access copy, or that a host blocked automated access.
If you see an error like Failed to load APS cookies, please make sure you are running Python using an application that has full disk access.
A file that starts with %PDF- is not proof of anything: open-access indexes occasionally map a DOI to an unrelated document, and a supporting-information file can carry the article's title. After every route the package extracts the first two pages and checks that the Crossref title is there, rejects files that open with a Supporting Information heading, and rejects Elsevier XML records that contain no body text. A rejected file is deleted and the next route is tried. --no-check / check=False turns this off.
The tool is composed of multiple sub-tools intended to support various publishers. The tool order depends on the publisher.
| Publisher / source | Default tool order |
|---|---|
| Elsevier | unpaywall → elsevier (PDF when entitled, else XML) → europepmc → osti → semantic |
| Springer / Nature | springerpdf (nature.com, SpringerLink) → unpaywall → europepmc → springeropen (XML) → osti → semantic |
| Wiley | wiley → unpaywall → europepmc → osti → semantic |
| APS | aps → unpaywall → crossref_tdm → europepmc → osti → semantic |
| ACS, RSC, AIP | unpaywall → europepmc → crossref_tdm → osti → semantic |
| PLOS | plos → unpaywall |
| eLife | elife → unpaywall |
| Cambridge | cambridge → unpaywall → europepmc → osti → semantic |
| arXiv | arxiv → unpaywall |
| ChemRxiv | chemrxiv → paperscraper → unpaywall |
| bioRxiv, medRxiv | biorxiv → unpaywall → paperscraper |
| MDPI | mdpi → unpaywall → europepmc → semantic |
| Zenodo | zenodo |
ตัดมาแค่ช่วงต้น อ่านต่อใน repo