P
pratham-jain33/hackerearth-mcp
MCP server that executes code in 24 languages on HackerEarth sandboxed cloud servers, so AI assistants run code and see real output instead of predicting it.
SECURITY.md ✓
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
- Copy the command above
- Paste it as one entry under
mcpServersinclaude_desktop_config.json— local servers take command + args (example: clients) - Restart your client
Client config (built from the install command this repo gives)
{
"mcpServers": {
"pratham-jain33-hackerearth-mcp": {
"command": "uvx",
"args": ["hackerearth-mcp"]
}
}
}Parsed from the README we fetched on 2026-10-26; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"pratham-jain33-hackerearth-mcp": {
"command": "uvx",
"args": ["hackerearth-mcp"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio pratham-jain33-hackerearth-mcp -- uvx hackerearth-mcp
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Star count
- 0 ★ · pratham-jain33/hackerearth-mcp · read from the GitHub search API · (checked 2026-11-13 20:00:50)
- Source
- collected from the punkpeye/awesome-mcp-servers list · type: MCP server
- Harvest history
- first seen 2026-10-23 · last seen 2026-11-14 · seen 26× · listed by 23 sources
- Score
- score 2,300 · 23 sources · mcp
- Install
uvx hackerearth-mcp
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
uvx hackerearth-mcp. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
pratham-jain33/hackerearth-mcp;first catalogued 2026-10-23;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.# hackerearth-mcp
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
mcp-name: io.github.pratham-jain33/hackerearth-mcp
Also listed on Glama with one-click deploy.
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
| Tool | Description |
| runcode | Sends code plus a language to HackerEarth, waits for it to run, and returns the printed output and any error messages. |
| listlanguages | Lists every language HackerEarth can run, with the exact identifiers to pass to runcode. Takes no inputs. |
## Installation
bash
# Quick install via uvx (recommended)
uvx hackerearth-mcp
bash
# Or install with pip
pip install hackerearth-mcp
bash
# Install from source
git clone https://github.com/pratham-jain33/hackerearth-mcp
cd hackerearth-mcp
python -m venv .venv
.venv/bin/pip install -e .
## Features
Exposes two MCP tools: runcode and listlanguages.
Executes code in 24 programming languages via HackerEarth's sandboxed cloud servers.
Provides friendly language aliases (e.g., python → PYTHON3).
Returns real program output and error messages.
Gracefully handles missing HACKEREARTHKEY and unknown languages without making network calls.
Lists all supported language identifiers.
Simple installation via uvx or pip.
Compatible with any MCP‑compatible AI assistant (Claude Desktop, Cursor, etc.).
## Tech/framework used
Language: Python (>=3.10)
Core libraries: FastMCP (provides MCP server framework), requests (HTTP client)
## 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:
bash
uvx hackerearth-mcp
or with pip:
bash
pip install hackerearth-mcp
From source instead:
bash
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
json
"mcpServers": {
"hackerearth": {
"command": "uvx",
"args": ["hackerearth-mcp"],
"env": {
"HACKEREARTHKEY": "paste-your-client-secret-here"
From source, point at your checkout instead:
json
"mcpServers": {
"hackerearth": {
"command": "/absolute/path/to/hackerearth-mcp/.venv/bin/python",
"args": ["/absolute/path/to/hackerearth-mcp/server.py"],
"env": {
"HACKEREARTHKEY": "paste-your-client-secret-here"
Restart Claude Desktop, then try: "run this Python program and tell me what it prints: print(6 7)"
## Configuration
| Variable | Required | Description |
| HACKEREARTHKEY | Yes | Your HackerEarth client-secret. Read from the environment, never hardcoded, never sent to the assistant in chat. |
Also listed on Glama with one-click deploy.
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
| Tool | Description |
| runcode | Sends code plus a language to HackerEarth, waits for it to run, and returns the printed output and any error messages. |
| listlanguages | Lists every language HackerEarth can run, with the exact identifiers to pass to runcode. Takes no inputs. |
## Installation
bash
# Quick install via uvx (recommended)
uvx hackerearth-mcp
bash
# Or install with pip
pip install hackerearth-mcp
bash
# Install from source
git clone https://github.com/pratham-jain33/hackerearth-mcp
cd hackerearth-mcp
python -m venv .venv
.venv/bin/pip install -e .
## Features
Exposes two MCP tools: runcode and listlanguages.
Executes code in 24 programming languages via HackerEarth's sandboxed cloud servers.
Provides friendly language aliases (e.g., python → PYTHON3).
Returns real program output and error messages.
Gracefully handles missing HACKEREARTHKEY and unknown languages without making network calls.
Lists all supported language identifiers.
Simple installation via uvx or pip.
Compatible with any MCP‑compatible AI assistant (Claude Desktop, Cursor, etc.).
## Tech/framework used
Language: Python (>=3.10)
Core libraries: FastMCP (provides MCP server framework), requests (HTTP client)
## 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:
bash
uvx hackerearth-mcp
or with pip:
bash
pip install hackerearth-mcp
From source instead:
bash
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
json
"mcpServers": {
"hackerearth": {
"command": "uvx",
"args": ["hackerearth-mcp"],
"env": {
"HACKEREARTHKEY": "paste-your-client-secret-here"
From source, point at your checkout instead:
json
"mcpServers": {
"hackerearth": {
"command": "/absolute/path/to/hackerearth-mcp/.venv/bin/python",
"args": ["/absolute/path/to/hackerearth-mcp/server.py"],
"env": {
"HACKEREARTHKEY": "paste-your-client-secret-here"
Restart Claude Desktop, then try: "run this Python program and tell me what it prints: print(6 7)"
## Configuration
| Variable | Required | Description |
| HACKEREARTHKEY | Yes | Your HackerEarth client-secret. Read from the environment, never hardcoded, never sent to the assistant in chat. |
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/pratham-jain33-hackerearth-mcp/)
- Source
- awesome · https://github.com/pratham-jain33/hackerearth-mcp
- Browse by field
- MCP servers
- Listed by
- 23 independent sources
- added
- today
- Security policy
- the repository has
SECURITY.mdat its root (we checked that the file exists, not what it says)
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.