LabToolsThe Research Infrastructure
  • Features
  • Demo
  • Technology
  • Examples
  • Plans
  • White Paper
  • Data Analysis ↗
  • Calculators
  • Scheduler

Choose a language

  • English
  • 简体中文
  • Español
  • Français
  • Deutsch
  • Português (Brasil)
  • 日本語
  • हिन्दी
  • বাংলা
  • தமிழ்
  • తెలుగు
  • मराठी
Download
FeaturesDemoTechnologyExamplesPlansWhite PaperData Analysis ↗CalculatorsScheduler

Language

  • English
  • 简体中文
  • Español
  • Français
  • Deutsch
  • Português (Brasil)
  • 日本語
  • हिन्दी
  • বাংলা
  • தமிழ்
  • తెలుగు
  • मराठी
Agent interfaceMCP · CLI · JSON-RPC

LabTools for AI agents: MCP server, CLI and JSON-RPC

Yes, LabTools has an MCP server. The LabTools desktop app runs a JSON-RPC 2.0 server on your own computer, on 127.0.0.1 only, and every request needs a random token the app writes for your user account when it starts. The labtools command-line tool and the labtools-mcp MCP server sit on top of it, so Claude and other MCP clients can import data, run statistics, create plots and figures and manage studies in the app.

Both programs are installed with the free desktop app on Windows, macOS and Linux. Nothing is hosted: there is no remote API, and the interface works only while the app is running on your machine.

Download freeFeatures: automation and agents

On this page

  • How it works
  • What an agent can do
  • Worked examples
  • Safety
  • Connect Claude or another MCP client
  • Limits
  • Questions

How it works

Four layers, all on your computer. Each one talks only to the one above it.

  1. 1. LabTools desktop app
    Your studies, datasets, plots, files and notebook. Everything below acts on the app you have open.
  2. 2. Local JSON-RPC server
    Inside the app process, on 127.0.0.1 port 7878, loopback only. Each request carries the per-session token from runtime.json.
  3. 3. labtools CLI
    Verb-noun commands for scripts and terminals: labtools stats ttest, labtools plot create. Pretty tables in a terminal, JSON with --json.
  4. 4. labtools-mcp MCP server
    Turns every method into an MCP tool over stdio for Claude Desktop, Claude Code and other MCP clients.

In short

Claude / MCP client --stdio--> labtools-mcp --+
                                             +--> JSON-RPC on 127.0.0.1 (token) --> LabTools app
your script / terminal ------> labtools -----+

The CLI and the MCP server use the same methods, and both find the running app on their own. What they do shows up in the app as if you had done it.

What an agent can do

LabTools 1.3.1 lists over 500 methods (run labtools system methods --json for the full list with input schemas). The groups below cover 435 of them; method names are shown in their JSON-RPC form, and the MCP tool name uses underscores instead of dots (plot_create for plot.create).

Statistics (29 methods)

Welch, Student, paired and one-sample t-tests, Mann-Whitney and Wilcoxon (exact for small samples), Kruskal-Wallis, one-way, two-way, repeated-measures and Welch ANOVA, Tukey, Games-Howell and Dunn post hoc tests, Friedman, Cochran Q, McNemar, normality and variance checks, correlation, effect sizes with confidence intervals, outliers, p-value adjustment, power, chi-square and Fisher tables, meta-analysis and curve fitting (linear, polynomial, Michaelis-Menten, Hill, 4PL, 3PL and more). Statistics on numbers you pass in run without the app window open.

stats.describe, stats.ttest, stats.mannwhitney, stats.wilcoxon, stats.anova, stats.posthoc, stats.friedman, stats.contingency, stats.meta, stats.fit, stats.effectsize, stats.adjust

Datasets and spreadsheets (20 methods)

Import CSV and Excel files into Charts & Plots, list their columns and types, derive, relabel and join columns, and read or write cells, ranges and whole columns in the in-app spreadsheet.

dataset.import, dataset.columns, dataset.transform, spreadsheet.read_range, spreadsheet.write_column, spreadsheet.save

Plots (10 methods)

Create any chart type the app has, change it, export it as PNG, SVG or PDF, compose several plots into one multi-panel image and move plots into a study.

plot.list_kinds, plot.create, plot.update, plot.export, plot.compose, plot.move

