AssemblyLine 4 MCP Server
Click on "Deploy 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., "@AssemblyLine 4 MCP Server submit URL http://malware.test.com for analysis"
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.
AssemblyLine 4 MCP Server
MCP server for the AssemblyLine 4 malware analysis platform.
Setup
npm install
npm run buildCopy .env.example to .env and fill in your credentials:
AL4_URL=https://your-al4-instance:443
AL4_USERNAME=your_username
AL4_APIKEY=keyname:your_api_key_passwordAPI keys are created in AssemblyLine under Account → Security → Manage API Keys.
Running
AL4_URL=... AL4_USERNAME=... AL4_APIKEY=... node dist/src/index.jsClaude Code integration
Add to your ~/.claude/claude_desktop_config.json (or project .claude/settings.json):
{
"mcpServers": {
"assemblyline4": {
"command": "node",
"args": ["/absolute/path/to/vibe-assemblylinev4-mcp/dist/src/index.js"],
"env": {
"AL4_URL": "https://your-al4-instance:443",
"AL4_USERNAME": "your_username",
"AL4_APIKEY": "keyname:password"
}
}
}
}Self-signed / dev certificates
Set AL4_TLS_VERIFY=false in the env block to skip TLS verification.
Available tools
Tool | Description |
| Current authenticated user |
| Sync file submission (path on disk) |
| Sync URL submission |
| Sync submission by hash (file must exist in AL4 store) |
| Async file ingestion with optional notification queue |
| Async URL ingestion |
| Async hash ingestion |
| Poll whether a submission has finished |
| Submission metadata |
| Complete results tree |
| Summarised results |
| Drain a notification queue |
| Lucene search over submissions |
| Lucene search over alerts |
| Lucene search over the file store |
| Lucene search over service results |
| Fetch a single alert by ID |
| File metadata by SHA256 |
| All service results for a file |
| Highest score for a file |
Testing & CI
Two layers of tests live under test/:
test/integration.ts— drivesAL4Clientand the MCP server end-to-end against an in-process mock of the AL4 REST API (test/mock-al4.ts). Fast, hermetic, runs on every push/PR via.github/workflows/ci.yml.npm testtest/e2e.ts— drivesAL4Clientagainst a real Assemblyline 4 appliance. The.github/workflows/e2e.ymlworkflow spins up the upstreamassemblyline-docker-composeappliance (core stack only — Elasticsearch, Redis, MinIO, AL core/UI/nginx; service images are skipped to fit the runner's disk quota), bootstraps the admin user, mints an API key, and runs the suite. Because submissions are not blocked on services, they complete with an empty result tree — enough to validate every API the MCP server exposes.The e2e workflow runs:
nightly (05:27 UTC),
on
workflow_dispatch,on PRs labelled
run-e2e.
To reproduce locally:
bash scripts/ci/start-al4.sh APIKEY=$(AL4_URL=https://localhost AL4_ADMIN_USER=admin AL4_ADMIN_PASSWORD=admin \ bash scripts/ci/create-apikey.sh) AL4_URL=https://localhost AL4_USERNAME=admin AL4_APIKEY=$APIKEY \ AL4_TLS_VERIFY=false node dist/test/e2e.js
Running CI locally
Two equivalent paths, depending on what you want to validate:
The fast workflow, exactly as GitHub Actions runs it — via
act:# one-time: install act (https://nektosact.com/installation/) npm run ci:local # runs .github/workflows/ci.yml in Dockeractreads.actrc, which pins the catthehackerubuntu:act-latestimage (has Node, git, curl, etc.). This is the cleanest way to catch regressions in the workflow YAML itself.The e2e workflow —
actis not recommended here because the job spins up its own docker-compose stack, and docker-in-docker viaactmakes networking and disk usage painful. Use the wrapper script instead, which runs the same steps directly on your host:npm run e2e:local # build → start appliance → mint key → run e2e → teardown KEEP_RUNNING=1 npm run e2e:local # leave appliance up afterwards for poking SKIP_BUILD=1 npm run e2e:local # skip npm ci + tsc, reuse dist/Or break it apart:
npm run e2e:up # just bring up the appliance APIKEY=$(npm run --silent e2e:apikey) AL4_URL=https://localhost AL4_USERNAME=admin AL4_APIKEY=$APIKEY \ AL4_TLS_VERIFY=false npm run test:e2eRequirements: Linux host (or WSL2 / macOS), docker + compose plugin, node 20+, ~15 GB free disk. Windows users: run the scripts from inside WSL — the appliance won't come up under Git Bash because of how docker-compose paths and
opensslinteract on native Windows.
Available Tools
20 toolsal4_alert_getC
Get a specific alert by its alert ID.
Inputs: alert_id (required).
al4_file_infoB
Get metadata for a file by its SHA256 hash.
Inputs: sha256 (required).
al4_file_resultsC
Get all service analysis results for a file by SHA256.
Inputs: sha256 (required).
al4_file_scoreB
Get the highest score assigned to a file across all submissions.
Inputs: sha256 (required).
al4_ingest_fileA
Asynchronously ingest a local file into AssemblyLine. Preferred for high-volume workflows. Returns an ingest ID. Results arrive on a notification queue.
Inputs: file_path (required), notification_queue, alert, name, +4 more.
al4_ingest_get_messagesB
Retrieve completion notifications from an ingest notification queue.
Inputs: notification_queue (required), count.
al4_ingest_sha256A
Asynchronously ingest a file by SHA256 hash into AssemblyLine. The file must already exist in the AL4 file store.
Inputs: sha256 (required), notification_queue, alert, description, +3 more.
al4_ingest_urlC
Asynchronously ingest a URL into AssemblyLine.
Inputs: url (required), notification_queue, alert, description, +3 more.
al4_search_alertsC
Search AssemblyLine alerts using Lucene query syntax.
Inputs: query (required), fields, rows, offset, +1 more.
al4_search_filesA
Search the AssemblyLine file store using Lucene query syntax (e.g. 'type:executable/windows AND seen.last:[now-7d TO now]').
Inputs: query (required), fields, rows, offset, +1 more.
al4_search_resultsC
Search AssemblyLine service results using Lucene query syntax.
Inputs: query (required), fields, rows, offset, +1 more.
al4_search_submissionsA
Search AssemblyLine submissions using Lucene query syntax (e.g. 'params.submitter:admin AND al_score:[500 TO *]').
Inputs: query (required), fields, rows, offset, +1 more.
al4_submission_fullC
Get the complete results tree for a finished submission, including all service results and scores.
Inputs: sid (required).
al4_submission_getC
Get metadata and status for a submission.
Inputs: sid (required).
al4_submission_is_completeC
Check whether a submission has finished processing.
Inputs: sid (required).
al4_submission_summaryC
Get a summarised view of a submission's results.
Inputs: sid (required).
al4_submit_fileA
Submit a local file to AssemblyLine for immediate synchronous analysis. Returns a submission ID. Limited to 5 concurrent submissions.
Inputs: file_path (required), name, description, classification, +2 more.
al4_submit_sha256B
Submit a file by its SHA256 hash to AssemblyLine for immediate synchronous analysis. The file must already exist in the AL4 file store.
Inputs: sha256 (required), description, classification, services, +1 more.
al4_submit_urlC
Submit a URL to AssemblyLine for immediate synchronous analysis.
Inputs: url (required), description, classification, services, +1 more.
al4_whoamiA
Return details about the currently authenticated AssemblyLine user.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct operation: alerts, files, ingest, search, submissions, submit, and user info. Tools within the same group are clearly differentiated (e.g., al4_submission_full vs al4_submission_summary). No ambiguity exists.
All tools use the consistent `al4_verb_noun` pattern with snake_case. Verbs are predictable (get, search, submit, ingest) and nouns match resources. No mixing of styles.
20 tools fully cover the AssemblyLine API without being excessive. Each tool serves a specific need for file analysis, alerting, and submission management, fitting the platform's scope.
The toolset provides comprehensive file operations (info, results, score, ingestion, submission), search, and alert retrieval. Missing update/delete operations for submissions or alerts, but these are minor gaps for an analysis platform.
Related MCP Connectors
Submit files and URLs to a malware sandbox, poll scans, fetch reports, hashes and IOCs.
Official VirusTotal MCP server: threat reports, file and URL submissions, and analysis recovery.
Scan PDFs, Office docs, and RAG files for malware exploits, macros, CVEs, and AI prompt injection.
Enrich, search, assess, and manage threat intelligence through 80+ typed MCP tools.