v0.11.0 JATS kernel now in-house — zero converter deps

Research the web
at machine speed.

A hybrid LLM web researcher: a Rust parsing core for everything deterministic, Oxide extractors for documents, and a Python orchestration layer for caching, budgets, and multi-provider search.

# scholarly paper, JATS-first: publisher full text when resolvable
$ gossamer extract 10.1371/journal.pone.0306040 --tables-as markdown
✓ jats_source=europepmc · 2 formulas · 7 figures · GFM tables · math intact
# …or the same twelve tools from MCP, with identical params
$ gossamer research "EZB Leitzins" --category financial
11,366tests passing
40domain adapters
12MCP tools, CLI 1:1
13metadata formats
Why gossamer

Deterministic where it counts,
flexible where it matters.

Parsing, guards, budgets, and citations run in Rust — byte-identical every time. Search strategy, caching, and routing stay in Python, where iteration is cheap.

⚡

Rust parsing core

Response parsers, HTML metadata, SSRF/robots, budgets, citations, and scoring in _core (PyO3) — with differential parity tests against Python oracles.

📄

Documents, all of them

PDF, DOCX, XLSX, PPTX plus legacy DOC/XLS/PPT/XLSB, feeds, and office formats — tables as markdown, figures on demand with store=True.

🔬

JATS-first scholarship

DOI-resolvable papers take publisher full-text XML first (EuropePMC / PMC OA / PLOS) through the in-house kernel — fused math, \tag{} displays, real GFM tables.

🕸️

Bounded smart crawl

Relevance-ranked BFS with BM25 idfs, thesaurus expansion, and anchor context. Documents collected, never fetched blindly.

📚

Citations for free

BibTeX, CSL-JSON, APA, and MLA straight from search results — deduped, no extra network calls.

🛡️

Production posture

TTL + size-cap caching, per-domain rate limits, robots/SSRF compliance, retries, and an optional JailGuard injection detector.

Under the hood

Python decides.
Rust parses.

One toolbox facade, one tool registry, JSON strings across the boundary. Twelve MCP tools, the CLI, and execute_tool are the same surface, param-for-param.

LLM Agent / YouMCP · CLI · skill
→
WebResearcherToolboxfacade, no logic
→
CollaboratorsHTTP · keys · limits · 40 adapters
→
_core (Rust)parsers · metadata · guards

Same surface everywhere: web_search · inspect_html_page · extract_document · crawl · research_by_category · …

Coverage

40 adapters, keyless-first.

Keyed providers fail fast and name the exact variable — surface it, don't retry. Euro terms (Leitzins, BVerfG, HICP) route automatically.

openalex ★crossrefarxivzenodosemanticscholarhuggingfacehuggingface-papers

Explicit multi-search merges by DOI/arXiv ID and never fans out by default. ★ = default.

🔑 epo🔑 kipris🔑 patentsview🔑 lensgoogle-patents

Google Patents number lookup is keyless; Lens aggregates WO/EP/DE/CN/US (trial: non-commercial/academic).

yahoofrankfurtereurostatbundesbankbiscoingecko🔑 alphavantage

Bundesbank and BIS speak SDMX-ML through the in-core XML kernel.

open-meteooverpass

Weather and OpenStreetMap, no keys, no fuss.

duckduckgo ★🔑 google🔑 bing🔑 exa

Google/Bing/Exa opt in via search_providers=, with failover or merged results.

Quick start

Running in five minutes.

Rust 1.82+, Python 3.10+, maturin. Hermetic tests by default — no network, no models.

# clone, install deps, build the Rust core
git clone https://github.com/opticsWolf/gossamer && cd gossamer
pip install -r requirements.txt
maturin develop --release
# optional extras: browser rendering, MCP server, injection guard
pip install -e ".[browser,mcp,guard]"
from gossamer import ToolboxConfig, WebResearcherToolbox

tools = WebResearcherToolbox(ToolboxConfig(cache_dir="./cache"))
results = tools.web_search("latest AI research papers", max_results=5, search_only=True)
paper = tools.extract_document("10.1371/journal.pone.0306040") # JATS-first
cited = tools.export_citations(results, style="bibtex")
# *_async offloads the blocking core to a thread pool —
# the event loop stays responsive, I/O stays synchronous.
results = await tools.search_web_async("rust programming")
Spotlight · v0.11.0

Scholarship deserves real math.

Publisher full text before the PDF.

DOI-resolvable sources take the JATS XML route — EuropePMC, PMC OA, PLOS — converted by an in-house Rust kernel ported from battle-tested converter code. No extra dependency, no models, no OCR guesswork.

  • Fused inline math $…$, display blocks $$\tag{N}$$
  • Real JATS tables as GFM pipes, figures as remote hrefs
  • 2 / 7 / 2 census pinned by fixture + parity tests
  • pages= with a JATS source errors loudly — sections, not pages
## Methods
Sulfonamide group (SO$_{2}$NH) and display:

$$x^{2} + y^{2} \tag{Eq 1}$$

![Fig 1: Schematic representation](…g001)
| col1 | col2 | → real GFM tables
Harness integration

Same server, every agent.

One stdio server (python -m gossamer.mcp_server), keys in the keystore — never in client configs. Shallowest first: CLI → MCP → bundled skill.

◈ pi mcp.json

{ "mcpServers": { "gossamer": {
  "command": ".../.venv/Scripts/python.exe",
  "args": ["-m", "gossamer.mcp_server"],
  "directTools": true } } }

◈ Codex config.toml

[mcp_servers.gossamer]
command = ".../python.exe"
args = ["-m", "gossamer.mcp_server"]
startup_timeout_sec = 30

◈ Skill bundled

gossamer skills list|show|install
# ships in the wheel + skills://gossamer
gossamer extract DOI   # JATS-first
gossamer cite DOI
Go deeper

The manual, in layers.