questionSlug
Optional problem identifier (string, optional)
How to use it
questionSlug is exposed by the Leetcode MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the questionSlug tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Leetcode MCP Server
npx -y @jinzcdev/leetcode-mcp-server --site globalOther tools in Leetcode MCP Server (39)
Whether to include only the contests the user has participated in (boolean, optional, default: true)
Problem category filter (string, optional, default: "all-code-essentials")
❌
Custom input to run (string, optional)
Problem difficulty level filter (enum: "EASY", "MEDIUM", "HARD", optional)
✅
✅
❌
✅
✅
✅
✅
✅
✅
✅
✅
✅
The numerical submission ID (number, required)
Search term to filter notes (string, optional)
Programming language filter (string, optional, CN only)
Pagination token for retrieving next page (string, optional, CN only)
Maximum number of problems to return (number, optional, default: 10)
✅
Number of problems to skip (number, optional)
Polling interval in milliseconds (number, optional, default: 1500)
Filter by question status (enum: "ATTEMPTED", "SOLVED", optional)
✅
❌
✅
Keywords to search in problem titles and descriptions (string, optional)
Number of notes to skip (number, optional, default: 0)
Submission status filter (enum: "AC", "WA", optional, CN only)
✅
List of topic tags to filter problems by (string[], optional)
Polling timeout in milliseconds (number, optional, default: 120000)
The URL slug/identifier of the problem (string, required)
Source code to run (string, required)
❌
LeetCode username (string, required)