ExploitDB Security Intelligence
STDIOModel Context Protocol server providing access to ExploitDB functionality for cybersecurity research.
Model Context Protocol server providing access to ExploitDB functionality for cybersecurity research.
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: [email protected]
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.example
Initialize the database:
npm run update-db
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"] } } }
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)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>
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.
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 [email protected].