Skip to main content
Glama

LeetCode MCP Server

get_problem_solution

Retrieve detailed content and metadata for a specific LeetCode solution, including full article text, author details, and related navigation links using a unique topic ID.

Instructions

Retrieves the complete content and metadata of a specific solution, including the full article text, author information, and related navigation links

Input Schema

NameRequiredDescriptionDefault
topicIdYesThe unique topic ID of the solution to retrieve. This ID can be obtained from the 'topicId' field in the response of the 'list_problem_solutions' tool. Format is typically a string of numbers and letters that uniquely identifies the solution in LeetCode's database.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "topicId": { "description": "The unique topic ID of the solution to retrieve. This ID can be obtained from the 'topicId' field in the response of the 'list_problem_solutions' tool. Format is typically a string of numbers and letters that uniquely identifies the solution in LeetCode's database.", "type": "string" } }, "required": [ "topicId" ], "type": "object" }

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