Skip to main content

MCP server that turns any Senior-Junior workflow into an autonomous loop with a human decision maker. Seamless integration with Cursor, Claude Code, Codex, and any MCP client.

Project description

Autonomous Lab

Website PyPI License

MCP server that turns any senior-junior workflow into an autonomous loop. AI handles the execution. You make the decisions.

Autonomous Lab

Vision

The bottleneck in knowledge work has never been execution. It is judgment -- knowing which questions matter, which results are meaningful, which directions to pursue. The people best equipped to make those calls spend most of their time on tasks that don't require their specific expertise.

Autonomous Lab shifts the hierarchy up by one level. AI agents assume the working roles -- principal investigator and trainee, tech lead and developer, attending and resident -- running the full design-execute-review loop. The human moves into the editorial position: the one who curates, judges, and steers. Your taste and judgment, rather than your labor, become the primary input.

This is not a copilot. It is a reorganization of the work unit itself.

Why this exists

Autonomous Lab is an MCP server. It runs inside the coding agent you already pay for -- Cursor, Claude Code, Windsurf, Codex CLI, or any MCP-compatible client. That means:

  • No API key required. You don't need an OpenAI/Anthropic/Google key. The intelligence comes from whichever model your coding tool already uses.
  • No extra cost. Your existing Cursor Pro, Claude Max, Windsurf, or Codex subscription is all you need. You are reusing an investment you have already made.
  • No new app to learn. It plugs into your current workflow as a set of MCP tools.

Install

The easiest way: copy this page link into Claude Code, Cursor, or any coding agent and ask it to install Autonomous Lab for you. It will handle everything.

Or do it manually:

# From PyPI
uv pip install autonomous-lab

# With optional biomedical toolkit (biomni)
uv pip install autonomous-lab[biotools]

Quick start

Add to your MCP client config (e.g. Cursor ~/.cursor/mcp.json):

{
  "mcpServers": {
    "autonomous-lab": {
      "command": "uvx",
      "args": ["autonomous-lab"],
      "timeout": 600,
      "env": {
        "MCP_WEB_PORT": "8766"
      }
    }
  }
}

Or if you installed via uv pip install:

{
  "mcpServers": {
    "autonomous-lab": {
      "command": "autonomous-lab",
      "timeout": 600,
      "env": {
        "MCP_WEB_PORT": "8766"
      }
    }
  }
}

Then tell your agent: "Initialize an autonomous lab project on [your topic]."

What it does

Two AI personas (senior + junior) iterate on your project in a loop. They design, execute, write, and revise. You sit above them as the decision maker: editor, code reviewer, creative director, or whatever the domain calls for.

The loop:

autolab_next → (AI acts as role) → autolab_record → lab_meeting → autolab_next → ...

When work is ready, you review it. Accept, request revisions, or reject. The loop continues until you're satisfied.

Key capabilities

  • Zero additional cost: runs on your existing coding agent subscription. No separate API keys, no usage-based billing, no new accounts.
  • Skill containers: configure characters with any combination of SKILL.md files you already have. A PI with scanpy + scientific-writing + statistical-analysis skills behaves differently from a Tech Lead with react + typescript + code-review skills.
  • 24-hour sessions: the loop runs indefinitely. No timeout, no context loss. Sessions persist across disconnects with autolab_resume.
  • Fully configurable: YAML character profiles control personality, expertise, goals, and available tools. Swap them in seconds.
  • Domain-agnostic: research, software, consulting, legal, medical, creative, or anything with a senior-junior structure.
  • Expert consultation: invite domain specialists mid-session for one-off advice without breaking the loop.
  • Verified citations: built-in CrossRef integration for real, validated references (no hallucinated papers).
  • Game-style monitoring UI: browser dashboard shows live progress, iteration history, and editorial controls.

MCP tools

Tool What it does
autolab_init Initialize a new project
autolab_resume Resume an interrupted session
autolab_next Get the next role prompt (PI or Trainee)
autolab_record Record a completed turn
autolab_status Check project state
autolab_cite Search, validate, and format citations
autolab_consult Invite a domain expert
autolab_editorial Wait for editor decision
autolab_editor_act Execute editorial decision (AI fallback)
autolab_create_character Build a character profile
lab_meeting Pause for user feedback between turns

Character example

name: Dr. Maria Chen
role: pi
title: Computational Biology PI
expertise: single-cell genomics, machine learning
goal: discover cell-type-specific regulatory programs
skills:
  - scanpy
  - scvi-tools
  - scientific-writing
  - statistical-analysis
personality:
  - "Visionary: spots novel research directions"
  - "Rigorous: demands statistical reproducibility"

Requirements

  • Python >= 3.11
  • An MCP-compatible client (Cursor, Claude Code, Codex CLI, Windsurf, etc.)

Acknowledgments

Autonomous Lab builds on these open-source projects:

  • The Virtual Lab by James Zou Lab, Stanford (MIT) -- the concept of LLM agents as PI and scientists iterating through structured research meetings (Swanson et al., Nature 2025)
  • mcp-feedback-enhanced by Minidoracat (MIT) -- Web UI, feedback loop, session management, and i18n infrastructure
  • interactive-feedback-mcp by Fábio Ferreira (MIT) -- the original MCP feedback server
  • biomni by Jure Leskovec Lab, Stanford (Apache 2.0) -- optional biomedical toolkit integration

License

Apache 2.0. See LICENSE and NOTICE.

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

autonomous_lab-0.5.2.tar.gz (496.4 kB view details)

Uploaded Source

Built Distribution

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

autonomous_lab-0.5.2-py3-none-any.whl (385.7 kB view details)

Uploaded Python 3

File details

Details for the file autonomous_lab-0.5.2.tar.gz.

File metadata

  • Download URL: autonomous_lab-0.5.2.tar.gz
  • Upload date:
  • Size: 496.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for autonomous_lab-0.5.2.tar.gz
Algorithm Hash digest
SHA256 1f2dda5b39a474e7c670b64c75909d40ca2fe7162c597c2cf633860ed2295f78
MD5 d3dd8ae739774aa517d34cd0725d7225
BLAKE2b-256 b4e1aa079a7336e1f21d4533c85cf1fea2d2c476de9d07b5625992b3501929fc

See more details on using hashes here.

File details

Details for the file autonomous_lab-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for autonomous_lab-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcaf289a4a0e60be3f19c310b4fd40c21604ee15ae786592991b9c426a0a9c4e
MD5 d2009039af41bb4870da03b0ca7ec1eb
BLAKE2b-256 cc12d31e0193e92f52412ad7ec74257f62878d02b0363a3efbb3182993008d14

See more details on using hashes here.

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