Skip to main content

mcp-snap7

MCP server for python-snap7, enabling MCP clients to interact with Siemens PLCs

PyPI Python Coverage Ruff

Install

pip install mcp-snap7

Requirements

  • python-snap7 requires the libsnap7 library to be installed on your system. See python-snap7 documentation for installation instructions.

Usage

As MCP Server

Configure your MCP client to use mcp-snap7 as a stdio server:

{
  "mcpServers": {
    "mcp-snap7": {
      "command": "mcp-snap7"
    }
  }
}

Available Tools

  • connect_plc - Connect to a Siemens PLC
  • disconnect_plc - Disconnect from PLC
  • get_connected - Check connection status
  • db_read / db_write - Read/write data blocks
  • mb_read / mb_write - Read/write memory bytes
  • tm_read / tm_write - Read/write timers
  • ct_read / ct_write - Read/write counters
  • eb_read / eb_write - Read/write edge inputs
  • ab_read / ab_write - Read/write absolute bytes
  • get_cpu_info - Get CPU information
  • get_cpu_state - Get CPU state
  • get_protection - Get PLC protection level
  • plc_cold_start - Trigger cold start
  • plc_hot_start - Trigger hot start
  • plc_stop - Stop PLC
  • get_error_text - Get error description

Development

git clone https://github.com/daedalus/mcp-snap7.git
cd mcp-snap7
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

Metadata

Release files for mcp-snap7 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-snap7 0.1.0
File Size Uploaded Provenance
mcp_snap7-0.1.0.tar.gz 4.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-snap7 0.1.0
File Interpreter ABI Platform
mcp_snap7-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / mcp_snap7-0.1.0.tar.gz

Download URL mcp_snap7-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b30a8e0b6b89b22f8c5eda368cb1cfcaa153f3988cbfccd3dacc572de13fa866
BLAKE2b-256 checksum
How to use checksums
4f9d2e4269368eaa78a0a3570c01daf516025de57b46910b84c1a86c98f2eed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 28, 2026.

Transparency log

Release files / mcp_snap7-0.1.0-py3-none-any.whl

Download URL mcp_snap7-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4db9d50841fcae09022d8969641ab48a8ef1b13bb58ca17aee85417893f152e3
BLAKE2b-256 checksum
How to use checksums
5973d2dde73c3799d32179490a88ab80d9faa3d6e501d53cf5de1c0e32357812
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 28, 2026.

Transparency log

Security for mcp-snap7 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_snap7-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 Mar 28, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page