lc-mcp-server
Verified Safeby lascam-UFU
Overview
Provides a Model Context Protocol (MCP) server to programmatically interact with LeetCode problems, contests, and solution submissions.
Installation
go run main.goEnvironment Variables
- LEETCODE_SESSION
- LEETCODE_CSRF_TOKEN
Security Notes
The server primarily uses environment variables for sensitive session and CSRF tokens, a good practice. The `auth.go` helper uses `chromedp` to open a browser for manual login and cookie extraction. While `chromedp.Evaluate` is used to inject JavaScript, this is a standard and necessary pattern for browser automation, and the scripts are hardcoded, not derived from user input, mitigating `eval`-like risks. The extracted tokens are stored in a local file (`~/.leetcode_auth.json`) with restrictive permissions (0600), which is appropriate. Overall, the direct server logic in `main.go` does not show obvious RCE vulnerabilities or unsafe `eval` patterns. The primary security concern lies in the careful management of the `LEETCODE_SESSION` and `CSRF_TOKEN` by the user.
Similar Servers
simplenote-mcp-server
Integrates Simplenote with Claude Desktop as a memory backend or content source via the Model Context Protocol (MCP), enabling AI interaction with user notes.
cozyreq
An AI agent to interact with and explore API endpoints by consuming OpenAPI specifications and user prompts.
simple-memory-mcp-server
A Python server designed to manage and serve memory for AI agents, facilitating their interaction with external Large Language Models or data sources.
Kotak_Neo_MCP_Server_With_Agentic_Application.
A server designed to host and manage AI agentic applications, likely for automating tasks or processing information. The specific functionality is unknown due to missing code.