
Connects to LeetCode's public APIs to pull user profiles, problem solving stats, daily challenges, and problem details. Runs through Pipeworx's hosted gateway, so you can either point directly at the LeetCode endpoint or use their unified gateway that bundles 250+ data sources. Supports an ask_pipeworx tool that interprets natural language queries instead of making you call specific functions. Useful if you're building coding interview prep assistants, tracking your own progress programmatically, or need to grab problem descriptions and constraints without opening a browser. No authentication required since it only touches public profile data.
Public tool metadata for what this MCP can expose to an agent.
get-daily-challengeNo parameter schema in public metadata yet.
get-problem1 paramstitleSlugstringsearch-problems4 paramsdifficultystringEASY · MEDIUM · HARDlimitnumberskipnumbertagsstringget-user-profile1 paramsusernamestringget-user-submissions2 paramslimitnumberusernamestringget-contest-details1 paramscontestSlugstringget-user-contest-ranking1 paramsusernamestringLeetCode MCP — public profile + problem lookups via the keyless GraphQL endpoint at leetcode.com/graphql.
Part of Pipeworx — an MCP gateway connecting AI agents to 1476+ live data sources.
user_profile(username) — public profile (real name, avatar, ranking, contest rating)user_solved(username) — solved-problem stats by difficultyuser_recent_submissions(username, limit?) — recent accepted submissionsdaily_question() — today's daily coding challengeproblem(title_slug) — problem detail by slug (e.g. "two-sum")problemset_stats() — total problems by difficultyUses LeetCode's public GraphQL endpoint — unofficial, may change without notice.
https://leetcode.com/graphql
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"leetcode": {
"url": "https://gateway.pipeworx.io/leetcode/mcp"
}
}
}
tools/list at https://gateway.pipeworx.io/leetcode/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1476+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Leetcode data" })
The gateway picks the right tool and fills the arguments automatically.
MIT