HackerEarth MCP server
Give any AI assistant a code run button via HackerEarth. 24 languages, zero setup.
0 stars
Reviews
Write oneNobody has reviewed HackerEarth MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
HackerEarth MCP tools (2, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
list_languagesReturns the list of programming languages HackerEarth can execute, with the exact identifiers to pass to run_code. Use this when you are unsure which language name to use, or when the user asks what languages are available. Takes no inputs.
run_codewrite actionExecutes a snippet of code on HackerEarth's cloud servers in any of 24 languages. Use when the user wants to test code, see real output instead of predicted output, or check whether a program works. Needs the code and the language identifier, call list_languages if unsure of the exact name. Returns the program's printed output and any error messages.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Install HackerEarth MCP in Claude Code, Cursor or VS Code
claude mcp add hackerearth-mcp -- uvx hackerearth-mcp
What the publisher says
From the HackerEarth MCP repository's README, as published. We do not edit it. Read it on GitHub
hackerearth-mcp
mcp-name: io.github.pratham-jain33/hackerearth-mcp
Give any AI assistant a code run button.
Unofficial community project. Not made by, endorsed by, or affiliated with HackerEarth. You bring your own free HackerEarth API key.
Why
AI assistants are great at writing code and terrible at knowing whether it works. They guess. This server plugs into any MCP-compatible assistant (Claude Desktop, Claude Code, Cursor, and more) and lets it actually run code in 24 programming languages on HackerEarth's sandboxed servers, then read the real output. No local toolchains to install. Nothing untrusted ever touches your machine.
Tools
Quickstart
1. Get a free HackerEarth API key
Register a client in the HackerEarth developer dashboard to receive a client-secret. The free tier includes a generous request quota.
2. Install
No cloning needed:
uvx hackerearth-mcpor with pip:
pip install hackerearth-mcpFrom source instead:
git clone https://github.com/pratham-jain33/hackerearth-mcp
cd hackerearth-mcp
python -m venv .venv
.venv/bin/pip install -e .3. Connect your assistant
Claude Desktop config file:
- macOS: ~/Library/Application Support/Claude/claudedesktopconfig.json
- Windows: %APPDATA%\Claude\claudedesktopconfig.json
{
"mcpServers": {
"hackerearth": {
"command": "uvx",
"args": ["hackerearth-mcp"],
"env": {
"HACKEREARTH_KEY": "paste-your-client-secret-here"
}
}
}
}From source, point at your checkout instead:
{
"mcpServers": {
"hackerearth": {
"command": "/absolute/path/to/hackerearth-mcp/.venv/bin/python",
"args": ["/absolute/path/to/hackerearth-mcp/server.py"],
"env": {
"HACKEREARTH_KEY": "paste-your-client-secret-here"
}
}
}
}Restart Claude Desktop, then try: "run this Python program and tell me what it prints: print(6 7)"*
Configuration
How it works
(This section is written by the project's author.)
- You ask the assistant to run some code.
- The assistant calls run_code with the code and the language.
- The server sends it to HackerEarth with your key and gets back a tracking token.
- The server polls HackerEarth until the run finishes.
- HackerEarth runs the code in a sealed sandbox on their machines.
- The server hands the output back to the assistant, which explains it to you.
Example session
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
HackerEarth MCP: common questions
- Is HackerEarth MCP server safe?
- Mostly: it is graded B (83/100). Read the HackerEarth MCP safety report
- How do I install HackerEarth MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does HackerEarth MCP need an API key?
- Yes. The registry entry asks for
HACKEREARTH_KEY. - Is HackerEarth MCP maintained?
- The last commit was 16 days ago (2026-09-27). The latest release is v0.2.1.