Skip to main content
Glama

TwoSCI

TwoSCI is a literature research MCP server and plugin for Codex and Claude Code. It follows a researcher's actual workflow: start from a seed paper, define the research intent, search broadly, screen abstracts, read selected papers, trace citations, and export evidence-ready records.

It is designed for speed and stability rather than maximizing the number of search boxes. Web of Science and Scopus are the primary entitlement-backed sources; OpenAlex and Crossref provide fast discovery, metadata, abstracts, open-access links, and fallback coverage. IEEE Xplore is available as an opt-in source for IEEE journals, conferences, standards, and books.

Core Workflow

  1. Research brief: resolve a seed paper by DOI, WoS UID, Scopus EID, OpenAlex ID, or exact title. Capture the user's research intent, metrics, scope, and exclusions.

  2. Discovery: run a deduplicated multi-source search in quick, balanced, or deep mode.

  3. Screening: split abstracts into batches and delegate semantic screening to subagents. Record include/exclude/maybe decisions with reasons.

  4. Evidence: hydrate selected records, follow references and citing papers, and keep per-source provenance.

  5. Export: write Markdown (synthesis report & evidence cards), JSON (with screening ledger), BibTeX, or RIS. Supports filtering by screening verdict (e.g., verdict="include"). Full-text acquisition and parsing remain a separate companion workflow.

Related MCP server: paper-search

MCP Tools

Tool

Purpose

create_research_brief

Resolve a seed paper and build a reusable research context

search_literature

Unified WoS/Scopus/OpenAlex/Crossref/IEEE search with deduplication

search_ieee

Direct IEEE Xplore metadata and abstract search

get_literature_records

Hydrate stored records without repeating discovery; fetchReferences=true optionally fills references

expand_citation_graph

One-hop references, citing papers, or related works

save_screening

Persist subagent screening decisions and reasons

resolve_fulltext_access

Resolve optimal full-text PDF acquisition routes (direct OA, Elsevier API, IEEE, WebVPN)

generate_reading_cards

Generate structured deep-reading evidence cards and MinerU companion prompts

export_literature

Export Markdown, JSON, BibTeX, or RIS; supports verdict filtering

get_source_status

Inspect source configuration, product tier, quotas, and sessions

The original per-platform tools remain available for targeted lookups, PDF access, and legacy workflows.

search_ieee performs a direct IEEE Xplore metadata/abstract search. IEEE is also accepted as an explicit source in search_literature; it is not part of the default quick, balanced, or deep source sets.

Native Full-Text Acquisition

PDF acquisition is ported from scansci-pdf into TypeScript and requires no external scansci-pdf or mineru CLI. Resolution order:

  1. Record-provided PDF URL or input URL

  2. arXiv

  3. Unpaywall

  4. OpenAlex

  5. Semantic Scholar

  6. Europe PMC / PMC

  7. Crossref PDF links

  8. Elsevier API (ELSEVIER_API_KEY)

  9. Deterministic routes for 22 publishers (Elsevier, Springer Nature, Wiley, IEEE, MDPI, PLOS, Frontiers, Copernicus, ACS, RSC, IOP, AIP, APS, Oxford, SAGE, Taylor & Francis, Science, PNAS, Optica, ACM, and others)

  10. Optional WebVPN / CARSI

  11. PDF links discovered on the landing page

MINERU_TOKEN enables MinerU Cloud parsing; without it, the bundled pdf-parse extractor is used. OA_EMAIL is used for polite-pool requests. Institutional access is configured with TWOSCI_WEBVPN_* and TWOSCI_CARSI_*; an existing scansci config can be imported read-only via TWOSCI_SCANSCI_CONFIG.

The plugin does not bundle Chromium and does not integrate Sci-Hub. Cloudflare/Akamai challenges and interactive SSO cannot be replicated over plain HTTP; those cases fail with an explicit reason.

Browser Fallback: Patchright + Local Chrome/Edge

Patchright is launched only after the HTTP/API/publisher routes fail. It patches the usual Playwright automation leaks and drives the locally installed Google Chrome (channel=chrome), falling back to Edge; Chromium is not bundled.

  • TWOSCI_BROWSER_HEADLESS=auto: try headless first, then relaunch headed when a challenge persists (MDPI returns 403 headless and loads headed).

  • A persistent profile (~/.twosci/browser-profile by default) keeps challenge cookies across downloads.

  • Resource controls: image/font/media blocking, one shared browser, serialized pages, and idle shutdown after five minutes.

  • The browser resolves landing pages, challenges, and PDF links/responses; PDF bytes still prefer CDN/API/HTTP routes.

  • TWOSCI_BROWSER_TURNSTILE_CLICK=true attempts the Turnstile checkbox; Turnstile is not guaranteed.

  • Automatic SSO login is not implemented. CAS/institution pages return auth_required; run once with TWOSCI_BROWSER_HEADLESS=false to log in and reuse the persistent profile.

