Skip to main content
Glama
CloudWaddie

OSINT MCP Server

domain_email_search

Search for email addresses associated with a specific domain to support security research and data gathering activities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain to search for associated emails

Implementation Reference

  • src/index.ts:539-548 (registration)
    Tool registration for domain_email_search in src/index.ts.
    server.tool(
      "domain_email_search",
      { domain: z.string().describe("Domain to search for associated emails") },
      async ({ domain }) => {
        const result = await emailSearchClient.searchDomain(domain);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Implementation of the email search logic in the EmailSearchClient class.
    async searchDomain(domain: string): Promise<string[]> {
      try {
        // Using a known endpoint that often contains email leaks or associations
        // This is a placeholder for a real scraper or API
        const url = `https://api.hackertarget.com/hostsearch/?q=${domain}`;
        const response = await fetch(url);
        const text = await response.text();
        
        // Heuristic: Search for anything that looks like an email in the response
        const emailRegex = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
        const emails = text.match(emailRegex) || [];
        
        return Array.from(new Set(emails));
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `Email Search error: ${(error as Error).message}`);
      }
    }

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