Skip to main content
Glama
CloudWaddie

OSINT MCP Server

quick_port_scan

Scan an IP address to identify open ports for security assessment and network analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIP address to perform a quick port scan on

Implementation Reference

  • The actual implementation of the port scan logic using the HackerTarget API.
    async scanPorts(ip: string): Promise<string> {
      try {
        const response = await fetch(`https://api.hackertarget.com/nmap/?q=${ip}`);
        return await response.text();
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `Port Scan error: ${(error as Error).message}`);
      }
    }
  • src/index.ts:697-706 (registration)
    Registration of the quick_port_scan tool in the MCP server instance.
    server.tool(
      "quick_port_scan",
      { ip: z.string().describe("IP address to perform a quick port scan on") },
      async ({ ip }) => {
        const result = await netAdvClient.scanPorts(ip);
        return {
          content: [{ type: "text", text: result }],
        };
      }
    );

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