Figures, posters, slides and reports (44 methods)

Build multi-panel figures with captions and annotations, posters and slide decks, and export them (a deck as PowerPoint).

figure.create, figure.panel.add, figure.export, poster.update, presentation.create, presentation.export, report.compose

Files and local folders (57 methods)

Your LabTools cloud files (list, upload, download, trash, versions, search inside files), files on this computer, and what is open on your screen, so you can watch the agent work.

file.list, file.upload, file.download, file.trash, file.versions, file.metadata.search, fs.read, fs.write, document.open

Studies, experiments and tasks (85 methods)

Create and update studies and their experiments, keep the activity log, take result snapshots, link results to experiments, start an experiment from a template, write a digest of recent work, and manage tasks and observations. (In the API a Study is experiment.* and an Experiment is project.*.)

experiment.list, experiment.create, experiment.log.append, experiment.snapshot.create, experiment.result.list, project.create, project.create_from_template, project.digest, task.create, observation.add

Notebook, protocols and inventory (38 methods)

Write and search notebook entries, keep protocol versions, log reagent use and restocks, and read saved buffer recipes.

notebook.entry.create, notebook.entry.append, notebook.search, protocol.update, protocol.version.create, inventory.use, buffer.describe

References, manuscripts and the Story (102 methods)

Add references by DOI or PMID, export BibTeX, RIS or CSL-JSON, format a bibliography, read and write manuscript sections, and read the Story of a study.

reference.add_by_identifier, reference.bibliography, reference.export, library.export, manuscript.section.read, manuscript.section.append, story.describe

Collaboration (26 methods)

Read a collaboration, its files, updates and chat, and invite collaborators. Anything that shows data to other people asks for your approval first (see Safety).

collaboration.list, collaboration.file.list, collaboration.update.list, collaboration.chat.send, collaborator.invite, team.list_mine

Code cells, lanes and system (21 methods)

Run cells in the Code tab, open hidden worker windows ("lanes") so several agents can work at once, list every method with its input schema, and check that the app and storage are up.

system.methods, system.health, system.agent_guide, code.run, code.result, lane.open

Gel images (3 methods)

Lane and band detection and molecular-weight calibration from a gel image, with the ladder presets the app uses.

analysis.gel.analyze, analysis.gel.detect_lanes, analysis.gel.ladder_presets

The CLI and the MCP server come with the desktop app. Install it, then connect Claude from Settings > Agent Interface.

Download LabTools free

Worked examples

Run a t-test from the command line

Pass two groups as JSON arrays. The default is Welch's t-test, and the answer carries the assumption checks and an effect size with its confidence interval.

Terminal

labtools stats ttest --a '[5.1,4.9,5.6,5.8,6.0,5.4]' --b '[6.2,6.8,6.5,7.1,6.4,6.9]' --json

Real output from LabTools 1.3.1 (excerpt, rounded)

"test": "welch",
"statistic": -5.386,  "df": 9.59,  "p_value": 0.000355,
"mean_difference": -1.183,
"ci_of_difference": { "conf_level": 0.95, "lower": -1.676, "upper": -0.691 },
"effect_size": { "name": "hedges_g", "estimate": -2.87, "magnitude": "very large" },
"assumptions": { Shapiro-Wilk per group: p = 0.91 and 0.87; Levene: p = 0.63 },
"notes": [ "Group 'a' has n = 6; normality screening has very low power at this size ..." ]

Statistics on numbers you pass in like this run without the app window (headless); the app still has to be running.

Import a CSV, plot it and export a PNG

The same steps as Recipe A in the agent guide: import the file, look at its columns, create a histogram and write the image to disk.

Terminal

labtools dataset import C:\data\peaks.csv
#   { id: "job_xxx:Sheet1", name: "peaks.csv", rows: 482, columns_count: 4 }
labtools dataset columns "job_xxx:Sheet1"
#   mz (number), intensity (number), scan (number), polarity (string)
labtools plot create --kind histogram --dataset "job_xxx:Sheet1" --columns '{"x":"intensity"}' --no-cloud
#   { id: "pin_yyy", kind: "histogram" }
labtools plot export pin_yyy --format png --path C:\out\intensity-histogram.png
#   { ok: true, path: "C:\\out\\intensity-histogram.png" }

