Skip to main content
Glama
CloudWaddie

OSINT MCP Server

phone_lookup

Look up phone numbers to identify associated information and potential risks using open-source intelligence services.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesPhone number to lookup (include country code)

Implementation Reference

  • Registration and handler registration for phone_lookup tool.
    server.tool(
      "phone_lookup",
      { number: z.string().describe("Phone number to lookup (include country code)") },
      async ({ number }) => {
        const result = await phoneClient.lookup(number);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Actual implementation of the phone lookup logic within the PhoneApiClient class.
    async lookup(number: string): Promise<any> {
      const apiKey = process.env.ABSTRACT_PHONE_API_KEY;
      if (!apiKey) {
        // Fallback to basic formatting if no key
        return {
          number,
          message: "Configure ABSTRACT_PHONE_API_KEY for full carrier/location data",
          basicFormat: true
        };
      }
    
      try {
        return await this.fetch<any>("", {
          method: "GET",
        }, {
          api_key: apiKey,
          phone: number,
        });
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `Phone Lookup 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