1. Conduid
  2. Developer Tools
  3. Lc MCP Server
MCP server · Developer Tools

Lc MCP Server

leetcode mcp server written in golang

Unclaimed BSD-3-Clause last commit a year ago devtools
49Fair

Scored 5 months ago · breakdown

About Lc MCP Server

Lc MCP Server is an MCP server published by moresearch in the Developer Tools category: leetcode mcp server written in golang.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/moresearch/lc-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Lc MCP Server

Powered by Claude · Grounded in docs

I know everything about Lc MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

lc-mcp-server

leetcode mcp server written in golang.

LeetCode Cookie Authentication

This utility provides a robust way to extract your LeetCode authentication cookies (LEETCODE_SESSION and csrftoken) for use with scripts, bots, or custom clients. It launches a browser, helps you log in manually, and outputs environment variables you can export and use.

Features

  • Cloudflare-aware: Handles Cloudflare challenges and waits for human verification.
  • Anti-bot evasion: Configures the browser to look less like a bot.
  • Manual login: You log in using the real browser, ensuring security and compatibility.
  • Environment variable export: Outputs export LEETCODE_SESSION="..." and export CSRF_TOKEN="...".
  • Credential caching: Saves credentials for reuse until they expire.
  • Debug output: Shows extracted cookies for troubleshooting.

Usage

  1. Install dependencies:

    go get -u github.com/chromedp/chromedp
    
  2. Run the authentication script:

    go run auth.go
    

    This will launch a Chrome window. Complete any Cloudflare or LeetCode login steps manually.
    When you reach the main LeetCode page, press Enter in the terminal.

  3. Export environment variables:

    You can either pipe and automatically export with:

    eval $(go run auth.go)
    

    Or save to a file and source it:

    go run auth.go > .leetcode.env
    source .leetcode.env
    
  4. Use in your client/server:

    Your environment will now contain:

    • LEETCODE_SESSION
    • CSRF_TOKEN

    Example in Go:

    session := os.Getenv("LEETCODE_SESSION")
    csrf := os.Getenv("CSRF_TOKEN")
    

Troubleshooting

  • Cloudflare not passing: Try waiting longer or ensure you interact with the page (mouse, scroll).
  • Missing cookies: Make sure you have logged in and reached a non-login page.
  • 2FA or Captcha: Complete all verification steps before pressing Enter.
  • Windows users: Ensure chromedp can launch Chrome (you may need to install Chrome).

Security

Your session and csrf tokens are sensitive. Do not share or commit them.
Session cookies expire and may require re-authentication.

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About Lc MCP Server

How do I install Lc MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Lc MCP Server safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Lc MCP Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.