A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/deshabhishek007/domain-tools-mcp-server below:

deshabhishek007/domain-tools-mcp-server: A Model Context Protocol (MCP) server for comprehensive domain analysis: WHOIS, DNS records, and DNS health checks.

A Model Context Protocol (MCP) server for comprehensive domain analysis: WHOIS, DNS records, and DNS health checks.

  1. Overview
  2. Features
  3. Project Structure
  4. Requirements
  5. Installation
  6. Deployment
  7. Usage
  8. API Reference
  9. Configuration
  10. Troubleshooting
  11. Security Considerations
  12. Support and Contribution
  13. License
  14. Acknowledgments

The Domain Tools MCP Server is a Model Context Protocol (MCP) server that provides comprehensive domain analysis capabilities. It offers tools for WHOIS lookups, DNS record queries, and DNS health checking to help you analyze and monitor domain configurations.

.
├── domain_tools_server.py   # Main server implementation
├── requirements.txt
├── .gitignore
├── README.md
└── ...
git clone https://github.com/deshabhishek007/domain-tools-mcp-server.git
cd domain-tools-mcp-server
2. Create a Virtual Environment (Recommended)
python3 -m venv domain-tools-env
source domain-tools-env/bin/activate
pip install -r requirements.txt
python -c "import mcp, dns.resolver, whois; print('All dependencies installed successfully!')"
python domain_tools_server.py

Or make it executable:

chmod +x domain_tools_server.py
./domain_tools_server.py
  1. Create a service file /etc/systemd/system/domain-tools-mcp.service:

    [Unit]
    Description=Domain Tools MCP Server
    After=network.target
    
    [Service]
    Type=simple
    User=your-username
    WorkingDirectory=/path/to/your/project
    Environment=PATH=/path/to/your/project/domain-tools-env/bin
    ExecStart=/path/to/your/project/domain-tools-env/bin/python domain_tools_server.py
    Restart=always
    RestartSec=10
    
    [Install]
    WantedBy=multi-user.target
  2. Enable and start the service:

    sudo systemctl daemon-reload
    sudo systemctl enable domain-tools-mcp.service
    sudo systemctl start domain-tools-mcp.service
  1. Create a Dockerfile:

    FROM python:3.13-slim
    WORKDIR /app
    COPY requirements.txt .
    RUN pip install --no-cache-dir -r requirements.txt
    COPY domain_tools_server.py .
    EXPOSE 8080
    CMD ["python", "domain_tools_server.py"]
  2. Build and run:

    docker build -t domain-tools-mcp .
    docker run -p 8080:8080 domain-tools-mcp

The server implements the Model Context Protocol and can be integrated with any MCP-compatible client.

Example MCP Client Configuration:

{
  "servers": {
    "domain-tools": {
      "command": "python",
      "args": ["/path/to/domain_tools_server.py"],
      "env": {}
    }
  }
}
4. Complete Domain Analysis

Each tool follows a JSON schema for input. See the code for full details.

All tools return responses in the following format:

[
  {
    "type": "text",
    "text": "Tool-specific formatted output"
  }
]

You can customize the DNS resolver in the server code:

self.dns_resolver.nameservers = ['8.8.8.8', '8.8.4.4']
self.dns_resolver.timeout = 10
self.dns_resolver.lifetime = 30

You can configure the server using environment variables:

export DNS_TIMEOUT=10
export DNS_LIFETIME=30
export WHOIS_TIMEOUT=30
export SERVER_NAME="domain-tools"
export SERVER_VERSION="1.0.0"

Enable debug logging by adding this to your server:

import logging
logging.basicConfig(level=logging.DEBUG)

This project is licensed under the MIT License. See the LICENSE file for details.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4