If Chrome/Edge is missing, run npx patchright install chromium from the plugin directory to install Patchright's Chromium build (~150 MB).

Result Layers

search_literature separates response detail from upstream quota:

  • metadata: title, authors, year, venue, DOI, source IDs.

  • abstract: adds abstract, keywords, and per-source citation counts.

  • evidence: adds references, open-access links, and all identifiers.

For an Expanded WoS search, TwoSCI fetches the full record once and keeps it in the session. layer only controls how much is returned to the model; it does not trigger a second WoS lookup.

Search Modes

Mode

Results per source

Typical use

quick

10

Scope a topic and test query terms

balanced

25

Default formal screening pass

deep

50

After the query has converged

Web of Science Behavior

If WOS_EXPANDED_API_KEY is configured:

  • Discovery, detail, and citation lookups default to Expanded.

  • Expanded records default to Full Record, so abstracts are available without a second quota-consuming request.

  • Citation expansion uses /references, /citing, and /related.

If only WOS_API_KEY is configured, TwoSCI falls back to Starter v2 and warns that abstracts and citation relations are limited. Starter trials are not sufficient for a practical abstract-screening workflow; institutional WoS access or Expanded is recommended.

IEEE Xplore Behavior

Configure IEEE_XPLORE_API_KEY to enable IEEE Xplore. The integration uses the official Metadata API with the key passed as the apikey query parameter.

  • One request returns up to 200 records.

  • Search results include abstracts, author keywords, IEEE terms, citation counts, open-access status, and IEEE article numbers.

  • IEEE metadata may include records outside your institution's subscription; this does not grant full-text access.

  • IEEE has no references or citing-paper graph in this integration. Use WoS Expanded or OpenAlex for citation expansion.

  • IEEE_XPLORE_RPS controls the local request rate. Keep it at or below the rate limit shown during IEEE registration; the default is 1 request/second.

After applying, IEEE reviews the application and issues keys during US Eastern business hours on weekdays. An unapproved key returns ERR_403_DEVELOPER_INACTIVE.

Installation

Codex

From a local checkout:

codex plugin marketplace add F:\path\to\TwoSCI
codex plugin add twosci@twosci-marketplace

From GitHub:

codex plugin marketplace add zzhzkx/TwoSCI
codex plugin add twosci@twosci-marketplace

Claude Code

/plugin marketplace add zzhzkx/TwoSCI
/plugin install twosci@twosci-marketplace

Build from Source

npm ci
npm run build:plugin

npm run build:plugin creates plugin/, a clean bundle containing the MCP server, the skill, and Codex/Claude manifests. The development repository and its node_modules are not copied into the plugin.

Configuration

Create .env from .env.example, or configure the same variables in the host application. Never commit real credentials.

WOS_EXPANDED_API_KEY=
WOS_API_KEY=
ELSEVIER_API_KEY=
SCOPUS_SEARCH_API_KEY=
IEEE_XPLORE_API_KEY=
IEEE_XPLORE_RPS=1
OPENALEX_EMAIL=
CROSSREF_MAILTO=
  • WOS_EXPANDED_API_KEY: preferred WoS product.

  • WOS_API_KEY: Starter fallback.

  • ELSEVIER_API_KEY: Scopus detail/abstract entitlement.

  • SCOPUS_SEARCH_API_KEY: optional dedicated Scopus Search key.

  • IEEE_XPLORE_API_KEY: IEEE Xplore Metadata API key.

  • IEEE_XPLORE_RPS: local IEEE request rate; default 1.

  • OPENALEX_EMAIL: polite-pool contact email.

  • CROSSREF_MAILTO: Crossref polite-pool contact email.

Example: Seed Paper

User input:

This is my baseline paper: DOI 10.xxxx/xxxx. Use it to find background, indicators, and policy evaluation studies in this field.

Agent flow:

  1. Call create_research_brief with the DOI and the user's intent.

  2. Review the returned seed abstract, keywords, references, citing sample, and frequent terms.

  3. Compose two to four explicit queries; do not silently rewrite the research scope.

  4. Call search_literature with the returned brief_id.

  5. Screen abstracts in subagent batches and call save_screening.

  6. Call get_literature_records for selected record_ids.

  7. Call expand_citation_graph for the seed and key included papers.

  8. Export the final set with export_literature (format="markdown" or format="json", optionally verdict="include").

