About mcp-smbmap
mcp-smbmap exposes SMB enumeration and file operations through an MCP server. It is intended for users inspecting an SMB host, its shares, access status, and remote files.
Key features
- 01Connect to and disconnect from SMB hosts
- 02List shares, drives, and share-path contents
- 03Retrieve remote OS version and SMB signing status
- 04Check whether a user has admin rights
- 05Run remote commands and transfer or delete files
Use cases
- 01Inspect shares and paths on an SMB host
- 02Check host version, signing, and user privileges
- 03Transfer or remove files on a remote system
MCP support
It exposes SMB host connection, enumeration, command execution, and file-operation tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-smbmap
MCP server exposing smbmap SMB enumeration functionality.
Install
pip install mcp-smbmap
Usage
from mcp_smbmap import mcp
# Run the MCP server
mcp.run()
MCP Tools
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
Development
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
mcp-name: io.github.daedalus/mcp-smbmap
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.