Skip to main content
Glama
CloudWaddie

OSINT MCP Server

discord_lookup

Retrieve Discord user information by ID for OSINT investigations, enabling security researchers to gather data for analysis and verification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesDiscord User ID to lookup

Implementation Reference

  • The handler implementation for the discord_lookup tool.
    async discordLookup(userId: string): Promise<any> {
      try {
        const response = await fetch(`https://api.lanyard.rest/v1/users/${userId}`);
        if (!response.ok) {
          return { message: "User not found or not on Lanyard. Consider using a Discord Bot token for direct lookups." };
        }
        const data = await response.json() as any;
        return data.data;
      } catch (error) {
        throw new McpError(ErrorCode.InternalError, `Discord Lookup error: ${(error as Error).message}`);
      }
    }
  • src/index.ts:607-616 (registration)
    Registration of the discord_lookup tool in the MCP server.
    server.tool(
      "discord_lookup",
      { userId: z.string().describe("Discord User ID to lookup") },
      async ({ userId }) => {
        const result = await gamingClient.discordLookup(userId);
        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