Skip to main content
Glama

LeetCode MCP Server

get_problem

Retrieve detailed information about a specific LeetCode problem, including its description, examples, constraints, and related data, using the problem's URL slug as the input.

Instructions

Retrieves details about a specific LeetCode problem, including its description, examples, constraints, and related information

Input Schema

NameRequiredDescriptionDefault
titleSlugYesThe URL slug/identifier of the problem (e.g., 'two-sum', 'add-two-numbers') as it appears in the LeetCode URL

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "titleSlug": { "description": "The URL slug/identifier of the problem (e.g., 'two-sum', 'add-two-numbers') as it appears in the LeetCode URL", "type": "string" } }, "required": [ "titleSlug" ], "type": "object" }

Other Tools from LeetCode MCP Server

Related Tools

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/jinzcdev/leetcode-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server