Skip to main content
Glama
CloudWaddie

OSINT MCP Server

whois_history

Retrieve historical WHOIS records for domains to analyze ownership changes and registration details over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to lookup WHOIS history (Requires WHOISXML_API_KEY)

Implementation Reference

  • The getHistory function executes the WHOIS history lookup by making a GET request to the WHOISXML API.
    async getHistory(domain: string): Promise<any> {
      const apiKey = process.env.WHOISXML_API_KEY;
      if (!apiKey) {
        throw new McpError(ErrorCode.InvalidRequest, "WHOISXML_API_KEY is not configured");
      }
    
      try {
        return await this.fetch<any>("", {
          method: "GET",
        }, {
          apiKey: apiKey,
          domainName: domain,
        });
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `WHOIS History error: ${(error as Error).message}`);
      }
    }
  • src/index.ts:122-131 (registration)
    The 'whois_history' tool is registered on the MCP server in index.ts, calling the getHistory method of WhoisXmlApiClient.
    server.tool(
      "whois_history",
      { domain: z.string().describe("Domain name to lookup WHOIS history (Requires WHOISXML_API_KEY)") },
      async ({ domain }) => {
        const result = await whoisHistoryClient.getHistory(domain);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CloudWaddie/osint-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server