SwarmLabs Server
FreeNot checkedExposes SwarmLabs physics-informed scientific experiment predictions as MCP tools, enabling agents to run predictions, list engines, and perform parameter sweep
About
Exposes SwarmLabs physics-informed scientific experiment predictions as MCP tools, enabling agents to run predictions, list engines, and perform parameter sweeps with honesty-first uncertainty reporting.
README
Open-source client SDK, MCP server, and Skill catalog for the SwarmLabs physics-informed multi-agent scientific experiment automation engine.
SwarmLabs is an open infrastructure that turns multidisciplinary scientific experiments (chemistry, energy, materials, environment, biology, pharma, quantum computing, brain science, CFD, structural mechanics, …) into callable, auditable physics-informed predictions served over a small HTTP API. This repository is the open-source developer toolkit around that engine — it does not contain the proprietary physics models, only the interface, reference integrations, and honesty-first contracts that let any agent or application consume the engine safely.
Why this exists
Scientific-AI tooling is flooded with demos that return confident-but-fake numbers. SwarmLabs takes the opposite stance — honesty-first:
- Every prediction reports an
uncertaintyand, where applicable, anepistemic_uncertainty(how far the request is from validated parameter space). - Validation is split into
empirical_validated(matched to real published experiment data) andliterature_validated(matched to a real paper), never a single inflated "validated" count. - The
v2/pi(physics-informed) endpoint returns the real physics model — it does not return a constant placeholder.
This kit makes those guarantees easy to build on top of, from a Python script, an MCP-compatible agent runtime, or a no-code agent builder.
What's inside
| Path | What |
|---|---|
src/swarmlabs_engine/ |
Python client SDK (SwarmLabsClient) |
mcp/server.py |
Reference MCP server exposing engine calls as tools |
skills/skill_catalog.json |
Machine-readable catalog of the 4 core Skills |
examples/quickstart.py |
Minimal end-to-end example |
docs/API.md |
Endpoint reference |
Install
pip install swarmlabs-engine-kit
Or use it directly from source:
git clone https://github.com/lm203688/swarmlabs-engine-kit.git
cd swarmlabs-engine-kit
pip install -e .
Quick start
from swarmlabs_engine import SwarmLabsClient
# Point the client at YOUR deployed SwarmLabs engine endpoint.
client = SwarmLabsClient(base_url="https://your-swarmlabs-engine.example.com")
# List available engines
info = client.list_engines()
print(info["engines"], "engines across", info["physics_models"], "physics models")
# Run a real physics-informed prediction (e.g. H2 dissociation via VQE)
result = client.run("vqe_h2", {"bond_length_A": 0.74})
print(result["result"], "+/-", result["uncertainty"])
See examples/quickstart.py for a fuller walkthrough.
Engine API surface (summary)
All endpoints are served under /api/v2/.
| Method | Path | Purpose |
|---|---|---|
GET / POST |
/api/v2/list |
List engines + physics-model coverage |
POST |
/api/v2/run/{engine} |
Run a real physics-informed prediction |
POST |
/api/v2/pi/{engine} |
Physics-informed variant (same honest models) |
POST |
/api/v2/sweep/{engine} |
Parameter sweep for trend analysis |
POST |
/api/v2/multifidelity |
Multi-fidelity cross-engine query |
POST |
/api/v2/measure/{engine} |
Record a real measurement to compare vs prediction |
The engine deployment URL is provided by you. This kit is the client side and works against any SwarmLabs engine deployment that exposes the
/api/v2/surface.
MCP integration
The reference MCP server turns engine calls into standard MCP tools so any MCP-aware agent (Claude Desktop, Cursor, custom runtimes) can use SwarmLabs as a trusted scientific-compute tool:
python -m mcp.server --base-url https://your-swarmlabs-engine.example.com
It exposes swarmlabs_run, swarmlabs_list, and swarmlabs_sweep tools with
explicit input schemas and the same honesty-first result contract.
Skill catalog
skills/skill_catalog.json describes the 4 core Skills that compose a
SwarmLabs multi-agent workflow:
- PhysicsPredictSkill — call the real engine.
- ExperimentDesignSkill — turn a goal into a parameter plan.
- ActiveLearningSkill — pick the next most informative experiment point.
- ReportGenerationSkill — emit an auditable report.
These are the building blocks of the SwarmLabs "Planner → Executor → Verifier" agent loop.
License
MIT.
Installing SwarmLabs Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/lm203688/swarmlabs-engine-kitFAQ
Is SwarmLabs Server MCP free?
Yes, SwarmLabs Server MCP is free — one-click install via Unyly at no cost.
Does SwarmLabs Server need an API key?
No, SwarmLabs Server runs without API keys or environment variables.
Is SwarmLabs Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install SwarmLabs Server in Claude Desktop, Claude Code or Cursor?
Open SwarmLabs Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare SwarmLabs Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
