Skip to main content
Glama
a2amarket

ClamAV MCP

by a2amarket

ClamAV MCP

Simple ClamAV MCP that allows scanning files for viruses using the ClamAV engine.

Cursor ClamAV Integration

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

  1. Download the ClamAV installer from ClamAV's official website

  2. Run the installer and follow the setup wizard

  3. Make sure to add ClamAV to your system PATH

macOS

brew install clamav

Related MCP server: Snyk MCP Server

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 scan

    • filename: Name of the file to use in the scan

  • Returns:

    • success: Boolean indicating if the scan was successful

    • result: Raw output from clamscan command

    • error: Error message if the scan failed

Available Tools

1 tool
scan_fileC
Scan a base64-encoded file using ClamAV.

Args:
    base64_data (str): Base64 encoded string representing a file
    filename (str): Name of the file to use in the scan
    
Returns:
    dict: Scan results including the raw clamscan output
ParametersJSON Schema
NameRequiredDescriptionDefault
base64_dataYes
filenameYes

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool 'Scan[s]' and returns 'Scan results,' implying a read-only operation, but lacks details on permissions, rate limits, error handling, or what 'raw clamscan output' entails. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated first, followed by parameter and return value sections. Each sentence adds value, though the structure could be slightly more streamlined by integrating parameter details more seamlessly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is minimally adequate. It covers the purpose and parameters but lacks details on behavioral traits, error cases, or output structure, leaving room for improvement in completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaning by explaining that 'base64_data' is a 'Base64 encoded string representing a file' and 'filename' is the 'Name of the file to use in the scan,' which clarifies parameter roles beyond the schema's basic titles. However, it doesn't cover format specifics or constraints, resulting in a baseline score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Scan a base64-encoded file using ClamAV.' It specifies the verb ('Scan'), resource ('base64-encoded file'), and technology ('ClamAV'). However, with no sibling tools mentioned, it cannot demonstrate differentiation from alternatives, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or exclusions. It only states what the tool does without context for its application, leaving the agent with minimal usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedscan_file

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear, distinct purpose that cannot be confused with any other tool in the set.

Naming Consistency5/5

With only one tool, naming consistency is inherently perfect. The tool name 'scan_file' follows a clear verb_noun pattern, and there are no other tools to create inconsistency.

Tool Count2/5

A single tool for a ClamAV server feels thin and incomplete. While scanning files is the core function, typical antivirus interfaces would include additional operations like checking database versions, updating signatures, or scanning directories. The scope appears too narrow for practical agent use.

Completeness2/5

The tool surface is severely incomplete for a ClamAV server. It only provides file scanning, missing essential operations like updating virus definitions, scanning directories, checking service status, or getting scan statistics. This creates significant gaps that will limit agent effectiveness in security workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers