A comprehensive Model Context Protocol (MCP) server that provides access to URLhaus, a project from abuse.ch that collects and shares malicious URLs used for malware distribution. This server enables AI agents to perform threat intelligence research and cybersecurity analysis through the URLhaus database.
This MCP server provides the following tools for querying URLhaus data:
- get_recent_urls: Get the most recent malicious URLs from URLhaus
- lookup_url: Get detailed information about a specific URL
- search_urls: Search for URLs by various criteria (host, URL, tag, or signature)
- lookup_host: Get information about URLs hosted on a specific host/domain
- lookup_payload: Get information about a malware payload by its hash
- get_payloads: Get recent malware payloads from URLhaus
- get_urls_by_tag: Get URLs associated with a specific malware tag/family
- get_urls_by_signature: Get URLs associated with a specific malware signature
-
Clone the repository:
git clone https://github.com/Cyreslab-AI/urlhaus-mcp-server.git cd urlhaus-mcp-server -
Install dependencies:
npm install
-
Build the server:
npm run build
npm install -g urlhaus-mcp-serverAdd the server to your MCP settings configuration:
{
"mcpServers": {
"urlhaus": {
"command": "node",
"args": ["/path/to/urlhaus-mcp-server/build/index.js"]
}
}
}No API keys or authentication are required as URLhaus provides a free public API.
{
"tool": "get_recent_urls",
"arguments": {
"limit": 50
}
}{
"tool": "lookup_url",
"arguments": {
"url": "https://suspicious-domain.com/malware.exe"
}
}{
"tool": "search_urls",
"arguments": {
"search_term": "malicious-domain.com",
"limit": 100
}
}{
"tool": "get_urls_by_tag",
"arguments": {
"tag": "emotet",
"limit": 50
}
}{
"tool": "lookup_payload",
"arguments": {
"hash": "d41d8cd98f00b204e9800998ecf8427e"
}
}URLhaus has rate limits to prevent abuse. If you encounter rate limiting, wait before making additional requests.
All responses include:
query_status: Status of the API query ("ok" or error message)summary: Human-readable summary of results- Data specific to the query type (URLs, payloads, etc.)
URLhaus is operated by abuse.ch and provides:
- Real-time feed of malicious URLs
- Information about malware payloads
- Integration with various threat intelligence platforms
- Free access to security researchers and defenders
For more information, visit: https://urlhaus.abuse.ch/
To run in development mode:
npm run watchTo inspect the server:
npm run inspectorContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- URLhaus by abuse.ch for providing the free threat intelligence API
- Model Context Protocol for the MCP framework
- Cyreslab AI for development and maintenance
If you encounter any issues or have questions, please open an issue on GitHub.