Skip to main content
Glama
CloudWaddie

OSINT MCP Server

mac_lookup

Identify device manufacturers by querying MAC addresses to support network analysis and security investigations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
macYesMAC address to lookup vendor for

Implementation Reference

  • The tool definition and registration for 'mac_lookup' in the main server file.
    server.tool(
      "mac_lookup",
      { mac: z.string().describe("MAC address to lookup vendor for") },
      async ({ mac }) => {
        const result = await macClient.getVendor(mac);
        return {
          content: [{ type: "text", text: result }],
        };
      }
  • The actual implementation of the MAC address vendor lookup logic.
    async getVendor(mac: string): Promise<string> {
      try {
        const response = await fetch(`${this.baseUrl}${encodeURIComponent(mac)}`);
        if (response.status === 404) {
          return "Unknown Vendor";
        }
        if (!response.ok) {
          throw new Error(`API failed: ${response.statusText}`);
        }
        return await response.text();
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `MAC Address 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