The lines starting with # show the shape of each answer, as given in the agent guide's quickstart. The plot also appears in Charts & Plots in the app. Without --no-cloud it is saved to your LabTools cloud folder as a PNG and an editable .labt file. Datasets and plots use the app window, so they need the app open, not headless.

Chi-square and Fisher's exact test on a 2 x 2 table

A table can be passed directly. Both tests come back, with Cramer's V, residuals and the odds ratio.

Terminal

labtools stats contingency --table '[[12,5],[7,15]]' --json

Real output from LabTools 1.3.1 (excerpt, rounded)

"chi_square": { "statistic": 4.322, "df": 1, "yates_correction": true,
                "p_value": 0.0376, "cramers_v": 0.385, "min_expected": 8.28 },
"fisher":     { "method": "exact", "p_value": 0.0248,
                "sample_odds_ratio": 5.14, "odds_ratio_ci": [1.09, 25.8] }

The same test is available to an agent as the stats_contingency tool.

Ask Claude, and see which tool it calls

Once LabTools is connected, you ask in plain language and the assistant picks the tool. "List my LabTools experiments" calls experiment_list. A statistics question becomes a tool call like this one:

MCP tool call: stats_mannwhitney

{ "a": [1.2, 3.4], "b": [5.6, 7.8] }

Real output from LabTools 1.3.1 (excerpt)

"test": "Mann-Whitney U",  "method": "exact",
"interpretation": "No significant difference in distributions (U = 0.0, exact p = 0.3333)",
"notes": [ "Group 'a' has n = 2. Results below n = 3 are not interpretable.", ... ]

The answer goes back to the assistant as JSON it can read and explain. Small samples are flagged in the result rather than silently reported.

Safety

Local only

The server listens on 127.0.0.1 (loopback), so other computers on your network cannot reach it. There is no hosted endpoint.

A token for every session

Each time the app starts it creates a random 256-bit token and writes it, with the port, to runtime.json in the app data folder. Requests without it are refused. On Windows that file is locked to your user account.

Two MCP servers: one runs freely, one always asks

The MCP server is registered twice. labtools (started with --no-destructive) holds everything that reads, creates or updates your own data, and you can let it run without asking. labtools-destructive (started with --only-destructive) holds every method that deletes, removes, purges, revokes, unlinks, locks, overwrites or shuts down, and everything that shows data to other people (share, invite, publish, send, post, comment, link, attach), so it asks you first. In 1.3.1 that is 117 of the 509 methods. You can also leave the second server out, and then an agent cannot delete anything even with your approval.

Why sharing asks too

