Skip to main content
Glama

LeetCode MCP Server

smithery.yaml1.11 kB
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml startCommand: type: stdio configSchema: # JSON Schema defining the configuration options for the MCP. type: object properties: site: type: string default: global description: "LeetCode site to target: 'global' for leetcode.com, or 'cn' for leetcode.cn" session: type: string description: Optional session cookie to authenticate with LeetCode API commandFunction: # A JS function that produces the CLI command based on the given config to start the MCP on stdio. |- (config) => { const args = ['build/index.js', '--site', config.site]; if (config.session && config.session.trim() !== '') { args.push('--session', config.session); } return { command: 'node', args }; } exampleConfig: site: global session: leetcode_session_cookie_value

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jinzcdev/leetcode-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server