Skip to main content

MCP server for reproducible, grounded, citation-verified research — sub-task pipelines, provenance sidecars, publication-grade visualisation, grounded reasoning, and self-tested dashboards.

Project description

Research OS — grounded · cited · auditable

Research OS

PyPI Python MIT tests

Talk to your AI in plain English. Get publication-grade research back.
No hallucinated citations. No fabricated numbers. Every figure traceable to the script that made it.

Quick start · What you can ask for · Worked examples · Full guide · FAQ


30-second version

pip install research-os
mkdir thesis-chapter-3 && cd thesis-chapter-3
research-os init                  # arrow-key wizard, ~20 seconds

Open the folder in Claude Code (or Cursor, or any MCP-capable AI IDE) and talk:

You: I have a CSV of 2,400 patients at ~/data/cohort.csv. I want to know whether the new drug lowers 30-day readmission, controlling for age and comorbidity. Hypothesis: it does, and the effect is bigger for older patients.

AI: Captures your question, domain, and both hypotheses; profiles the CSV; proposes a baseline EDA + a logistic regression with an age interaction; asks you to confirm before running anything.

From there: run the baseline EDAfit the modeldraft the results sectionis this ready to submit?. Every figure lands with a caption and the script that made it; every citation is verified; every number in the draft traces back to a real file on disk.

That's the whole idea. The rest of this page explains why it matters.


The problem it solves

AI coding assistants are fast, and they will cheerfully lie to you. Not maliciously — they pattern-match. Ask for a literature review and you'll get plausible citations to papers that don't exist. Ask for a results section and you'll get confident p-values that were never computed. Ask a follow-up next week and last week's decisions are gone.

For throwaway code, fine. For research that ends up in a thesis, a grant, or a paper, those failures are career-damaging — and they're invisible until a reviewer (or a retraction) finds them.

Research OS is an MCP server that sits between your AI and your project and refuses to let those four things happen:

The failure mode What Research OS does instead
Invented citations Every reference is checked against Crossref / Semantic Scholar / PubMed / arXiv before it lands in a draft. Can't verify it? It's dropped, not quietly kept.
Invented numbers Every quantitative claim in your write-up must point at a real file in workspace/. If a number isn't grounded in an artifact, synthesis blocks.
400-line unreviewable scripts Work is split into small, content-hash-cached steps. Change one input; only the affected parts re-run. You can actually read what ran.
Lost context Decisions, hypotheses, dead-ends, and draft revisions are written down as you go. Tomorrow's chat resumes exactly where today's ended.

It works with the AI tools you already use — Claude Code, Cursor, Claude Desktop, Antigravity, VS Code, Windsurf, OpenCode, Continue, Aider. One install, one wizard, and the assistant you already trust starts producing work that's honest enough to publish.


What working with it actually feels like

No commands to memorize, no DSL to learn. You describe what you want; the AI loads the right protocol and walks it.

Starting — you don't even need to touch a file:

"Here's my project: does sleep duration predict exam scores in this dataset? Data's at ~/study/students.csv. I think more sleep helps, more so for younger students."

The AI records your question + hypotheses, profiles the data, surfaces relevant prior work, and asks you to confirm before any analysis starts. (Prefer to drop files in inputs/ first? That works too — same result.)

Doing the work:

"run a baseline EDA"

You get workspace/01_baseline_eda/ — readable scripts, figures with real captions, tables, and a written conclusion that links back to your hypotheses. Numbered, cached, re-runnable.

"compare logistic regression against gradient boosting"

A real head-to-head: same split, same metrics, paired significance test, and a stated winner — not a hand-wavy "both have tradeoffs."

Writing it up:

"draft the discussion"

A discussion that cites your results. Every citation verified, every figure and number traceable.

"make me a poster for the lab meeting Thursday"

The AI authors synthesis/poster.typ directly and compiles it to PDF — no rigid template, custom-designed for your content, validated before it ships.

Shipping it:

"is this ready to submit?"

A GREEN / YELLOW / RED verdict with a punch list — every check a journal will run, before they run it.

"going to lunch, pick up tomorrow"

State, plan, hypotheses, dead-ends, and drafts all persist. Tomorrow's session opens exactly where you left off.

→ Full catalogue of what to say: USE_CASES.md · Seven complete worked projects (messy CSV → published paper, with the exact prompts): SCENARIOS.md


Three ways to work (set once, at init)

The wizard's first question — "What are you building?" — picks a workspace mode that reshapes the scaffold and how the AI behaves:

  • analysis (default) — data → results → paper. Numbered experiment steps; "done" means grounded figures + conclusions.
  • tool_build — you're building software (a CLI, a library, a pipeline). Research OS governs the build from above (spec → implement → test → benchmark) while the tool lives in its own git repo; "done" means tests + build + eval pass, not figures. → docs/TOOL_BUILDER.md
  • exploration — scratch-first. Poke at the data with light gates; promote a probe to a real step only when it earns it.

