fds-mcp
English · Français
MCP server for
Fire Dynamics Simulator (FDS, NIST). Any MCP
client — Claude, GitHub Copilot in VS Code, Cursor, Gemini CLI, ChatGPT, local models —
can check an .fds file before spending hours of CPU on it, summarise the case,
run FDS and follow the run, read the results (_hrr.csv, _devc.csv, slices)
and get FDS modelling help. Intended
for fire safety engineers and researchers who use FDS.
Status: alpha.
Tools
Everything is exposed as tools (no client needs resources or prompts); names start with
fds_, choices are enums.
| Tool | Purpose |
|---|---|
fds_validate_input(path, min_level) |
Checks an .fds file: unknown groups/parameters (reference extracted from the FDS 6.11.2 source), &HEAD, &TIME/T_END, &MESH, OBST/VENT/DEVC inside the meshes (MULT expanded), undefined SURF_ID/MATL_ID/PROP_ID/CTRL_ID/DEVC_ID/PART_ID/RAMP references, duplicate IDs, D*/dx of each fire, cells unevenly spread across MPI processes (MESH/MPI_PROCESS). Issues have a level (error, warning, info), a code and a line; min_level filters them. |
fds_summarize_input(path) |
Meshes, cells, cell sizes, duration, fires (HRRPUA × area → HRR), devices by QUANTITY, requested outputs. |
fds_read_results(directory, chid, file, column, t_start, t_end, …) |
file = all/hrr/devc: columns, units, min/max/time of max/final value, bounded preview; with column, one series over a time window, downsampled. |
fds_read_slice(directory, chid, slice_number, t_start, t_end, max_times) |
Without slice_number: the structured slices (&SLCF) of the case, numbered, with quantity, unit and plane (y = 0.4 m). With a number: minimum, maximum and mean of that plane over every mesh at each output time (bounded), overall extremes with time and location. Reads CHID.smv and CHID_*.sf directly. |
fds_get_guide(topic) |
topic = workflow, mesh_resolution (D*/dx, cell size table), best_practices, common_errors, outputs. Also published as resources fds://guide/{topic} for clients that use them. |
fds_run_simulation(path, mpi_processes, openmp_threads) |
Validates the file (refused if it has errors), then starts FDS in the background in the file's folder and returns a job_id (the input path). The program is the one configured on the server (FDS_EXECUTABLE, FDS_MPIEXEC); process counts are checked against the meshes (MPI_PROCESS) and CPUs; at most FDS_MCP_MAX_JOBS runs at once. Console output goes to CHID.log. |
fds_get_status(job_id) |
running, completed, stopped by user, failed or not started; simulated time, progress, time step, CFL, ERROR/WARNING lines from CHID.out and CHID.log. Also follows runs started outside the server. |
fds_stop_simulation(job_id) |
Creates CHID.stop: FDS ends cleanly at the next time step and writes a restart file. |
Example fds_validate_input summary:
simple_test.fds: OK - 0 error(s), 0 warning(s), 1 info(s)
[info] line 9 &SURF: fire SURF 'BURNER': HRR ~ 160.0 kW (1000 kW/m2 x 0.16 m2), D* = 0.461 m, dx = 0.1 m, D*/dx = 4.6 (4-10: coarse)
Install and run
Requirement: uv (it fetches Python ≥ 3.10 if needed).
uvx fds-mcp-server # stdio server (what MCP clients start)
uvx fds-mcp-server --help
The PyPI distribution is fds-mcp-server (the name fds-mcp belongs to an
unrelated project); the package installs both commands fds-mcp-server and fds-mcp.
Options: --workspace DIR (only files inside DIR are accessible; also
FDS_MCP_WORKSPACE), --http, --host, --port (see HTTP transport).
Running FDS (environment variables of the server, see .env.example):
FDS_EXECUTABLE (default fds on the PATH), FDS_MPIEXEC (default mpiexec, used
when mpi_processes > 1), FDS_MCP_MAX_JOBS (default 1). On Windows, start the server
from a shell where fds works (e.g. the FDS command prompt, or after fdsinit). Runs
keep going when the client closes the server; fds_get_status picks them up again
from CHID.out and CHID.log.
Client configuration
Claude Code
claude mcp add fds -- uvx fds-mcp-server
# confined to a project folder:
claude mcp add fds -- uvx fds-mcp-server --workspace /path/to/project
# HTTP server already running:
claude mcp add --transport http fds http://127.0.0.1:8000/mcp --header "Authorization: Bearer <token>"
VS Code (GitHub Copilot, agent mode)
.vscode/mcp.json in the project:
{
"servers": {
"fds": {
"type": "stdio",
"command": "uvx",
"args": ["fds-mcp-server", "--workspace", "${workspaceFolder}"]
}
}
}
HTTP variant (the token is asked once and stored by VS Code):
{
"inputs": [
{ "type": "promptString", "id": "fds-token", "description": "fds-mcp token", "password": true }
],
"servers": {
"fds": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp",
"headers": { "Authorization": "Bearer ${input:fds-token}" }
}
}
}
Cursor
.cursor/mcp.json in the project (or ~/.cursor/mcp.json for all projects):
{
"mcpServers": {
"fds": { "command": "uvx", "args": ["fds-mcp-server"] }
}
}
HTTP variant:
{
"mcpServers": {
"fds": {
"url": "http://127.0.0.1:8000/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}
Other clients
- stdio: command
uvx, arguments["fds-mcp-server"](Claude Desktop, Gemini CLImcpServers, local-model front-ends such as LM Studio…). - HTTP: URL
http://<host>:<port>/mcpwith the headerAuthorization: Bearer <token>. - Web-hosted assistants (e.g. ChatGPT connectors) can only reach a public HTTPS URL and may not accept a static bearer token: check the client's current documentation before exposing the server.
HTTP transport
# bash
export FDS_MCP_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
uvx fds-mcp-server --http --workspace /path/to/cases # http://127.0.0.1:8000/mcp
# PowerShell
$env:FDS_MCP_TOKEN = python -c "import secrets; print(secrets.token_urlsafe(32))"
uvx fds-mcp-server --http --workspace C:\FDS\cases
Security model:
- every request needs
Authorization: Bearer <FDS_MCP_TOKEN>(16 characters minimum, compared in constant time); the server refuses to start without it; - every path must resolve inside the workspace (default: the current folder);
..and symbolic links pointing outside are refused; responses show paths relative to it; - no tool runs a command chosen by the client:
fds_run_simulationonly starts the FDS (andmpiexec) programs configured on the server, without a shell, on a.fdsfile of the workspace; it refuses inputs that would make FDS run shell text (&DUMP RESULTS_DIR) or read files outside the workspace (&CATF) (ADR 0007); - the server listens on
127.0.0.1by default, with FastMCP's DNS-rebinding protection; to expose it on a network, put it behind an HTTPS reverse proxy.
Testing with MCP Inspector
MCP Inspector (needs Node.js) lists the tools with their schemas and lets you call them by hand:
npx @modelcontextprotocol/inspector uvx fds-mcp-server # web UI, stdio
npx @modelcontextprotocol/inspector --cli uvx fds-mcp-server --method tools/list
npx @modelcontextprotocol/inspector --cli uvx fds-mcp-server --method tools/call \
--tool-name fds_get_guide --tool-arg topic=mesh_resolution
For HTTP: start the server with --http, then in the Inspector UI choose transport
"Streamable HTTP", URL http://127.0.0.1:8000/mcp, and enter the token as Bearer token
under "Authentication". From a clone, uv run mcp dev src/fds_mcp/server.py opens the
Inspector on the working copy.
Development
git clone https://github.com/Skitourer/fds-mcp-server.git && cd fds-mcp-server
uv sync
uv run poe check # ruff, format, pyright strict, pytest + coverage (same as CI)
- Architecture and conventions: AGENTS.md; decisions: docs/adr.
- Tests that run a real FDS (
fdsmarker) are skipped unless FDS is found (FDS_EXECUTABLEorfdson the PATH):uv run pytest -m fds. In CI they run in theFDS (Linux)job, inside theopenbcl/fdsDocker image (ADR 0005). - Test data (FDS verification and validation cases, NIST public domain): tests/data/README.md.
- New FDS release:
uv run python scripts/extract_namelists.py <fds>/Source FDS-x.y.z. - Release: release-please keeps a release PR (version,
CHANGELOG.md) up to date from the Conventional Commits onmain; merging it creates the GitHub release, which publishes to PyPI through.github/workflows/publish.yml(trusted publishing). See ADR 0004.
Roadmap
- Run a real case with the execution tools on Windows (FDS with Intel MPI).
Licence
MIT. Files under tests/data/ come from NIST and keep their own notice
(LICENSE-NIST.md).
Developed with the help of Claude (Anthropic).
Metadata
Release files for fds-mcp-server 0.4.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 |
|---|---|---|---|---|
| fds_mcp_server-0.4.0.tar.gz | 277.1 kB | With provenance | Details for fds_mcp_server-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fds_mcp_server-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for fds_mcp_server-0.4.0-py3-none-any.whl |
Total release size: 345.8 kB
Release files / fds_mcp_server-0.4.0.tar.gz
| Download URL | fds_mcp_server-0.4.0.tar.gz |
|---|---|
| Size | 277.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
128b76f1edafd4c47c93b29f465b4a8b55c841e125852c74f013ed7aa86d6c86
|
|
BLAKE2b-256 checksum How to use checksums |
bf6be9c026f6c03b668caeb1be7dad74afb50886bcd1e74cc7c4fa89e2d72bcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 4, 2026.
Transparency logRelease files / fds_mcp_server-0.4.0-py3-none-any.whl
| Download URL | fds_mcp_server-0.4.0-py3-none-any.whl |
|---|---|
| Size | 68.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48649aba58f2b4d52e67378e2f3f723670e18d39418b875c31d4bdf4a6bc8282
|
|
BLAKE2b-256 checksum How to use checksums |
6a59460551f01886ebf0b0fc4841d70a13b3ef27b6100c62e31ce3dda2213d84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 4, 2026.
Transparency logSecurity for fds-mcp-server 0.4.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 fds_mcp_server-0.4.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 Dec 4, 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.