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
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | Discord User ID to lookup |
Implementation Reference
- src/tools/gaming.ts:13-24 (handler)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) }], }; } );