Text an agent reads (a PDF, a notebook entry, a collaborator's message) could contain instructions meant to trick it. Because sending data out always needs your approval, such text cannot make the agent share your data unattended. Automated tests in the app fail if a method that deletes or shares is not flagged.

Protected folders on your computer

The local-file methods refuse key and credential folders and places that run programs at startup, and creating a file never replaces an existing one: replacing is a separate method that asks first.

You can see what happened

Every MCP call is added to an audit log (mcp-audit.jsonl, one line per call, without the result contents). What an agent creates lands in the app like your own work: plots in Charts & Plots, entries in the notebook, files in Files, and an agent can open the document it is working on so you watch it change.

Connect Claude or another MCP client

Claude Desktop and Claude Code

  1. Install LabTools from the download page and sign in.
  2. Open Settings > Agent Interface in the app.
  3. Click Connect Claude Desktop, or Connect Claude Code. The app finds labtools-mcp (installed next to the app), adds both servers to the client's configuration and keeps a backup of the old file.
  4. Restart Claude Desktop (or start a new Claude Code session). In Claude Desktop, set labtools to Always allow and leave labtools-destructive on Needs approval; Claude Desktop keeps that choice itself. For Claude Code, the app can add the same split to your Claude Code permissions (on by default).
  5. Ask "List my LabTools experiments." to check the connection.

Other MCP clients

Any MCP client that starts a local server over stdio can use it. labtools-mcp config-snippet prints the two server entries (command plus --no-destructive or --only-destructive) with the full path of your installed copy, ready to paste into the client's configuration.

Terminal

labtools-mcp config-snippet

The command line

The labtools command is installed next to the app: in the LabTools Desktop install folder on Windows (the installer does not add it to PATH, so call it by its full path or add the folder yourself), inside the app bundle on macOS, and in /usr/bin with the Linux .deb package. It finds the running app by itself. labtools system methods --json lists every method with its input schema.

Limits and honest notes

  • The desktop app has to be running. The CLI and the MCP server talk to the app; they do not start it or work without it. labtools daemon start --headless starts it without a window.
  • Methods that use the app window (datasets, plots, the spreadsheet, opening documents) do not work headless and answer FRONTEND_UNAVAILABLE. Statistics on numbers you pass in, studies and cloud files work headless.
  • Cloud features (studies, cloud files, collaborations) need you to be signed in to the app; the token comes from your session.
  • MCP over stdio only: no HTTP transport, no MCP resources or prompts, and long jobs return one result rather than a stream.
  • There is no hosted REST API. An older page on this site described one; it never existed.
  • What your AI assistant reads (tool results, file contents it opens) is sent to that assistant's provider under its own terms. LabTools runs the analysis locally, but it does not control what the assistant does with the answer.

More on how LabTools is built: Technology. Every feature area, including automation and agents: Features.

Questions

Is there a LabTools MCP server?

Yes. labtools-mcp is installed with the free LabTools desktop app on Windows, macOS and Linux. It exposes the app's methods as MCP tools (stats_ttest, plot_create, experiment_list and so on), so Claude and other MCP clients can run statistics, make plots and figures and manage studies in the app. Settings > Agent Interface connects it to Claude Desktop or Claude Code in one click.

Which AI assistants work with LabTools?

Any MCP client that runs a local server over stdio. The app sets up Claude Desktop and Claude Code for you; for other clients, labtools-mcp config-snippet prints the two server entries to paste into their configuration. Assistants that can run shell commands can also use the labtools command-line tool directly.

Does my data leave my computer?

The agent interface itself is local: it listens on 127.0.0.1 only and needs a per-session token. Statistics run on your computer. Data goes to the LabTools cloud only when you use a cloud feature, such as uploading a file or the default cloud copy of a new plot (skip it with --no-cloud). Anything your AI assistant reads is sent to that assistant's provider under its own terms.

Can I script LabTools from the command line?

Yes. The labtools command covers statistics, datasets, plots, figures, studies, notebooks, references, files and more, for example labtools stats ttest, labtools plot create and labtools plot export. It prints tables in a terminal and JSON with --json, has --dry-run for changes, and returns stable exit codes, so it fits in shell scripts and pipelines.

Can an AI agent delete my data without asking?

Not when connected the way the app sets it up. Every method that deletes, overwrites, revokes or shares data is on a second MCP server, labtools-destructive, which asks for approval each time. You can also leave that server out, and then deleting is not possible through the agent at all.

Does LabTools have to be open for the CLI or MCP server to work?

The app has to be running, because the CLI and the MCP server talk to it. It can run without a window (labtools daemon start --headless); statistics on numbers you pass in, studies and cloud files work that way, while datasets and plots need the app window.

Is there a LabTools REST API in the cloud?

No. The only programming interface is the local one described here: JSON-RPC inside the desktop app, the labtools CLI and the labtools-mcp MCP server. It costs nothing extra; LabTools is free to download and use.

Free desktop app

Let your AI assistant work in LabTools

Download LabTools for Windows, macOS or Linux, sign in, and connect Claude from Settings > Agent Interface. The CLI and MCP server are included.

Download freeSee all features

LabTools

The research infrastructure: plot to figure to manuscript in one place. Free to start, with every feature on every plan.

Product

  • Features
  • Technology
  • Demo & Tutorials
  • Examples
  • Plans
  • Download

Support

  • Contact Support
  • Help Center

Filliaux Industries

  • filliaux.com
  • Data Analysis

Stay updated

Research tips, product updates, and release notes. No spam.

Language

  • English
  • 简体中文
  • Español
  • Français
  • Deutsch
  • Português (Brasil)
  • 日本語
  • हिन्दी
  • বাংলা
  • தமிழ்
  • తెలుగు
  • मराठी
© 2026 Filliaux Industries · LabToolsPrivacyTermsCookiesLinkedIn