by Cyreslab-AI
Provides AI assistants with searchable access to the ExploitDB repository, enabling queries for exploits, CVE identifiers, platforms, authors, and related metadata through the Model Context Protocol.
The server exposes the full ExploitDB dataset via a set of MCP tools, allowing AI models to retrieve exploit details, search by keywords, CVE IDs, platforms, dates, tags, and more. All data is stored locally in a SQLite database that is updated automatically.
git clone https://github.com/Cyreslab-AI/exploitdb-mcp-server.git
cd exploitdb-mcp-server
npm install
npm run build
.env.example to .env and adjust variables such as DATA_DIR, UPDATE_INTERVAL, etc.npm run update-db
node build/index.js
{
"mcpServers": {
"mcp-exploitdb-server": {
"command": "node",
"args": ["/path/to/exploitdb-mcp-server/build/index.js"]
}
}
}
Q: How often is the database refreshed?
A: By default every 24 hours (UPDATE_INTERVAL=24). Set to 0 to disable automatic updates.
Q: Can I limit the number of results returned?
A: Yes, most tools accept a limit parameter (default is the value of MAX_RESULTS, 10). Adjust the environment variable if you need a higher default.
Q: Does the server include shellcode exploits?
A: Currently only the files_exploits.csv dataset is imported; shellcode entries from files_shellcodes.csv are not ingested.
Q: How do I add new environment variables?
A: Edit the .env file or export variables before starting the server; the server reads them at startup.
Q: What if an exploit ID is missing or duplicated?
A: The importer upserts by id; later rows overwrite earlier ones, and missing required fields receive sensible defaults.
A Model Context Protocol server that provides access to ExploitDB functionality, developed by Cyreslab.ai. This server enables AI assistants like Claude to query information about security exploits and vulnerabilities, enhancing cybersecurity research and threat intelligence capabilities.
GitHub Repository: https://github.com/Cyreslab-AI/exploitdb-mcp-server Contact: contact@cyreslab.ai
Clone the repository:
git clone https://github.com/Cyreslab-AI/exploitdb-mcp-server.git
cd exploitdb-mcp-server
Install dependencies:
npm install
Build the project:
npm run build
Configure the server:
.env file in the root directory based on .env.exampleInitialize the database:
npm run update-db
Note: The initial database update may take several minutes as it processes ~47,000 exploits from the ExploitDB CSV file. The script handles missing or malformed data gracefully by using fallback values for required fields.
Run the server:
node build/index.js
To use this server with Claude or other MCP-compatible assistants, add it to your MCP configuration:
{
"mcpServers": {
"mcp-exploitdb-server": {
"command": "node",
"args": ["/path/to/exploitdb-mcp-server/build/index.js"]
}
}
}
The ExploitDB MCP server provides 18 comprehensive tools for querying and analyzing exploit data:
Use the search_exploits tool to search for exploits in the database:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_exploits</tool_name>
<arguments>
{
"query": "wordpress plugin",
"platform": "php",
"limit": 5
}
</arguments>
</use_mcp_tool>
Additional search parameters:
type: Filter by exploit type (e.g., webapps, remote, local, dos, hardware, shellcode)cve: Filter by CVE IDauthor: Filter by author namestart_date/end_date: Filter by date range (YYYY-MM-DD)verified: Filter by verified status (true/false)offset: For paginationUse the get_exploit tool to retrieve detailed information about a specific exploit:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_exploit</tool_name>
<arguments>
{
"id": 12345,
"include_code": true
}
</arguments>
</use_mcp_tool>
Use the find_by_cve tool to find all exploits related to a specific CVE:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>find_by_cve</tool_name>
<arguments>
{
"cve": "CVE-2021-44228",
"limit": 10
}
</arguments>
</use_mcp_tool>
Use the get_recent_exploits tool to retrieve recently added exploits:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_recent_exploits</tool_name>
<arguments>
{
"limit": 10
}
</arguments>
</use_mcp_tool>
Use the get_statistics tool to get insights about the exploits in the database:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_statistics</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>
Search exploits for a specific platform with advanced filters:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_by_platform</tool_name>
<arguments>
{
"platform": "php",
"type": "webapps",
"verified": true,
"limit": 10
}
</arguments>
</use_mcp_tool>
Find all exploits by a specific author:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_by_author</tool_name>
<arguments>
{
"author": "Offensive Security",
"limit": 10
}
</arguments>
</use_mcp_tool>
Find exploits within a specific date range:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_by_date_range</tool_name>
<arguments>
{
"start_date": "2024-01-01",
"end_date": "2024-12-31",
"platform": "windows",
"limit": 20
}
</arguments>
</use_mcp_tool>
Search exploits by ExploitDB's real tags:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_by_tags</tool_name>
<arguments>
{
"tags": ["SQL Injection (SQLi)", "Remote"],
"match_all": false,
"limit": 10
}
</arguments>
</use_mcp_tool>
Find recently added exploits:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_trending_exploits</tool_name>
<arguments>
{
"days": 30,
"limit": 10
}
</arguments>
</use_mcp_tool>
Compare multiple exploits side-by-side:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>compare_exploits</tool_name>
<arguments>
{
"ids": [12345, 12346, 12347]
}
</arguments>
</use_mcp_tool>
Find exploits related to a specific exploit:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_related_exploits</tool_name>
<arguments>
{
"id": 12345,
"relation_type": "platform",
"limit": 10
}
</arguments>
</use_mcp_tool>
Retrieve multiple exploits efficiently:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>batch_get_exploits</tool_name>
<arguments>
{
"ids": [12345, 12346, 12347, 12348],
"include_code": false
}
</arguments>
</use_mcp_tool>
Export search results in CSV or JSON format:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>export_search_results</tool_name>
<arguments>
{
"query": "wordpress",
"format": "csv",
"platform": "php",
"limit": 100
}
</arguments>
</use_mcp_tool>
The server can be configured using environment variables or a .env file:
| Variable | Description | Default |
|---|---|---|
CLONE_REPOSITORY |
Whether to clone the ExploitDB repository | false |
REPOSITORY_URL |
URL of the ExploitDB repository | https://gitlab.com/exploit-database/exploitdb.git |
CSV_URL |
URL of the ExploitDB CSV file | https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv |
DATA_DIR |
Directory to store data | ./data |
DB_PATH |
Path to the SQLite database | ./data/exploitdb.sqlite |
UPDATE_INTERVAL |
Update frequency in hours (0 to disable) | 24 |
MAX_RESULTS |
Maximum number of results to return per query | 10 |
This server uses data from the Exploit Database, maintained by Offensive Security. The data is either downloaded directly from the CSV file or cloned from the ExploitDB GitLab repository.
The ingested CSV (files_exploits.csv) has 17 columns:
id, file, description, date_published, author, type, platform, port, date_added, date_updated, verified, codes, tags, aliases, screenshot_url, application_url, source_url.
All 17 columns are ingested and stored:
codes — the real, semicolon-delimited list of CVE/OSVDB references (e.g. CVE-2017-13262;CVE-2017-13261;OSVDB-12345). All CVE identifiers are parsed out of this column into a normalized exploit_cves table, so an exploit that addresses multiple CVEs is correctly discoverable by every one of them. If codes is empty (older rows sometimes lack it), the server falls back to regexing a CVE pattern out of the description text.tags — the real ExploitDB tag(s) for the exploit (e.g. SQL Injection (SQLi), Metasploit Framework (MSF)), stored as-is. These are not guessed from keyword-matching the description.aliases — alternate names/identifiers for the exploit (e.g. dirtycow, ImageTragick), exposed as an array.screenshot_url, application_url, source_url — reference links from the original ExploitDB entry, surfaced as screenshotUrl, applicationUrl, sourceUrl.Other data-quality handling:
date_published from the CSV, with fallbacks to date_added, date_updated, or a default date if all are missingid; the later row wins (upsert by id)Each exploit's JSON representation includes both cve (the primary/first CVE, kept for backward compatibility) and cves (the full array of every CVE associated with the exploit).
Note on type: the ingested files_exploits.csv only contains webapps, remote, local, dos, and hardware rows — ExploitDB's shellcode category lives in a separate CSV (files_shellcodes.csv) that this server does not currently ingest. shellcode is accepted as a filter value for forward-compatibility but will not currently match any row.
The database typically contains:
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
Have feature suggestions or found a bug? Please open an issue on our GitHub repository or contact us directly at contact@cyreslab.ai.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by chaitin
A self‑hosted web application firewall and reverse proxy that protects web applications from attacks and exploits by filtering, monitoring, and blocking malicious HTTP/S traffic.
by beenuar
Ingests security telemetry, normalizes it, runs a large library of detection rules, correlates alerts, and leverages AI agents for triage and investigation while recording every prompt, tool call, and decision in an immutable ledger.
by snyk
Scans installed AI agent components, MCP servers, and skill files for prompt‑injection, tool poisoning, toxic flows, hard‑coded secrets and other supply‑chain risks.
by OpenOSINT
Provides an AI‑driven OSINT workflow that lets users query a natural‑language REPL, CLI, web UI, or MCP server, automatically selecting and chaining 18 reconnaissance tools to collect, pivot, verify, and report public‑source intelligence.
by 2akouwu
Provides deterministic verification of AI‑generated claims against binary artifacts, ensuring every structural or behavioral assertion is grounded in the actual file and preserving verified state across context resets.
by hashgraph-online
Open-source antivirus for AI agents that blocks risky tools, secret exposure, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.
by safedep
Provides enterprise‑grade open source software supply chain security by scanning source code, dependencies, containers and SBOMs, detecting vulnerabilities and malicious packages, and enforcing policy as code.
by tufantunc
Provides controlled SSH access for LLM agents with command classification, policy‑based authorization, human‑in‑the‑loop approval, and immutable audit logging.
by semgrep
Offers an MCP server that lets LLMs, agents, and IDEs run Semgrep scans to detect security vulnerabilities in source code.
{
"mcpServers": {
"exploitdb-mcp-server": {
"command": "npx",
"args": [
"-y",
"exploitdb-mcp-server"
],
"env": {}
}
}
}claude mcp add exploitdb-mcp-server npx -y exploitdb-mcp-server