The bundled skills/literature-search skill defines the subagent batching protocol and the full evidence workflow.

Data and Compliance

  • WoS/Scopus/IEEE full records are held in memory for the current research session.

  • No background disk cache is written for WoS/Scopus/IEEE content.

  • User-initiated BibTeX/RIS/JSON export is the intended retention path.

  • Citation counts are kept per source and are not summed across databases.

  • OpenAlex/Crossref may use short-lived in-process caches.

  • Google Scholar scraping and Sci-Hub are not part of the default workflow.

Development

npm ci
npm run build
npm run lint
npm test -- --runInBand
npm run build:plugin

License

MIT. See LICENSE.

Available Tools

34 tools
check_scihub_mirrorsC

Check the health status of all Sci-Hub mirror sites

Inputs: forceCheck.

create_research_briefA

Create a research brief from a seed paper plus the user intent. Resolves the seed with WoS Expanded (when configured), Scopus, OpenAlex, and Crossref; returns its abstract, keywords, references, citing sample, and a brief_id for later searches.

Inputs: seed (required), intent (required), focus, scope, +1 more.

discover_paper_accessA

Discover a public publisher PDF candidate for one DOI without claiming open-license or complete download success

Inputs: doi (required), verifyPdf.

download_paperC

Download PDF file of an academic paper

Inputs: paperId (required), platform (required), savePath.

download_public_paperC

Download a public paper from Publisher, Google Scholar, or Sci-Hub using bounded page fallback and local PDF validation

Inputs: paperId (required), platform (required), savePath.

expand_citation_graphA

Expand one hop from seed papers through references, citing papers, or related records. Uses WoS Expanded first when the seed has a WoS UID, then OpenAlex, then Crossref. Returns graph nodes, typed edges, and a search_id for export or hydration.

Inputs: seeds (required), searchId, directions, recordView, +1 more.

export_literatureA

Export literature records to Markdown, JSON, BibTeX, or RIS. Supports filtering by screening verdict (include, maybe, exclude). Markdown produces a structured evidence synthesis report with summary table and cards; JSON includes complete screening ledgers and multi-source provenance.

Inputs: format (required), briefId, verdict, searchId, +2 more.

generate_reading_cardsA

Generate structured deep-reading evidence cards and extraction prompts tailored for MinerU PDF-to-Markdown full-text outputs. Extracts problem statement, algorithmic formulation, quantitative benchmark metrics, experimental setup, and limitations.

Inputs: briefId, verdict, searchId, recordIds.

get_citationsA

Retrieve citation data (citation count, references, venue) for a paper by DOI using Semantic Scholar

Inputs: doi (required), forceRefresh.

get_literature_recordsA

Hydrate stored search results by record_id, or resolve DOIs, without re-running discovery. By default returns the full abstract and references already held in the session. Set refresh=true only when fresh provider metadata is required.

Inputs: dois, refresh, searchId, recordIds, +3 more.

get_paper_by_doiB

Retrieve paper information using DOI from available platforms

Inputs: doi (required), platform.

get_paper_markdownB

Explicitly retrieve bounded, untrusted ScrapingAnt Markdown for a Publisher, Scholar, or Sci-Hub paper reference

Inputs: paperId (required), platform (required).

get_platform_statusC

Check the status and capabilities of available academic platforms

Inputs: validate.

get_source_statusB

Report configured sources, WoS default product, quota/rate status, OpenAlex/Crossref cache state, IEEE rate status, and in-memory brief/search session counts. Set validate=true only when an actual key validation request is acceptable.

Inputs: validate.

resolve_fulltext_accessB

Resolve optimal full-text PDF acquisition routes for screened literature (scansci-inspired tiered routing: direct OA/CDN, Elsevier API fast lane, IEEE Xplore, Springer TDM, or institutional WebVPN). Defaults to verdict=include.

Inputs: briefId, verdict, searchId, recordIds.

save_screeningB

Persist include/exclude/maybe decisions and reasons from abstract-screening subagents. The decision ledger is attached to the search_id and can be exported or reviewed later.

Inputs: searchId (required), decisions (required), notes.

search_arxivC

Search academic papers specifically from arXiv preprint server

Inputs: query (required), year, author, sortBy, +3 more.

search_biorxivB

Search bioRxiv preprint server for biology papers

Inputs: query (required), days, category, maxResults.

search_crossrefC

