mindcraft-mcp
The local MCP server of Mindcraft by Latency Labs. It runs on your machine, connects Codex or Claude Code to your Mindcraft account, and starts research campaigns on your own repository. The server holds only your API URL and your personal API token. Every durable decision stays in the Mindcraft API.
Setup
The procedure needs uv. It supplies Python by itself.
- When
uvis not installed, install it:curl -LsSf https://astral.sh/uv/install.sh | sh. - Register the server in your client:
claude mcp add mindcraft --scope user -- uvx mindcraft-mcp@latest(Codex:codex mcp add mindcraft -- uvx mindcraft-mcp@latest). - Ask the client to show your Mindcraft account. On the first call a browser page opens: sign in with Google, then click Connect. The call then answers with your account.
The first call stores the token in ~/.config/mindcraft/credentials.json
(mode 0600). If no browser can open (for example over SSH), the call
answers with the URL to open on another device; call the tool again after
you approved the request. uvx mindcraft-mcp setup does the same sign-in
from the terminal and also registers the server in each client that it
finds on your PATH. On a machine without a browser, run uvx mindcraft-mcp setup --no-browser, open the URL on another device, and type the code that the
page shows. uvx mindcraft-mcp logout revokes the token and deletes the
file.
Caution: click Connect only for a command that you started on your own machine.
Your first campaign
This is the path from an empty machine to a measured model. It works for
any account, any budget and any repository that has the Mindcraft layout
(setup/ and eval/; mindcraft.run has an inspect_repository action that
tells you what is missing). An operator of the platform sets the budget;
everything else is yours.
-
Budget. Ask your operator for a campaign ceiling on your account. The operator sets it by your email address on the operator website, also before your first sign-in. Without a ceiling, the checks stop with
LIMIT_REQUIRED. The ceiling bounds the initial campaign allowance.The price is the recorded cost × 1.1. The platform stops ordinary work when the live price reaches the effective limit. Final measurement can add a charge above that limit. A campaign can carry a lower limit of its own (
campaign_limit_usdat creation). -
Install.
claude mcp add mindcraft --scope user -- uvx mindcraft-mcp@latest(Codex:codex mcp add mindcraft -- uvx mindcraft-mcp@latest). Check withclaude mcp list:mindcraft … Connected. No browser opens yet. -
Sign in. Ask the client: "Show my Mindcraft account." A browser page opens: sign in with Google and click Connect. The answer shows your email, your ceiling, your model keys and the names of your secrets. The token is stored in
~/.config/mindcraft/credentials.json(mode 0600). Without a browser, the answer shows a URL to open on another device; then ask again. -
Secrets and keys. On the website,
/settings/secretsholds the values your training needs (for exampleHF_TOKEN,WANDB_API_KEY): saved once, never shown again, given only to the campaigns that name them./settings/connectionsholds your model keys and the GitHub connection for private repositories. -
Inspect. "Inspect this repository with mindcraft" (a local path or a GitHub reference). You get the layout, static and hardware checks, the objectives and a list of what is missing. Fix the findings before you create.
-
Create and start. "Create a campaign for it with the compute of
setup/compute.json, give it the secretsHF_TOKEN, run the checks and start it." The reply names the run page (https://mindcraft.latencylabs.ai/runs/<id>): the chosen GPU class with its estimated cost and confidence, the price line against your limit, and the checks. A placement that finds no offer answersPLACEMENT_NONEwith the reasons. -
Steer and watch. "What is the status?", "Give the direction: try a smaller decoder", "Stop the campaign". The run page shows the price, the experiments and their measurements. A campaign with
eval/latency.tomlgets a trained latency measurement on a device and, with the engine scripts, an engine accuracy record; the final measurement runs when the campaign ends, within its two-hour deadline. -
Tokens.
/settings/tokenslists every MCP token; revoke one there or runuvx mindcraft-mcp logout. The next call signs in again.
Tools
| Tool | Purpose |
|---|---|
mindcraft.account |
Your account, your spend and your limits |
mindcraft.run |
Inspect local dependencies, read project context, upload models, and create a campaign |
mindcraft.status |
The state of a run, or your runs |
mindcraft.results |
The experiments and their metrics |
mindcraft.artifacts |
The files of an experiment |
mindcraft.control |
stop, resume, retry, or a direction |
mindcraft.benchmark |
The device latency of an experiment |
A created campaign receipt includes a link to its run page.
Local campaign inputs
The current assistant asks questions and edits local files. The guide supplies
instructions. The MCP tools expose deterministic operations. Offer a separate
Git worktree before local edits. Prefer adapters before necessary code moves
into train/.
A local project association uses the API server, account, repository identity,
and selected subdirectory. Branches and worktrees share that association.
The local store uses ~/.config/mindcraft/local-projects.sqlite3 with mode 0600.
It stores no credentials.
Repositories without remotes use their Git common directory. Non-Git folders use durable local identities for their resolved paths. A folder move can require explicit project selection.
Use source.subdirectory to select a folder within source.path.
An explicit project_id selects an owned existing project of any source type.
Ask the user when several associations conflict. Complete local LFS objects
and submodules before submission. Complete these dependencies locally.
The actions below use the existing backend operations. A successful local test does not establish deployment of their required backend routes.
| Action | Inputs and result |
|---|---|
project_context |
Send a local source or project_id. Read same-project campaigns and prior experiment summaries. |
prior_result_context |
Send an experiment_id. Read inherited inputs, the retained checkpoint selector, and source identity. |
upload_model |
Send project_id, request_id, and model_path. Upload a file, archive, or complete package folder. |
model_upload_status |
Send project_id and upload_id. Read the durable operation after a timeout or process restart. |
create |
Send explicit campaign choices. The receipt preserves artifact roles, ancestry, and the selected source identity. |
The local MCP checks paths, size, hashes, and known missing shards before upload. It sends binary bytes directly to object storage. Stdio arguments and results contain paths and receipts, not binary payloads. Existing backend intake verifies and normalizes each new upload once. The backend remains the validation authority. Its durable operation continues after the client closes.
The MCP creates folder archives but does not extract or normalize packages.
Wait for a model upload to reach READY before campaign submission.
Reuse its artifact_id for later campaigns without another intake job.
After a transport failure, read the upload status with its durable identities.
Repeat an incomplete upload with the same arguments and request_id.
The upload limit is 10 GiB. The extracted limit is 20 GiB.
The folder file limit is 20000. Upload receipts show at most 50 useful
entries with entry_count and entries_truncated. The backend retains the
complete manifest.
The backend also enforces known execution limits. Some runtime incompatibilities can appear during paid execution. Unused completed uploads expire after seven days. The backend protects required campaign artifacts.
A model artifact contains a checkpoint, engine, or related package files.
The baseline measurement supplies reference metrics for subsequent experiments.
A supplied baseline uses baseline_model with action: evaluate|train.
For action: train, baseline_model.mode is required.
For action: evaluate, that mode is absent. The separate
training_initializer uses mode: weights_only|training_state.
Ask for the two restoration choices separately.
Both policies require an explicit experiment initializer for an uploaded baseline.
Under original, legacy starting_model can supply its fixed weights_only
source. current_best requires the new training_initializer.
The same compatible uploaded artifact can fill both roles. A second file is
not required.
Legacy starting_model retains its existing weights-only behavior.
Present its repository, revision, and fixed experiment mode before create,
alongside the baseline artifact and baseline mode.
weights_only restores model weights alone. training_state restores compatible
saved optimizer state, schedule state, and counters that the adapter requires.
Present both artifact identities and selected modes before the create tool call.
The create action performs Start automatically. Existing user authorization covers the call once the choices are explicit. Do not request another approval when that authorization already covers the call.
Do not substitute a mode between roles. An engine cannot supply training weights. The original initializer remains separate from a trained baseline output.
A saved model can await AGX Orin availability. An offline device does not fail the campaign. Required engine metrics precede keep or discard. The backend retains progress without the MCP session. It releases idle training resources where durable recovery permits release.
The campaign selects candidate_initialization: original|current_best and
metric_basis: framework|engine. Requested additional_training is additional
to saved counters. Each experiment retry retains its pinned checkpoint.
A child campaign records ancestry from an exact prior campaign result.
It uses explicit parent_result campaign and experiment identities.
Ask for exact prior_result code or current local code with prior weights.
Use the checkpoint selector from prior_result_context for the initializer.
The child requires an explicit restoration mode, baseline action, checkpoint policy, and metric authority. Inherited objectives apply unless the user changes them. The child measures a fresh baseline.
The source operation inherits dataset and evaluation inputs by default.
Set parent_result.inherit_evaluation to false only after the user selects
changed inputs. The receipt preserves that choice and the materialized source.
The backend protects required child inputs independently of parent deletion.
The adapter declaration uses setup/model_adapter.json. It identifies supported
formats, restoration modes, required state components, and a compatibility command.
The evaluation contract must freeze that file or setup/.
The adapter receives MINDCRAFT_MODEL_INPUT_JSON and writes
MINDCRAFT_ADAPTER_RECEIPT. Preflight uses MINDCRAFT_ADAPTER_PHASE=preflight.
The worker verifies restored components, saved counters, and additional work.
A train receipt echoes the sealed training_bound and records
bound_applies_to_additional_work=true. Saved counters remain separate from
that bound. The worker infers no absent step or epoch count.
Settings
| Setting | Meaning |
|---|---|
MINDCRAFT_API_URL |
Default https://mindcraft.latencylabs.ai |
MINDCRAFT_API_TOKEN |
Optional. It replaces the stored token, for a script or a CI job |
The repository that a run uses must follow the Mindcraft repository contract; the Mindcraft documentation describes it.
The customer reference gives the implemented contracts. The feature reference summarizes campaign inputs and their limits. The campaign inputs plan retains accepted choices and incomplete release evidence. Deployment and live acceptance remain Unknown.
Metadata
Release files for mindcraft-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mindcraft_mcp-0.2.0.tar.gz | 193.8 kB | With provenance | Details for mindcraft_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mindcraft_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mindcraft_mcp-0.2.0-py3-none-any.whl |
Total release size: 339.5 kB
Release files / mindcraft_mcp-0.2.0.tar.gz
| Download URL | mindcraft_mcp-0.2.0.tar.gz |
|---|---|
| Size | 193.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdd17438af4b8bfef65e86f0f37a43891dea78774eeb08bf11a593a0b2a274fd
|
|
BLAKE2b-256 checksum How to use checksums |
7bc71569741dbff4424598637e60b9fea0734298db99a6127de8d5b3ab0e503e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / mindcraft_mcp-0.2.0-py3-none-any.whl
| Download URL | mindcraft_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 145.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f89e83d09dcf8733c328146d1ffcb46b75f9c9619717afada2cb06c076649ac5
|
|
BLAKE2b-256 checksum How to use checksums |
7407927249a8b3d48d9a27ac00599e497eed5e96de91ea344a9f205ece695667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for mindcraft-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mindcraft_mcp-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.