local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Provides the ability to look up Google's ASN information and network details through the ASN lookup functionality.
IR Toolshed MCP Server
A comprehensive Model Context Protocol (MCP) server providing incident response and network analysis tools for security professionals. This server allows AI agents like Claude to perform various network-related lookups and analyses to assist with security investigations.
Overview
The IR Toolshed MCP Server provides a suite of networking and security tools accessible via the Model Context Protocol. It's designed to be a general-purpose service for network incident responders, enabling them to perform basic lookups using:
- ASN (Autonomous System Number) lookups
- DNS lookups and analysis
- WHOIS record retrieval
- IP geolocation
- And more network analysis capabilities to come
Each tool is accompanied by detailed documentation as a resource, making it easy for AI systems to understand how to use the tools and what output to expect.
Current Tools
ASN Lookup Tool
The ASN lookup tool returns information about an IP address including:
- The IP address that was queried
- The AS number associated with the IP address
- The name of the organization that owns the AS number
DNS Lookup Tool
The DNS lookup tool provides DNS record information for domains:
- Supports multiple record types (A, AAAA, MX, NS, TXT)
- Returns formatted DNS records
- Handles both IPv4 and IPv6 queries
WHOIS Lookup Tool
The WHOIS lookup tool retrieves domain registration information:
- Domain ownership details
- Registration dates
- Nameserver information
- Registrar details
Geolocation Tool
The IP geolocation tool provides location information using MaxMind's GeoLite2 database:
- Country and city-level location data
- Latitude and longitude coordinates
- Network information
- Timezone data
Note: The geolocation tool requires a MaxMind license key. You can:
- Get a free key from: https://dev.maxmind.com/geoip/geolite2-free-geolocation-data
- Either:
- Set the MAXMIND_LICENSE_KEY environment variable
- Provide it as a parameter when using the tool
- Enter it when prompted
More tools will be added in future releases.
Prerequisites
- Python 3.8 or newer (3.13+ recommended)
- uv Python package manager
Installation
- Clone this repository:
- Create a virtual environment:
- Activate the virtual environment:
On Windows:
On macOS/Linux:
- Install the package in development mode:
Running the Server
Start the MCP server with:
This will launch the server in development mode, making it available to MCP clients like Claude Desktop.
Using the Tools
ASN Lookup Tool
When connected to an MCP client such as Claude Desktop, you can use the ASN lookup tool by providing an IP address:
Example output:
DNS Lookup Tool
When connected to an MCP client such as Claude Desktop, you can use the DNS lookup tool by providing a domain:
Example output:
WHOIS Lookup Tool
When connected to an MCP client such as Claude Desktop, you can use the WHOIS lookup tool by providing a domain:
Example output:
Geolocation Tool
When connected to an MCP client such as Claude Desktop, you can use the geolocation tool by providing an IP address:
Example output:
Error Handling
Each tool follows a consistent error handling pattern:
General error response format:
Tool-specific error examples:
ASN Lookup:
DNS Lookup:
WHOIS Lookup:
Geolocation:
Project Structure
The project follows a standard Python package structure:
Development
Setting Up Development Environment
- Clone this repository:
- Create a virtual environment and install dependencies:
Running Tests
To run the test suite:
This will:
- Run all tests in the
tests/
directory - Show test coverage information
- Display detailed output for any failures
Note: Some tests require additional configuration:
- Geolocation tests require a MaxMind GeoLite2 database and license key
- WHOIS tests may fail if the WHOIS service is unavailable
Code Quality
The project uses several tools to maintain code quality:
- Format code with Black:
- Sort imports with isort:
- Run type checking with mypy:
- Run linting with ruff:
Roadmap
Completed: ✓ ASN lookups ✓ DNS record lookups (A, AAAA, MX, etc.) ✓ WHOIS record retrieval ✓ IP geolocation services
Future tools planned for inclusion:
- Domain reputation scoring
- SSL certificate analysis
- Network port scanning
- Threat intelligence integration
- Passive DNS history
- Email security analysis (SPF, DKIM, DMARC)
- BGP route analysis
- Network traffic visualization
- Malware hash lookups
- URL reputation checking
Contributing
Contributions to add new IR tools or improve existing ones are welcome. Please follow these steps:
- Fork the repository
- Create a feature branch
- Add your tool following the existing pattern in mcp_server.py
- Include appropriate documentation as a resource
- Submit a pull request with a clear description of your changes
License
Apache 2.0
Security Considerations
This server is intended for legitimate security research and incident response. Users must ensure they comply with all applicable laws and regulations when using these tools.
This server cannot be installed
A Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.