get-contest-detailsLABSCO SUMMARY
Problems and a user's record come back as data, so a practice session can be assembled without opening the site.
It is a read path only: nothing here submits a solution, runs code or edits a profile, which makes it a source for building study sets and reviewing history rather than a way to practise inside the client. The two halves pair well — search-problems narrows by tag and difficulty, get-user-submissions shows what has already been attempted — and contest results are reachable from both a contest and a user.
What it is
A read-only server over LeetCode's public data, 7 tools spanning problems, the daily challenge, contests, and user profiles, submissions and rankings.
What you get
- get-problem returns a problem by its titleSlug, and get-daily-challenge returns the current day's without needing to know which one it is
- search-problems filters by tags and difficulty, with skip and limit for paging through the result set
- get-user-profile and get-user-submissions cover a public profile and its recent activity, the second with a limit
- get-contest-details by contestSlug and get-user-contest-ranking for where a user placed in one
Requirements
A titleSlug, contestSlug or username to address anything — the tools take slugs and usernames rather than numeric IDs, so a job that starts from a problem title goes through search-problems first. No key or account appears in the tool set. MIT licensed.
Setup effort
One command — npx -y @mcpfun/mcp-server-leetcode
USE CASES
Working today's problem
Get the daily challenge without knowing which one it is, then pull the full problem by its slug to work from the statement rather than a summary.
Building a practice set on one weak topic
Filter by tag and difficulty with paging to assemble a list, then open each problem by slug as you work through it.
Reviewing how a contest went
Read the contest itself, then a participant's placing in it, and their recent submissions to see which problems cost the time.
7 tools
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get-daily-challengeget-problemget-user-contest-rankingget-user-profileget-user-submissionssearch-problemsBEFORE YOU INSTALL
What to know first
Tools you get
7 tools when we connected.
Requires
npx on PATH
CONTEXT COST
Light Standing cost
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Connect your client
Add the block to your client, or run the command directly.
Server setup
Configuration file
{
"mcpServers": {
"mcp-server-leetcode": {
"command": "npx",
"args": [
"-y",
"@mcpfun/mcp-server-leetcode"
]
}
}
}npx
npx -y @mcpfun/mcp-server-leetcode