plotsim-mcp
Model Context Protocol server for plotsim — generate, validate, inspect, and trace synthetic multi-table datasets from any MCP client.
Status
0.1.0 — first public release. Eleven tools wired (discovery, templates, authoring, generation, inspection, trace), structured error contract, run-id sandbox, full stdout-discipline coverage.
Install
pip install plotsim-mcp
This pulls plotsim>=0.7.0 and the MCP Python SDK (mcp>=1.25,<2) as transitive dependencies.
Launch
The server speaks the MCP stdio transport:
python -m plotsim_mcp
It exits when the client closes the stream.
Claude Desktop configuration
Add an entry under the mcpServers key of your claude_desktop_config.json (location: %APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS):
{
"mcpServers": {
"plotsim": {
"command": "python",
"args": ["-m", "plotsim_mcp"]
}
}
}
Restart Claude Desktop. The plotsim server should appear in the MCP tool inspector.
Available tools
Discovery
| Tool | Returns |
|---|---|
list_templates |
Names and descriptions of the bundled plotsim domain templates. |
get_schema |
The full PlotsimConfig JSON Schema plus the plotsim version it was emitted by. |
describe_capability |
Vocabulary for a named area (archetypes, curves, distributions, arrival_shapes, output_formats, quality_types, validation_checks). |
Authoring
| Tool | Returns |
|---|---|
get_template |
Raw YAML text and parsed dict for a bundled template. |
validate_config |
Structural validation of a YAML or dict against the builder UserInput schema; structured pydantic errors on failure. |
preview |
Estimates what a config would generate (entities × periods, table counts, row estimate, cell-budget headroom, exceeds_budget flag) without running the pipeline. |
Generation and inspection
| Tool | Returns |
|---|---|
create_dataset |
Runs the plotsim pipeline end-to-end against a template name or full config. Returns {run_id, output_dir, tables_written, validation_summary}. |
describe_run |
Summarizes a previously generated run from its manifest (archetype counts, event firings, treatment cohorts, correlation phases, bridge sizes). |
get_validation_report |
Returns the validation report text verbatim plus an ok flag parsed from the Status: line. |
load_run |
Single-call envelope combining raw + parsed config, manifest summary, validation status, and on-disk table listing. Optimized for the modify-and-rerun loop. |
Trace
| Tool | Returns |
|---|---|
trace_cell |
Reconstructs the full pipeline trace for one fact-table cell — archetype, trajectory position, distribution family, noise realization, realized value, and a trace_source field ("manifest" for sampled entities, "rederived_from_seed" otherwise). Bit-identical to the engine's in-memory output regardless of source. |
Run sandbox
create_dataset writes every dataset under a single sandbox root.
The location is controlled by the PLOTSIM_MCP_RUN_ROOT environment
variable; if unset, runs land at
<system_temp>/plotsim-mcp-runs/<run_id>/. The run_id is a stable
<UTC-timestamp>-<sha8> handle that round-trips through describe_run,
get_validation_report, load_run, and trace_cell. Caller-supplied
output_dir values are refused when they resolve outside the sandbox
root (plotsim.run.path_forbidden).
Error contract
Every tool returns a CallToolResult. On structured failure the result carries isError=true and a JSON payload of shape:
{
"code": "plotsim.template.unknown",
"message": "human-readable summary",
"details": {},
"traceback_id": "optional server-side log key"
}
Codes are namespaced under plotsim.*. The current set is enumerated in plotsim_mcp/errors.py and plotsim_mcp/tools/trace_cell.py.
Contributing
See CONTRIBUTING.md for the tool conventions
(dict-wrap, structured_output=False, stdout discipline, run-id
sandbox, error contract) and the test layout. The
Code of Conduct, Security policy,
and Support docs round out the contributor surface.
License
Apache-2.0. See LICENSE.
Metadata
Release files for plotsim-mcp 0.1.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 |
|---|---|---|---|---|
| plotsim_mcp-0.1.0.tar.gz | 52.9 kB | With provenance | Details for plotsim_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotsim_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for plotsim_mcp-0.1.0-py3-none-any.whl |
Total release size: 90.0 kB
Release files / plotsim_mcp-0.1.0.tar.gz
| Download URL | plotsim_mcp-0.1.0.tar.gz |
|---|---|
| Size | 52.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b716d38db57472e1ac44ea0dadef65e9712abd5c768f01b507105885f81c8a1b
|
|
BLAKE2b-256 checksum How to use checksums |
d59fa72599568957fed0880e1c61ccce95e5fdedf1f3f83a8cae3bbd18c51e5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 May 24, 2026.
Transparency logRelease files / plotsim_mcp-0.1.0-py3-none-any.whl
| Download URL | plotsim_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e75fa955dd9a1f9a0264c5d79eaf8c78b50b3a42af447c4c4362b8533418313
|
|
BLAKE2b-256 checksum How to use checksums |
2552793e8b239d657e034547f49cf65bf5752a24a2d0fcc2e62950d3dd22baa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 May 24, 2026.
Transparency logSecurity for plotsim-mcp 0.1.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 plotsim_mcp-0.1.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 May 24, 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.