MCP server exposing smbmap SMB enumeration functionality.
pip install mcp-smbmapfrom mcp_smbmap import mcp
# Run the MCP server
mcp.run()connect- Connect to an SMB hostlist_shares- List all shares on the target hostlist_drives- List all drives on the target hostlist_path- List contents of a share pathget_version- Get OS version of the remote hostcheck_signing- Check SMB signing statusexec_command- Execute a command on the remote hostdownload_file- Download a file from the remote systemupload_file- Upload a file to the remote systemdelete_file- Delete a remote filecheck_admin- Check if user has admin rightsdisconnect- Disconnect from an SMB host
git clone https://github.com/daedalus/mcp-smbmap.git
cd mcp-smbmap
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/mcp-name: io.github.daedalus/mcp-smbmap