MaterialsCodeGraph
com.materialscodegraph/mcg
MCP server OK 17 tools
What it is for
Lets an assistant run materials simulations: catalogue, rates, quote before a run, staging and running, tracking runs and managing studies.
Summary written by L’Atlas on 29 Nov 2026, rewritten only from the author’s description and the tools seen by our test. Author’s text below.
Materials simulations for AI agents over MCP: binding token quote before every run, record after it.
Technical sheet
- Author
- materialscodegraph.com (registry namespace)
- Repository
- github.com/materialscodegraph/materialscodegraph
- Site
- materialscodegraph.com
- Version
- 0.1.1
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://api.materialscodegraph.com/mcp Streamable HTTP required header :
Authorization - Tools
- 17
- Categories
- AI, agents and memory
- Last updated
- 20 Sept 2026
- Published
- 20 Sept 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/com.materialscodegraph/mcg)<a href="https://latlas.dev/en/mcp/com.materialscodegraph/mcg"><img src="https://latlas.dev/badge/fiche/com.materialscodegraph/mcg.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://api.materialscodegraph.com/mcp
- Last result
- OK 28 Nov 2026, 11:20
- Response time
- 514 ms (initialize + tools/list)
- Protocol version
- 2025-06-18
- Announced name
- mcg 0.1.2
- Tools
- 17
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 11:20 | OK | 514 ms | 17 |
Exposed tools (17, from tools/list, 28 Nov 2026)
mcg_catalog
Enabled simulation kinds (each with example mcg_quote arguments that price, a note naming what must exist first, or both; traced says whether the kind's default lineage has a single public OpenMaterials node pin, traced_note why or why not; research coordinators instead expose record_contract describing per-task completion requirements, not completed results), the costed lineage menu (runnability, physical conditions, indicative token costs and wall time per resource class, with its label and the offer SKU priced), the external-frontier graphs mcg_quote accepts (each with the envelope to pass as external_frontier), recipes (pass a recipe's quote object to mcg_quote unchanged), and codes (versions, licenses, pins; the only software a run may execute). Call before mcg_quote. A kind or code absent here cannot run.
No parameters.
mcg_rates
The public rate card: token_usd, overheads, rate_card_version. FREE, no arguments; also a connectivity check.
No parameters.
mcg_quote
Price a simulation. FREE: no hardware starts. Returns quote_id, quote_hash, tokens, rate_card_version, wall_s, expires_at, resource_class, resource_label and sku (the GPU class the quote is bound to, its name, and the offer SKU it priced; null when none was chosen), resource_options (one row per class the run can rent at this venue: resource_class, label, sku, tokens, wall_s, available; tokens and wall_s are what this quote would be on that class, null when it has no live offer now; re-quote with resource_class to pick one), pricing {hours_factor, potential_cost_ratio, note} when a potential staged at slots/potential was priced by its predicted per-step cost over the default's (the hours, the wall time and the run's wall limit are multiplied by hours_factor, at least 1, the factor on the quote's resource_class: each resource_options row is priced at its own class's factor; the per-second rate is unchanged), the plan, and record: {traced: true, node, node_uid, map_version (the openmaterials graph version the node is pinned at; the commons map version is published at openmaterials.ai/data/version.json), material (the material the pinned conditions name: what the run computes), potential {label, sha256} when the run's staged potential is not NEP89} when the completed run's OpenMaterials record is keyed on that public map node (measured instances cite the method that ran), else {traced: false, reason}, which only the graph arm, research coordinators and the untraced preview kind…
| Parameter | Type | Required | Description |
|---|---|---|---|
| kind | string | no | Simulation kind from mcg_catalog, e.g. bulk_kappa. |
| name | string | yes | A human label for the simulation. |
| spec | object | no | The spec object, e.g. {params: {...}, spec_yaml: '...'}. params drive the price. interface_tbc: params.production_steps, equilibration_steps, nx, ny, n_z_per_side, n_bins and delta_T_K set the NEMD budget, junction and thermostat offset within the bounds the reply's certification.settable states (a… |
| engine | string | no | Optional engine id override (rejected if unknown). |
| study | string | no | The study (project) this simulation belongs to: the id of a study you own (std_ plus 20 hex), or an exact name, created if absent. A value shaped like a study id never creates a study: one that is not yours is refused. Every quote for one investigation should name the same study so the app groups t… |
| material | string | no | Kind arm only: the material or formula being simulated (e.g. Si, MoS2). Also selects the reference structure. On a traced run whose engine fixes its own conditions it must match the spec's material. |
| conditions | object | no | Kind arm only: physical conditions as key/value pairs, e.g. {T: 300}. Values are numbers, strings or lists of up to 16 of them, except on an adapter engine, which runs them: there any value its conditions schema allows (lists, booleans, null) over the keys it declares, judged at quote. On a traced… |
| structure_xyz | string | no | Kind arm only: the simulated structure as extended-XYZ text; staged as the input structure.xyz so the app renders the exact geometry (takes precedence over the material reference). |
| potential_from_run | string | no | Kind arm only: a done nep_train or nep_campaign run id whose trained NEP model this simulation runs; staged as its potential (with its license notice) before pricing. |
| draft_id | string | no | Third arm: price a draft that mcg_stage created and whose inputs have been uploaded (refuses with inputs_missing while any declared input is absent). Also re-prices an already-quoted simulation, after its quote expired or to reproduce a run (pass the run's quote_id, its simulation_id): it clones th… |
| external_frontier | object | no | The OpenMaterials #110 external-solve envelope, verbatim: mcg_catalog graphs[].envelope for the active bundle. Mutually exclusive with kind/spec/engine. |
| max_tokens | integer | no | Graph arm only: quote-time hard ceiling; a quote above it REJECTS (never clamps). |
| target | object | no | Run on one of your connected clusters (see mcg_clusters) instead of the cloud: hardware cost 0, gate fee per the rate card and plan, wall time includes the scheduler's queue-wait estimate. The cluster's status must be connected. |
| resource_class | string | no | The GPU class to run on, from a previous reply's resource_options (e.g. gpu-ampere-80). The quote prices that class only and the run rents only it: no fallback to another class, so it waits in quoted while the class has no capacity. Omit to price the cheapest class; the run may then take any class… |
mcg_clusters
Connected clusters: id, name, preset (hive or auto), status (pending until the agent's first sync; connected; stale: the agent stopped syncing; revoked; scheduler_down: the agent syncs but cannot reach the scheduler, nothing is offered; agent_outdated: the agent is older than 0.2.10, the minimum for new jobs, or an auto cluster's agent sends no inventory, nothing is offered; snapshot_rejected: its last snapshot was over the size cap; snapshot_stale: no fresh capacity snapshot, nothing is offered; nodes_unavailable: none of an auto cluster's nodes accept jobs (drained, down, in maintenance or not responding), nothing is offered), status_detail (why, when not connected), classes (resource classes offered per partition, with per-job GPU, CPU and memory maxima, the GRES type, and in_use: false when no engine runs on the class), unclassified_gpus (GPU types present but not offered: type, count, reason), untyped_gpus, last sync time. Pass target {cluster_id} to mcg_quote to run there at zero hardware cost; only a connected cluster quotes. Clusters are created with POST /api/clusters (on the machine host with a spend-scoped key).
No parameters.
mcg_stage
Create a DRAFT simulation whose input files are uploaded before pricing. FREE. Takes the same kind, spec, study, material and conditions as mcg_quote plus inputs: one entry per file the run needs, each with a name and, for small text files, the text inline (staged immediately). Entries without text come back in uploads as presigned PUT URLs (valid 15 minutes, 4 GiB per file): upload each with a plain HTTP PUT of the file bytes, no key or header. Then call mcg_quote with draft_id to price; it REJECTS with inputs_missing until every declared input has arrived.
| Parameter | Type | Required | Description |
|---|---|---|---|
| kind | string | yes | Simulation kind from mcg_catalog. |
| name | string | yes | A human label for the simulation. |
| spec | object | yes | The spec object; params drive the eventual price. |
| engine | string | no | Optional engine id override. |
| study | string | no | The study (project) this simulation joins: the id of a study you own (std_ plus 20 hex), or an exact name, created if absent. A value shaped like a study id never creates a study: one that is not yours is refused. |
| material | string | no | The material or formula simulated. |
| conditions | object | no | Physical conditions: numbers, strings or lists of up to 16 of them (on an adapter engine, any value its conditions schema allows). On a traced run whose engine fixes its own conditions, a key or value its record does not hold is refused; the error names what to send or omit. |
| inputs | array<object> | yes | The input files the run needs. |
| potential_from_run | string | no | A done nep_train or nep_campaign run id whose trained NEP model this draft runs; staged as its potential (with its license notice) beside the inputs. |
mcg_run
Launch the quoted simulation. SPENDS TOKENS: provisions hardware and bills the account. Requires the quote_id and quote_hash from mcg_quote (a stale hash or an expired quote REJECTS: re-quote and retry) and a client-generated idempotency_key (replaying it returns the existing run instead of launching twice). Optional max_tokens is a hard ceiling: a quote above it REJECTS the launch, never clamps. An unchanged resubmission of a run refused within the last 30 days for failures that repeat REJECTS with repeat_refused, at no cost (see mcg_quote). Returns run_id.
| Parameter | Type | Required | Description |
|---|---|---|---|
| quote_id | string | yes | The quote_id returned by mcg_quote. |
| quote_hash | string | yes | The quote_hash mcg_quote returned: proves the launch prices the exact quote the client saw. |
| idempotency_key | string | yes | Client-generated key; retrying a launch with the same key must not double-charge. |
| max_tokens | integer | no | Hard token ceiling: the launch is REJECTED if the quote exceeds it. |
mcg_list_runs
List runs, newest first: every run of this key's owner, or one quote's runs when quote_id is given. Returns at most limit rows (default 20, maximum 100). Each row carries state, spend_tokens, created_by_key_name (null when launched in the browser), study, headline (the AI brief's first line) and app_url. Returns runs and next_before: pass next_before as before to get the next older page; it is null on the last page.
| Parameter | Type | Required | Description |
|---|---|---|---|
| quote_id | string | no | Optional: the quote_id (simulation) to list runs for. |
| limit | integer | no | Optional: rows per page, default 20. |
| before | string | no | Optional: a run_id from this listing (next_before of the previous page); returns only older runs. |
mcg_get_study
Fetch a study (the project a quote's `study` named) with its member simulations and their latest runs. Pass study_id or the exact name. Returns study (with summary and parent_id), parent (the project it is filed under, or null), children (its subprojects with run counts by state, last_activity_at, latest_headline and their members), progress (the same counts over its own members), rollup (the study and its subprojects together, each simulation once), members (each with role, the step label, the simulation's description, headline, the run's one-line result, and app_url) and app_url.
| Parameter | Type | Required | Description |
|---|---|---|---|
| study_id | string | no | The study id. |
| name | string | no | The exact study name given to mcg_quote or mcg_stage. |
mcg_study_members
Add simulations to a study and remove them from it. You must own the study (get its id from mcg_get_study) and every listed simulation; a missing one is named and nothing changes. add appends in order (a member already present keeps its place); remove takes a simulation out of this study only, and the simulation and its runs are untouched. Joining a public study is refused for a run that cannot be public. Any change takes an auto-grouped study out of auto-grouping. Returns study, added, removed (the ids that changed), member_simulation_ids (unarchived members, in order), archived_member_ids and app_url.
| Parameter | Type | Required | Description |
|---|---|---|---|
| study_id | string | yes | The study id (std_...). |
| add | array<string> | no | Simulation ids to add. |
| remove | array<string> | no | Simulation ids to remove. |
mcg_list_studies
Your projects and their subprojects. A project is a study with no parent; a subproject is a study filed under one project. Each entry carries id, name, summary (one line, may be empty), n_members (unarchived simulations) and app_url; each project lists its subprojects, oldest first. Projects come newest first.
No parameters.
mcg_update_study
Describe and file a study you own. name renames it; summary sets its one-line purpose; story_md replaces its long narrative. parent_id files it under a project (null makes it a project again); parent_name does the same by exact project name and creates that project if you have none by that name. The tree is one level deep: a project with subprojects cannot be filed under another. roles labels member simulations with the step they belong to, as {simulation_id: label}; an empty label clears it. descriptions sets each member simulation's own description, as {simulation_id: text}: one paragraph, at most 300 characters, saying what it is, the inputs that matter and what it found; the app shows it under the simulation's name, and an empty text clears it. Membership, runs and spend are untouched. Returns study, parent and children as mcg_get_study does.
| Parameter | Type | Required | Description |
|---|---|---|---|
| study_id | string | yes | The study id (std_...). |
| name | string | no | A new name. |
| summary | string | no | One line, at most 300 characters. |
| story_md | string | no | The long narrative, markdown. |
| parent_id | string | null | no | A project's study id, or null to make this study a project. |
| parent_name | string | no | A project's exact name; created when absent. |
| roles | object | no | Step labels by member simulation id, at most 80 characters each. |
| descriptions | object | no | Descriptions by member simulation id, at most 300 characters each. |
mcg_delete_study
Delete a study you own: the study and its membership list go. Its simulations, runs, artifacts and spend are untouched and stay reachable by id and in mcg_list_runs. A deleted project's subprojects become projects. Refused while the study has documents or a live public link (remove those in the app first). Returns study_id, deleted true and former_member_ids, enough to rebuild it.
| Parameter | Type | Required | Description |
|---|---|---|---|
| study_id | string | yes | The study id (std_...). |
mcg_archive
Archive or unarchive a simulation you own. Archiving hides it from the app's lists and studies; its runs, artifacts and spend are untouched, its direct link still opens, and archived false restores it. Use it to clear drafts that never ran (they cannot be deleted once quoted). Returns simulation_id, archived, archived_at (null when unarchived) and app_url.
| Parameter | Type | Required | Description |
|---|---|---|---|
| simulation_id | string | yes | The simulation id (sim_...). |
| archived | boolean | yes | true archives, false unarchives. |
mcg_get_run
Fetch a run's state, event timeline and LLM spend. The payload leads with a derived summary (state, current_stage, billing {quoted_tokens, charged_tokens, hold, policy}, fault, refusal, next, last event, campaign) for cheap polling, then app_url (the run page, for the human), study and headline. events holds the newest events that fit about 12 KB plus the last complete or fail event; events_omitted counts the others. In a payload over 2 KB, each value over 256 chars becomes {omitted_bytes, see}, where see names the route that returns the full event. A report body_md over 6,000 chars becomes the same stub; a brief body_md is cut at 6,000 chars and ends in an ellipsis; llm_spend.calls holds the newest 10 calls, and calls_omitted counts the rest. A done, node-addressed run also carries record (its OpenMaterials SimulationRecord), openmaterials_url (the datasheet link) and openmaterials_label: null, or the commons' note when the record cites a model, configuration or code that is not in the public registry (record.unregistered lists each model and configuration), so its values cannot be checked against the commons. A campaign parent's summary.campaign holds its round, step, ceiling_tokens, committed_tokens, measured_tokens, finish, counts (children per state), children (every open child and the newest 8 settled ones, each with run_id) and children_omitted; GET /api/runs/:id lists every child. Its children are charged in the parent's one capture, so a child shows charged_tokens 0…
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The run id from mcg_run. |
mcg_cancel_run
Cancel a run from any non-terminal state before collecting (a collecting run's outputs are delivered and charged: 409). The cancel request is recorded immediately and returns run_id and cancel_requested true (and a note, for a running campaign); the platform kills the machine and terminalizes the run as state killed on its next orchestration tick (about 60 s). A running campaign's cancel takes several ticks (a tick is about 60 s), 3 or more while children are open: the parent winds down, its open children are cancelled (a collecting child finishes and counts), then settlement charges the done children's measured tokens and releases the rest of the hold. Poll mcg_get_run to observe the terminal state.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The run id to cancel. |
mcg_fetch_artifacts
List a run's collected artifacts as a typed manifest: artifacts, a list of path, bytes, stage and sha256 per file, plus removed on a file the retention sweep deleted (its bytes are gone; do not fetch it) and attribution on a third-party model's file (its license notice; keep it with any copy); truncated; source. Never returns file contents; fetch one file with mcg_get_artifact.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The run id. |
mcg_get_artifact
Fetch one artifact file's TEXT content, up to max_bytes (default 65536), with an explicit truncation note. Binary content REJECTS with unsupported_content; fetch binaries from the run's public page. A third-party model's file returns its full license notice first, as an [attribution] text item.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | The run id. |
| path | string | yes | The artifact sub-path, e.g. results/report.md. |
| max_bytes | integer | no | Max bytes to inline (default 65536). |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://api.materialscodegraph.com/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http mcg https://api.materialscodegraph.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : mcg ; URL : https://api.materialscodegraph.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : mcg ; Server URL : https://api.materialscodegraph.com/mcp ; Create as a plugin{
"mcpServers": {
"mcg": {
"url": "https://api.materialscodegraph.com/mcp"
}
}
}{
"mcpServers": {
"mcg": {
"type": "http",
"url": "https://api.materialscodegraph.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"mcg": {
"url": "https://api.materialscodegraph.com/mcp"
}
}
}{
"mcpServers": {
"mcg": {
"httpUrl": "https://api.materialscodegraph.com/mcp"
}
}
}[mcp_servers.mcg]
url = "https://api.materialscodegraph.com/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
MaterialsCodeGraph · L’Atlas · Tested on
[MaterialsCodeGraph — L’Atlas](https://latlas.dev/en/mcp/com.materialscodegraph/mcg)Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.