Three more modes cover bigger shapes — hybrid (build a tool and use it on data in one project), notebook (Jupyter is the unit of work), and multi_study (a program of sub-studies sharing a codebook). Set the mode at init (research-os init --workspace-mode <mode>) or change it later in inputs/researcher_config.yaml.


What you actually see on disk

A clean three-folder workspace. You only ever touch one of them.

thesis-chapter-3/
│
├── inputs/                 ← YOU own this (the AI reads, never overwrites)
│   ├── raw_data/             your data — CSV, Parquet, FASTQ, NIfTI, …
│   ├── literature/           PDFs of papers the project draws on
│   ├── context/              PI emails, lab notes, prior drafts
│   └── researcher_config.yaml  one optional file that tunes AI behavior
│
├── workspace/              ← the AI works here (you read; it writes)
│   ├── 01_baseline_eda/      one analysis step per numbered folder
│   │   ├── scripts/            code you can read + re-run
│   │   ├── outputs/            figures (with captions), tables, reports
│   │   └── conclusions.md      findings + interpretation, tied to hypotheses
│   ├── methods.md            project-wide methods narrative (append-only)
│   ├── analysis.md           decision log + dead-ends + rationale
│   ├── citations.md          verified citations only
│   └── logs/                 every audit pass + every gate override
│
└── synthesis/              ← deliverables land here (only when you ask)
    ├── paper.typ → paper.pdf       AI-authored, compiled for you
    ├── poster.typ → poster.pdf
    ├── slides.typ → slides.pdf
    ├── dashboard.html              single-file, offline, accessible
    └── figures/                    curated focal figures + captions

One principle holds it together: you own inputs/, the AI owns the rest, and nothing exists until you ask for it. A fresh project isn't pre-cluttered with empty folders — workspace/01_* appears the first time you run a step.

→ Deeper tour: RESEARCHER_GUIDE.md · Exact layout per mode: PROJECT_LAYOUT.md


Install & run

# 1. Install once — the same binary serves every project you scaffold.
pip install research-os

# 2. Scaffold a project (arrow-key wizard).
mkdir my-project && cd my-project
research-os init

# 3. (Optional) confirm everything's healthy.
research-os doctor

# 4. Open the folder in your AI IDE and talk. The MCP server auto-launches.
#    > here's my project: I want to know if X drives Y; data's at <path>
#    > what should I do next?
#    > draft the results section
#    > is this ready to submit?

The full experience ships in the base install — no extras to remember. A handful of features that need their own system runtime (the enforcement daemon, R, Julia) are opt-in; see SETUP.md.

Prefer to let your AI set it up? Paste this (fill in the blanks)

If you'd rather not run the wizard yourself, give your AI assistant the prompt below. It's written so the AI wires up only your IDE (not all of them), sets up the MCP server + daemon, and reminds you to restart — the one step people miss. Fill in the three blanks and paste it into your AI IDE / agent, opened in the folder you want the project in:

Set up a Research OS project in this folder for me. Do NOT install integrations
for editors I don't use.

  • My AI IDE / agent:        ______   (e.g. Claude Code, Cursor, VS Code,
                                       Windsurf, OpenCode, Aider — pick ONE)
  • My research question:     ______
  • My data / inputs are at:  ______   (a path, a URL, or "none yet")

