About ClamAV MCP
ClamAV MCP is an MCP server that uses the ClamAV engine to scan files for viruses. It accepts SSE connections and returns scan output or error information to clients.
Key features
- 01Scan files with ClamAV
- 02Accept Base64-encoded files
- 03Return raw scan command output
- 04Report scan errors
- 05Accept connections over SSE
Use cases
- 01Check uploaded files for viruses
- 02Scan files passed as encoded data
- 03Call file scans from Cursor
MCP support
The server exposes a scan_file tool to MCP clients, taking Base64 file data and a filename and returning scan status, output, or an error.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
http://127.0.0.1:8000/sseclaude mcp add --transport http clamav http://127.0.0.1:8000/sse{"mcpServers":{"clamav":{"type":"http","url":"http://127.0.0.1:8000/sse"}}}Open in Cursor{"servers":{"clamav":{"type":"http","url":"http://127.0.0.1:8000/sse"}}}Open in VS Code{"mcpServers":{"clamav":{"type":"http","url":"http://127.0.0.1:8000/sse"}}}{"mcpServers":{"clamav":{"serverUrl":"http://127.0.0.1:8000/sse"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEClamAV MCP
Simple ClamAV MCP that allows scanning files for viruses using the ClamAV engine.

Requirements
This project requires ClamAV to be installed on your system. Here's how to install it:
Ubuntu/Debian
sudo apt-get update
sudo apt-get install clamav clamav-daemon
Windows
- Download the ClamAV installer from ClamAV's official website
- Run the installer and follow the setup wizard
- Make sure to add ClamAV to your system PATH
macOS
brew install clamav
Usage
To run the MCP server:
uv run mcp run main.py -t sse
The server will start and listen for SSE connections on port 8000 by default.
Cursor Configuration
To use this MCP with Cursor, add the following configuration to your Cursor settings:
{
"mcpServers": {
"ClamAV Server": {
"url": "http://[SERVER_IP]:8000/sse"
}
}
}
This configuration tells Cursor to connect to the ClamAV MCP server.
API
The MCP provides a single endpoint:
scan_file
- Parameters:
base64_data: Base64 encoded string of the file to scanfilename: Name of the file to use in the scan
- Returns:
success: Boolean indicating if the scan was successfulresult: Raw output from clamscan commanderror: Error message if the scan failed
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.