Skip to content
LangChain

Leetcode for LangChain

io.github.pipeworx-io/leetcode

LeetCode public profiles, solved counts, daily question, problem detail.

client:LangChain transport:streamable-http

Install Leetcode in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "leetcode": {
            "transport": "streamable_http",
            "url": "https://gateway.pipeworx.io/leetcode/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Leetcode in other clients