Search academic papers from Crossref database. Free API with extensive scholarly metadata coverage across publishers.

Inputs: query (required), year, author, sortBy, +2 more.

search_google_scholarC

Search Google Scholar for academic papers using web scraping

Inputs: query (required), author, yearLow, yearHigh, +1 more.

search_iacrC

Search IACR ePrint Archive for cryptography papers

Inputs: query (required), maxResults, fetchDetails.

search_ieeeA

Search IEEE Xplore metadata and abstracts (requires IEEE_XPLORE_API_KEY). One request returns up to 200 records; results may include metadata outside the caller's institutional subscription.

Inputs: query (required), year, author, journal, +3 more.

search_literatureA

Unified deduplicated literature search across WoS (Expanded by default when configured), Scopus, OpenAlex, Crossref, and IEEE Xplore (opt-in source). Returns candidates with source provenance and a search_id. Use layer=metadata for cheap triage, abstract for screening, evidence for deeper evidence packets. Screening should be delegated to subagents in batches.

Inputs: query (required), mode, year, layer, +10 more.

search_medrxivC

Search medRxiv preprint server for medical papers

Inputs: query (required), days, category, maxResults.

search_openalexC

Search OpenAlex for fast free discovery and one-hop citation enrichment

Inputs: query (required), year, sortBy, sortOrder, +2 more.

search_papersC

Search academic papers from multiple sources including arXiv, Web of Science, etc.

Inputs: query (required), days, year, author, +8 more.

search_pubmedC

Search biomedical literature from PubMed/MEDLINE database using NCBI E-utilities API

Inputs: query (required), year, author, sortBy, +3 more.

search_sciencedirectC

Search academic papers from Elsevier ScienceDirect database (requires API key)

Inputs: query (required), year, author, journal, +2 more.

search_scihubA

Controlled, opt-in Sci-Hub DOI adapter (disabled by default); accepts DOI/doi.org URLs only, tries direct mirrors before bounded ScrapingAnt fallback, and does not grant access rights.

Inputs: doiOrUrl (required), savePath, downloadPdf.

search_scopusB

Search the Scopus abstract and citation database (requires Elsevier API key). COMPLETE view returns abstracts and is paginated.

Inputs: query (required), year, author, journal, +5 more.

search_semantic_scholarC

Search Semantic Scholar for academic papers with citation data

Inputs: query (required), year, maxResults, fieldsOfStudy.

search_springerA

Search academic papers from Springer Nature database. Uses Metadata API by default (all content) or OpenAccess API when openAccess=true (full text available). Same API key works for both.

Inputs: query (required), type, year, author, +4 more.

search_webofscienceB

Search Web of Science. Defaults to Expanded when its key is configured, otherwise Starter; explicitly selecting a product is optional.

Inputs: query (required), year, author, sortBy, +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 34 tools

    Disambiguation2/5

    Source-specific search tools are mostly distinguishable by database, but unified tools like search_papers and search_literature overlap heavily with the many search_* tools. Full-text acquisition is split across discover_paper_access, resolve_fulltext_access, download_paper, download_public_paper, get_paper_markdown, and search_scihub with subtle boundaries that are easy to misselect.

    Naming Consistency5/5

    All tool names use snake_case and begin with clear action verbs such as search_, get_, download_, export_, save_, and resolve_. The pattern is predictable throughout despite some longer names.

    Tool Count2/5

    At 34 tools, the surface is heavy for an academic literature workflow and includes many source-specific and access/download variants that duplicate functionality covered by unified tools. This exceeds a well-scoped set and increases selection burden.

    Completeness4/5

    The server covers the literature lifecycle well: discovery, deduplication, citation expansion, hydration, screening, export, full-text access/download, and reading-card generation. Minor gaps exist around reviewing or managing screening ledgers, but core workflows are covered.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables discovery and analysis of research ecosystems by extracting metadata from paper URLs, GitHub repositories, and research names. Automatically finds related papers, code repositories, models, datasets, and authors across platforms like arXiv, HuggingFace, and GitHub.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching, downloading, and exporting academic papers from 20+ scholarly sources including arXiv, PubMed, and Semantic Scholar. Supports multi-source concurrent search, citation network tracing, and export to CSV, RIS, and BibTeX.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables keyless, read-only literature research by searching OpenAlex, Crossref, Europe PMC, PubMed and arXiv at once, merging and ranking results, following citations, retrieving open-access full text, looking up clinical trials, verifying citations, and exporting BibTeX, RIS or CSL-JSON without any accounts or API keys.
      10
      2
      MIT