Do exactly this, in order:
  1. Run:  research-os init --ide <my IDE from above> --question "<my question>"
     (if research-os isn't installed yet: pip install research-os, then run it).
     Use ONLY my IDE for --ide — never "all".
  2. If I gave a data path, bring it into inputs/raw_data/ (copy if small/portable,
     symlink if large/shared) and record where it came from.
  3. Set up the MCP server for my IDE and, if I want durable long runs, the
     enforcement daemon (research-os daemon start). Tell me which you wired.
  4. Then STOP and tell me to RESTART my AI session in this project — the MCP
     server only loads on a fresh session. Don't continue until I've restarted.

After I restart, confirm you can see the Research OS tools and tell me the first
step toward my question.

Why the restart matters: an IDE/agent loads its MCP servers when the session starts, so the Research OS tools only appear after you reopen the project. Pointing your AI at Research OS without this almost always ends with it improvising instead of using the real tools.

→ Full walkthrough: START.md · Per-IDE wiring: SETUP.md · CLI reference: CLI.md


Two layers, and why they matter

1. The reasoning core (always on). The MCP server every command above talks to. Three tool namespaces — sys_* (workspace / files / state), tool_* (research work), mem_* (append-only memory) — plus ~146 protocols the AI routes to via tool_route. The core is reactive: it runs in your IDE, responds to each prompt, and never blocks. Most projects need nothing more.

2. The enforcement daemon (optional). For big or long-lived projects, a local daemon adds what a reactive server can't:

  • Background runs with a durable journal, provenance, and lineage — long jobs don't freeze the chat.
  • Freshness gates — it won't let the AI ship a result built on data that changed underneath it.
  • Hard, human-approved gates — the AI can't self-approve past a real checkpoint.
  • A resource budget the machine actually enforces, and completion notifications.

The core behaves identically with or without the daemon — it only ever adds enforcement, never changes the tools. → DAEMON.md · ARCHITECTURE.md


Pair it with a self-improving agent layer

Research OS is the rigor substrate. The AI on top is the brain. If that AI layer can learn your project and carry skills across sessions — like Hermes Agent — the pairing compounds: protocols govern how to reason and what to verify, while the agent's skills carry the domain how-to and improve over time. It works with any AI; Hermes is just the closest fit.

research-os hermes add     # wire Research OS into Hermes, then ask:
                           # "set up my AI for this project"

→ The guidance/agent_setup protocol walks the whole setup. Works with Claude Code, Cursor, a bare API, or Hermes.


Why trust the output

The worry The guarantee
AI invented a citation Verified against four databases; unverifiable ones dropped.
AI invented a number Every claim traces to a real workspace/ file or synthesis blocks.
Script too big to review Atomic, content-hash-cached sub-steps; edit one, re-run only what's affected.
Context lost between sessions Decisions / hypotheses / dead-ends / drafts persist on disk.
Figure drifts from its caption Each figure ships with caption + plain-English summary + provenance sidecar (script, seed, library versions).
Pre-registered plan silently changed The analysis plan is content-hashed; every deviation surfaces at synthesis.
Negative results vanish First-class workflow for refuted / underpowered / abandoned findings.
Pre-submission anxiety A final check runs every gate a journal will — verdict + punch list.

→ Full release history: CHANGELOG.md


Documentation

If you're… Read this
New here docs/START.md — install + first project in ~15 min
Looking for an example docs/SCENARIOS.md — seven complete worked projects · docs/USE_CASES.md — what to say for what you want
Going deep docs/RESEARCHER_GUIDE.md — the full workflow guide
Wiring an IDE docs/SETUP.md — Claude Code, Cursor, VS Code, etc.
Stuck docs/FAQ.md — common questions
Building a tool, not analysing data docs/TOOL_BUILDER.md — tool_build mode end to end
Curious about a protocol docs/PROTOCOLS.md — every workflow with triggers + quality bars
Looking up a tool docs/TOOLS.md — every MCP tool with examples
Understanding how it's built docs/ARCHITECTURE.md — the core, the daemon, the seam between them
Running long / enforced jobs docs/DAEMON.md — the optional enforcement daemon
Sharing a finished project docs/SHARING.md — share-safe zip + GitHub paths
Contributing a protocol docs/PROTOCOL_DOCTRINE.md — the scaffold-not-script principle
Driving the AI side docs/AI_GUIDE.md — what the AI itself reads

Doc index: docs/README.md


Tune how the AI behaves

One optional file — inputs/researcher_config.yaml — controls everything. Every field has a sensible default. The two that matter most:

interaction:
  quality_gate_policy: enforce          # enforce | allow_override | warn_only
  ambiguity_posture: ask_when_uncertain # vs take_best_default

You can change these mid-session just by telling the AI ("switch to autopilot", "stop asking, use your best judgment").

→ Full reference: RESEARCHER_GUIDE.md § config


Contributing

Issues and PRs welcome.


License

MIT · No telemetry · Research OS never touches your LLM provider keys (your AI IDE owns model access).

If you use Research OS in published work, citation metadata lives in CITATION.cff.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

research_os-4.0.3.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

research_os-4.0.3-py3-none-any.whl (8.2 MB view details)

Uploaded Python 3

File details

Details for the file research_os-4.0.3.tar.gz.

File metadata

  • Download URL: research_os-4.0.3.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for research_os-4.0.3.tar.gz
Algorithm Hash digest
SHA256 65999456a5057972e2903ab6b9d04c33db0c393c5c0163e7eda7e871c104abd6
MD5 57880ee6e27cff7aed73500b8b31cf67
BLAKE2b-256 81a310bb56d251045ccc0e7cee7f7c98ce6a058e50a579987a11a6e0456dde32

See more details on using hashes here.

Provenance

The following attestation bundles were made for research_os-4.0.3.tar.gz:

Publisher: publish.yml on VibhavSetlur/Research-OS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file research_os-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: research_os-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for research_os-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9da0940bccb2e390b2336cb942b76a375658807d24ef71aa982887d5a8ba789
MD5 86a3c7c09fa6f2e44119b061595d81a9
BLAKE2b-256 4f5953f9ca3742dc80d2b690ad997812202a4420f5bd1b325131b589857d6315

See more details on using hashes here.

Provenance

The following attestation bundles were made for research_os-4.0.3-py3-none-any.whl:

Publisher: publish.yml on VibhavSetlur/Research-OS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page