Back to Home
kolikaran1992 icon

teacher_dsa

Verified Safe

by kolikaran1992

Overview

This MCP server acts as an AI assistant to track and guide a user's progress on LeetCode Data Structures & Algorithms problems, logging attempts and patterns without providing full solutions.

Installation

Run Command
poetry run python teacher_dsa/leetcode_dsa_mcp_server.py

Environment Variables

  • TEACHER_DSA_TZ
  • TEACHER_DSA_LOGGER_NAME
  • TEACHER_DSA_BASE_DATA_PATH
  • TEACHER_DSA_BASE_DB_FILE
  • SECRETS_DIRECTORY

Security Notes

The server uses the 'requests' library to interact with the official LeetCode GraphQL API. It constructs URLs and payloads using a provided 'title_slug', rather than allowing arbitrary user-supplied URLs, which significantly mitigates SSRF and injection risks. No 'eval' or obvious obfuscation is present. Configuration uses Dynaconf with environment variable support ('SECRETS_DIRECTORY', 'TEACHER_DSA_'), indicating proper handling for secrets, though no external API keys are explicitly required by the LeetCode API interaction shown. The primary risk would be potential vulnerabilities in the LeetCode GraphQL endpoint itself, or if sensitive data were unexpectedly passed through the title_slug.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-26

Tags

DSALeetCodeProgress TrackerAI AssistantEducation