MDEngine

com.forcefieldsilicon由 forcefieldsilicon.com 发布官方发布者v0.7.1更新于 Nov 22, 2026

MD workbench for agents: 13 analysis tools, renders, hosted GPU runs; LAMMPS + OpenMM.

已验证Streamable HTTP可网页运行云端与基础设施数据与分析AI 与机器学习

概览

AI 生成的概览

MDEngine 让助手检查并渲染分子动力学轨迹,并在托管 GPU 或本地运行 LAMMPS 模拟。

可以做什么
  • 检查轨迹:帧数、原子字段、元素、边界框与电荷范围
  • 用 z 方向剖面分析沉积与氧化深度并生成直方图
  • 将轨迹渲染为 MP4、GIF 或 PNG,并把单帧导出为 XYZ
  • 提交、监控、取消和列出 LAMMPS 作业,获取日志并下载结果
  • 查询运行器能力并在消耗 GPU 额度前预检输入文件
  • 提交研究需求,查看账户余额与计费方式
适用场景
当你希望助手查看模拟输出、为轨迹生成可视化渲染,或无需自建 GPU 机器就排队运行 LAMMPS 时使用。无需密钥的指南、能力查询和预检工具适合在购买额度前规划运行。
运行要求
托管版:使用托管 HTTP 端点,并在 Authorization 头中提供 Bearer API 密钥,密钥随预付 GPU 额度包发放;也支持 OAuth 登录。本地版:macOS 14 及以上,运行与提交工具需要安装 LAMMPS。大型输入文件需先通过预签名地址上传。
安装前请注意
作业从首次心跳起按预付额度计费,直到完成或取消;提交时余额需足够支付至少 15 分钟。LAMMPS 输入文件本质是程序,可执行任意 shell 命令;提交给本地服务器的文件会以你的用户完整权限运行且无沙箱隔离。结果在运行后 30 天自动清除,也可提前删除。请勿在对话中粘贴 API 密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MDEngine,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.forcefieldsilicon%2Fmdengine/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "mdengine": {
      "type": "http",
      "url": "https://api.forcefieldsilicon.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

MDEngine

by ForceField Silicon

A molecular-dynamics workbench with a LAMMPS MCP server for Claude and other agents: a native macOS Metal trajectory viewer, a command-line tool, and an MCP server that inspects trajectories and runs LAMMPS simulations as detached background jobs. The hosted tier runs the same jobs on a GPU: Claude sends a deck to the molecular dynamics MCP server at api.forcefieldsilicon.com and gets the results back, with nothing to install.

Start here

Status: 0.7.1 released. Signed and notarized macOS app, command-line tool, Claude Desktop bundle, and the hosted GPU tier. Release notes: https://github.com/forcefieldsilicon/mdengine/releases

Parts

ProductWhat it is
MDEngine.appMetal viewer — orbit / pan / zoom camera, trajectory timeline with 20%/5% tick marks, CPK element colours, XYZ / extended-XYZ, live settings
mdengine-cliinfo / export / decimate / run on trajectories and decks
mdengine-mcpMCP stdio server — trajectory tools plus a detached LAMMPS job runner (submit_lammps / job_status / job_log / list_jobs / cancel_job)

Build

Requires macOS 14+ and Xcode command-line tools. LAMMPS (brew install lammps) is needed only for run / submit_lammps.

swift build -c release            # all three products
./scripts/make_app.sh             # assemble + install /Applications/MDEngine.app

Bundled examples

ExampleWhat it shows
lj_melt.xyz / lj_melt.inLennard-Jones argon melt — the minimal smoke test
fe_oxidation.xyz / fe_oxidation.inReaxFF iron oxidation: a bcc Fe slab meeting O₂ gas, using ffield.reax.Fe_O_C_H from the LAMMPS distribution

Trajectory readers are safe on in-flight dumps — a file a running simulation is still writing parses to its complete frames, so you can inspect a run mid-flight. Rows with non-finite (NaN/inf) coordinates are dropped.

Both decks are ready inputs for mdengine run and submit_lammps. Bare force-field names resolve automatically: if $LAMMPS_POTENTIALS is unset, MDEngine derives it from the LAMMPS install.

MCP server

mdengine-mcp is a dependency-free MCP stdio server, listed in the MCP Registry as com.forcefieldsilicon/mdengine (server.json in this repo). Each release ships a signed macOS MCP Bundle (mdengine-mcp-<version>-macos-arm64.mcpb): double-click it to install in Claude Desktop, or unpack it (mcpb unpack) for any other client. Built from source, register with Claude Code:

claude mcp add mdengine /path/to/.build/release/mdengine-mcp

or in Claude Desktop's claude_desktop_config.json:

{ "mcpServers": { "mdengine": { "command": "/path/to/.build/release/mdengine-mcp" } } }
ToolDoes
trajectory_infoFrames, atom counts, per-atom fields, elements, bbox, charge range
z_profileDeposition/oxidation depth analysis: substrate surface plane, probe penetration depths (min/mean/max), at-surface & in-flight counts, bound-probe charge, z histogram
render_videoTrajectory → MP4 (H.264) or animated GIF via the Metal renderer: camera angles, stride, cinematic orbit, baked scale-bar/frame annotations, per-element colors/sizes, style: "contrast" auto-visibility
render_imageOne frame → PNG with the same camera/style options — lets an agent see a simulation state
export_frameOne frame → XYZ; charges: true → extended-XYZ with the q column
decimateKeep every Nth frame (final frame always kept)
submit_lammpsDetached LAMMPS job: survives the server exiting and machine display-sleep (caffeinate), exit code recorded unattended
job_status / job_logState + live thermo tail / raw log tail
job_filesLocate a finished job's outputs (run dir + bookkeeping dir)
list_jobs / cancel_jobRegistry under ~/.mdengine/jobs/ / SIGTERM a run (state becomes cancelled)
list_hostsExecution hosts from ~/.mdengine/hosts.json and which is the default
fetch_jobPull a remote job's run directory (dumps, data) + logs into the local job dir under results/
run_lammpsSynchronous run for short tests only
buy_creditsOpens the credit page to top up the hosted GPU key

Hosted GPU tier over MCP (no install)

The same jobs are reachable from any MCP client that speaks HTTP — Claude Code, Claude.ai custom connectors, Cursor, Goose — via the hosted endpoint's Streamable HTTP server:

claude mcp add --transport http mdengine-cloud https://api.forcefieldsilicon.com/mcp

Sign in when the client asks (OAuth 2.1: a consent page where you paste your API key once; the client keeps a token, the key stays with you). Scripted clients may instead send the key directly as --header "Authorization: Bearer mde_YOUR_KEY". The key comes with a prepaid credit pack (forcefieldsilicon.com/mdengine). initialize and tools/list work without signing in; tool calls without a credential return 401 with the OAuth Windows and Linux. The hosted tier is the supported path on both, and it is the full paid product: every tool below works from Claude Code on Windows exactly as on a Mac. In PowerShell, register at user scope so the server follows you into every folder, then sign in once:

claude mcp add --scope user --transport http mdengine-cloud https://api.forcefieldsilicon.com/mcp

Start claude, type /mcp, pick mdengine-cloud, choose Authenticate, and paste the key on the browser consent page (never into the chat). Decks written on Windows (CRLF line endings) are accepted as-is. The local viewer, renderer and CPU job runner are macOS-only today; a Windows/Linux local build is planned and demand decides its order, so say so if you need it.

discovery pointer, which is what makes clients offer the sign-in. Tools: account, capabilities, preflight_deck, submit_job (deck inline, ≤ 8 MB), create_job + start_job (big decks via presigned PUT), job_status, job_log, job_results, list_jobs, delete_results, cancel_job (12 tools). Discovery card: https://api.forcefieldsilicon.com/.well-known/mcp/server-card.json. The hosted service (endpoint, billing, GPU launcher) is operated by ForceField Silicon and its source is not part of this repository; the client side of it (HostedClient, CLI run --gpu, MCP host=cloud) is here under the same license as everything else.

Preflight before spend (GJOB-118). GET /v1/capabilities publishes the hosted image's LAMMPS version, packages and every style with a gpu flag: true = KOKKOS-accelerated, false = the style exists but runs on the pod's CPU cores at the GPU rate. Every client checks a deck against it first — mdengine capabilities deck.in, the app's Run Accelerated, submit_lammps host=cloud, the hosted submit_job — refusing a deck whose styles the image lacks (LAMMPS would exit at startup) and warning when the pair style has no /kk variant (the run would not use the GPU). --force / force=true overrides; the server only advises (preflight in the start response), it never blocks.

Troubleshooting the hosted connector:

SymptomCause / fix
Client says authentication required / 401Use the client's sign-in (OAuth) and paste your mde_… key on the consent page, or add the header Authorization: Bearer mde_…. Keys are issued at purchase and shown once.
Consent page says the key was not recognisedKeys are mde_ + 32 hex characters; a revoked key no longer works. mdengine account prints the balance for a saved key.
"insufficient balance"Top up at forcefieldsilicon.com/mdengine; submissions need credit for at least 15 min at the GPU rate.
"gpu_runners_open_soon" (503)Runners are temporarily closed; credits are safe.
HTTP 429Too many keyless requests from one IP; add the key or slow down.
job_results says results unavailableFiles were deleted by delete_results, the run produced none, or the 30-day purge ran.
Job failed with runner_error / lammps_errorThe deck itself failed; job_results (if present) or job_log holds the LAMMPS error text.
Job failed with pod_lost / no_capacity / launch_timeout / gpu_unavailableInfrastructure (pod died, no GPU stock, a pod that never came up, or the host handed the pod no CUDA device); never billed, relaunched once automatically. Resubmit if it still fails.

Jobs run in the deck's own directory (relative read_data paths work) and launch with -sf omp -pk omp N so the OPENMP package is actually engaged; $LAMMPS_POTENTIALS is derived from the LAMMPS install when unset.

Remote hosts (run on your own Linux / GPU box)

The job runner can execute on another machine with the same tool contract: declare hosts in ~/.mdengine/hosts.json and pass host to submit_lammps (or set a default). The deck's directory is rsynced up (trajectories, checkpoints and logs excluded), LAMMPS starts under nohup with its exit code recorded remotely, and job_status / job_log / job_files / cancel_job work unchanged; fetch_job brings results back for trajectory_info, z_profile and the renderers.

{
  "default": "gpu1",
  "hosts": {
    "gpu1": {
      "ssh": "[email protected]",
      "workdir": "~/mdengine-jobs",
      "lmp": "/usr/local/bin/lmp",
      "threads": 8,
      "launch": "{lmp} -in {input} -k on g 1 -sf kk -pk kokkos newton on neigh half -log {log}"
    }
  }
}

ssh is anything ssh accepts (key-based, non-interactive); lmp must be an absolute path (login PATH is not available over ssh); launch is optional — the default is the OpenMP form, and a GPU host is simply one whose template carries the KOKKOS flags. A remote deck must be self-contained within its own directory. The same trust model as local runs applies, on the remote machine.

Platform & limits

macOS 14+ (Apple Silicon or Intel). Trajectories are loaded whole into memory — files over 2 GB are refused with guidance to decimate or split first.

Security note

Running a LAMMPS input executes whatever the deck says. LAMMPS decks are programs, not data — they can invoke arbitrary shell commands (LAMMPS has a literal shell command). Treat a deck from someone else exactly like a shell script: read it before running it.

This applies doubly to the MCP server: an AI agent connected to mdengine-mcp can submit decks, and a submitted deck runs with your user's full privileges on this machine. That is the same trust model as any local dev tool (an agent that can run make can run anything), but be deliberate about which decks — and which agents — you hand to the job runner. Sandboxed execution (containers, no network, resource caps) is how a future hosted tier makes running untrusted decks safe; the local server does not sandbox.

Privacy

The local tools collect nothing; see PRIVACY.md, which also covers the hosted GPU tier.

License

Business Source License 1.1 (BUSL-1.1), © 2026 Gitinama Inc. (ForceField Silicon). See LICENSE.

In short: you may read, copy, modify and redistribute MDEngine, and you may use it in production for your own research, engineering or commercial work, on your own machines or on machines you rent. The one thing the license withholds is offering MDEngine itself, or a service whose value comes mainly from it, to third parties as a hosted, managed or embedded service. Each version converts to the Mozilla Public License 2.0 four years after its first public release. Versions 0.7.0 and earlier were released under MIT and stay MIT. Other arrangements: [email protected].

来源:README.md,提交 9c2ce69

工具

14

guide

Start here: guides by customer type

No key needed. Without customer_type: the list of guides (one line each), the start page and how to get a key. With customer_type (mineral-processing | dark-proteins): the full guide, which says what to supply, what runs, what comes back and what it costs. With template (openmm-stability): the script text of that template, ready to save and submit.

输入参数templatecustomer_type

campaign_request

Start a study: request a quoted campaign

No key needed. Sends a study request to a person and returns a request_id, the tier that fits, the price band, what we still need from you, the next step and the claim scope. Nothing is run or charged. Call it after reading a guide.

输入参数gridquestion必填data_rulesorganizationcontact_email必填customer_type必填inputs_available

account

Account balance and pricing

Balance in USD (`balance_usd`), the part of it held by your unfinished jobs (`reserved_usd`, `held_jobs`) and what a new submit can use (`available_usd` = balance - reserved; a submit needs wall_limit_s x rate of it), how jobs are priced (`pricing.mode` job = the deck's own work in atom-steps at per-class prices, capped at wall_limit_s x rate; metered = per second of pod time), the rate table,…

无需输入参数。

submit_job

Submit a deck (inline files) and start it

One call: create a hosted GPU job, upload the deck given INLINE as {relative_path: text}, and queue it. Total inline size <= 8 MB; for larger decks use create_job, PUT the tarball to upload_url, then start_job. Billing starts at the first heartbeat (state running) and stops at done/failed/cancelled. The deck is executed as a program on an isolated GPU pod.

输入参数gpufiles必填input必填labellaunchrunnerend_markerestimate_s另有 1 个

create_job

Create a job (returns upload URL)

Step 1 of the two-step path for big decks: validates the spec, reserves a job id, returns a presigned upload_url. PUT the deck as a .tar.gz (<= 2 GB, relative paths, input at `input`) to upload_url, then call start_job.

输入参数gpuinput必填labellaunchrunnerend_markerestimate_swall_limit_s

start_job

Start an uploaded job

Step 2: queue a job whose deck tarball has been uploaded. A GPU pod is launched; billing starts when it reports running.

输入参数id必填

job_status

Job status

State (created|uploaded|queued|launching|running|uploading|done|failed|cancelled), GPU, rate, billed seconds, cost so far, exit code, error, last thermo lines, and the post-run verdict: clean | warnings (a done run whose log shows QEq CG failures, lost atoms, a fix halt, or no end_marker line; counts in `warnings`).

输入参数id必填

job_log

Job log tail

The last <= 20 thermo/log lines the running pod reported (30 s heartbeat). Full log.lammps is in the results tarball.

输入参数id必填

job_results

Results download URL

For a done/failed job: a presigned download_url (valid ~7 days) for the results tarball (work/, log.lammps, exitcode). Results are deleted 30 days after the run.

输入参数id必填

list_jobs

List jobs

Jobs of this API key, newest first. Compact rows (id, state, label, created, finished, gpu, cost_usd, error) unless full=true.

输入参数fulllimit

delete_results

Delete a job's files now

For a finished job: delete its deck and results tarballs immediately instead of at the automatic 30-day purge. Metadata and billing records are kept; results can no longer be downloaded.

输入参数id必填

capabilities

What the runner can do

Capability manifest of the hosted runners: LAMMPS version, installed packages, and every style by category with gpu=true (KOKKOS-accelerated) or gpu=false (exists, but runs on the pod's CPU cores at the GPU rate). Default = compact summary; runner=lammps&full=true returns the whole style table. Use preflight_deck to check a specific deck.

输入参数fullrunner

preflight_deck

Check a deck before spending

Dry run of the check submit_job performs: which styles the deck asks for are MISSING on every hosted LAMMPS image (the run would exit at startup), which are CPU-only, whether its pair style will use the GPU at all, and which image (`runner`) the job will be routed to — decks needing packages beyond the fast default image run on lammps-full automatically. Nothing is created or billed.

输入参数files必填input必填

cancel_job

Cancel job

Cancel a job that is not finished. A running job is billed up to the cancel time; its pod is terminated.

输入参数id必填

版本历史

1
  1. v0.7.1最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。