steam_lookup
Retrieve Steam user profile information using a 64-bit Steam ID for OSINT investigations and security research.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steamId | Yes | Steam ID to lookup (64-bit ID) |
Implementation Reference
- src/tools/gaming.ts:27-38 (handler)The implementation of the steamLookup method in the GamingApiClient class, which makes a request to the Steam Web API.
async steamLookup(steamId: string): Promise<any> { const apiKey = process.env.STEAM_API_KEY; if (!apiKey) throw new McpError(ErrorCode.InvalidRequest, "STEAM_API_KEY is not configured"); try { const response = await fetch(`https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=${apiKey}&steamids=${steamId}`); const data = await response.json() as any; return data.response?.players?.[0] || { message: "Player not found" }; } catch (error) { throw new McpError(ErrorCode.InternalError, `Steam Lookup error: ${(error as Error).message}`); } } - src/index.ts:618-627 (registration)The registration of the 'steam_lookup' tool in the main MCP server index file.
server.tool( "steam_lookup", { steamId: z.string().describe("Steam ID to lookup (64-bit ID)") }, async ({ steamId }) => { const result = await gamingClient.steamLookup(steamId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; } );