mcp-snap7
Provides tools for interacting with Siemens PLCs, enabling reading/writing data blocks, memory, timers, counters, and controlling PLC states.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-snap7read DB1 from PLC 192.168.0.1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-snap7
MCP server for python-snap7, enabling MCP clients to interact with Siemens PLCs
Install
pip install mcp-snap7Related MCP server: OpenTIA-MCP
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 PLCdisconnect_plc- Disconnect from PLCget_connected- Check connection statusdb_read/db_write- Read/write data blocksmb_read/mb_write- Read/write memory bytestm_read/tm_write- Read/write timersct_read/ct_write- Read/write counterseb_read/eb_write- Read/write edge inputsab_read/ab_write- Read/write absolute bytesget_cpu_info- Get CPU informationget_cpu_state- Get CPU stateget_protection- Get PLC protection levelplc_cold_start- Trigger cold startplc_hot_start- Trigger hot startplc_stop- Stop PLCget_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/Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityAmaintenanceMCP server that connects AI assistants to Siemens TIA Portal via the Openness API. AI-assisted PLC programming, project management, hardware configuration, cross-reference analysis, and deployment. 16 tools, 166 actions.24
- Flicense-qualityBmaintenanceAn MCP server that lets AI agents interact with Siemens TIA Portal via its Openness API.
- FlicenseBqualityBmaintenanceUniversal MCP server for industrial PLC communication, enabling AI agents to read sensors, alarms, status, setpoints, and write setpoints via adapters for Modbus, S7, or custom PLCs.6
- Alicense-qualityCmaintenanceConnects AI agents to Siemens industrial PLCs for automatic monitoring and control of industrial equipment.21MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/daedalus/mcp-snap7'
If you have feedback or need assistance with the MCP directory API, please join our Discord server