HackerEarth MCP logo

HackerEarth MCP

Runs code through HackerEarth’s sandbox from MCP-compatible AI assistants, returning output and errors across 24 languages.

Install HackerEarth MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hackerearth-mcp": {
      "command": "uvx",
      "args": [
        "hackerearth-mcp"
      ],
      "env": {
        "HACKEREARTH_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 2 tools correctly ().

Overview

HackerEarth MCP MCP server lets an MCP-compatible AI assistant submit code to HackerEarth for execution and read the resulting output or errors. It exposes tools for running code and retrieving the exact language identifiers supported by HackerEarth. The server uses a HackerEarth client secret, submits jobs remotely, and polls until they finish. Reach for it when an assistant needs to verify code without local language runtimes or toolchains.

Use cases

  • Run generated programs and inspect their output
  • Check code across HackerEarth-supported languages
  • Verify algorithm examples without local toolchains
  • Surface compilation and runtime errors to an assistant

Key features

  • Remote code execution through HackerEarth
  • Support for 24 programming languages
  • Printed output and error reporting
  • Language identifier discovery
  • Sandboxed execution on HackerEarth infrastructure

Tools2

What HackerEarth MCP lets your agent do. Expand a tool for its parameters.

Verified live~229 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

What it can do

From the 2 tools this server returned when we ran it.

Runs commands · 1Read-only tools · 1
Network at startup2 connections
Files written at startup11

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · hackerearth-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit9d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed2Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How HackerEarth MCP works

What HackerEarth MCP MCP server does

HackerEarth MCP MCP server connects an MCP-compatible AI assistant to HackerEarth’s code execution API. It gives the assistant a way to submit source code with a selected language, wait for execution to complete, and receive printed output together with compilation or runtime error messages.

The server supports the 24 programming languages available through HackerEarth. Since language identifiers must match HackerEarth’s API values, the server also provides a lookup tool that returns the supported languages and their exact identifiers.

This is an unofficial community project and is not made by, endorsed by, or affiliated with HackerEarth. A HackerEarth client secret is required.

How it works

An assistant first calls run_code with the code and language. The server sends the submission to HackerEarth using the configured client secret and receives a tracking token. It then polls HackerEarth until the execution finishes, after which it returns the program’s output and any reported errors to the assistant.

Execution takes place on HackerEarth’s sandboxed infrastructure rather than on the machine running the MCP server. This makes the server suitable for checking generated code when local compilers, interpreters, or language-specific toolchains are not installed.

Setup and configuration

Install the package with either of these approaches:

  • Run it directly with uvx hackerearth-mcp.
  • Install it with pip install hackerearth-mcp.
  • Clone the repository, create a Python virtual environment, and install the project in editable mode.

The runtime requires Python 3.10 or newer. Set HACKEREARTH_KEY to the client-secret obtained by registering a client in the HackerEarth developer dashboard. The server reads this value from the environment; the key is not hardcoded or sent to the assistant in chat.

For a stdio MCP configuration, set the server command to uvx, pass hackerearth-mcp as its argument, and provide HACKEREARTH_KEY in the server’s environment. When running from source, use the virtual environment’s Python executable and the repository’s server.py path instead. Restart the MCP client after changing its configuration.

Tools and capabilities

The HackerEarth MCP MCP server exposes two tools:

  • run_code: Sends source code and a language identifier to HackerEarth, waits for the result, and returns printed output plus error messages.
  • list_languages: Returns every language HackerEarth can execute and the exact identifiers accepted by run_code. It requires no inputs.

These tools allow an assistant to check whether a program runs, inspect its output, and surface compile or runtime failures. The server does not provide local execution tools or additional editor features.

Limitations and notes

The HackerEarth MCP MCP server depends on HackerEarth’s API and requires a valid client secret. Its available languages are limited to the 24 languages exposed by HackerEarth, and callers must use the identifiers returned by list_languages.

The project uses HackerEarth’s free tier, which has a request quota. Execution is remote and asynchronous, so the server waits for HackerEarth to complete each submitted run before returning its result. As an unofficial integration, it should be evaluated separately from HackerEarth’s official products and support channels.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about HackerEarth MCP

HackerEarth MCP is an MCP server that connects AI assistants to HackerEarth’s code execution API. Its main tools are `run_code`, which submits code and returns output or errors, and `list_languages`, which returns supported languages and their exact identifiers. It requires a HackerEarth client secret and runs submissions in HackerEarth’s sandbox.

Install it with `uvx hackerearth-mcp` or `pip install hackerearth-mcp`. You can also clone the repository and install it from source in a Python 3.10-or-newer virtual environment.

Set the required `HACKEREARTH_KEY` environment variable to your HackerEarth client secret, then add the `uvx hackerearth-mcp` command to your MCP client configuration. Restart the client after saving the configuration.

Yes. The README names Cursor as an MCP-compatible assistant for this server. Configure Cursor with the server command and `HACKEREARTH_KEY` in the same way as other stdio MCP clients.

It supports the 24 languages available through HackerEarth. Call `list_languages` to retrieve the complete list and the exact identifiers required by `run_code`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHackerEarth MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hackerearth-mcp?style=directory)](https://allmcps.com/mcp/hackerearth-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/hackerearth-mcp"><img src="https://allmcps.com/api/badge/hackerearth-mcp?style=directory" alt="HackerEarth MCP on AllMCPs" /></a>