OneCompiler
Model Context Protocol

Code Execution forAI Assistants

Enable your AI to write and run code in 100+ languages. Seamless integration with Claude, Cursor, Windsurf, and other MCP-compatible tools.

100+ Languages
Instant Results
Secure & Sandboxed

Get Started in Minutes

Three simple steps to add code execution to your AI workflow

1

Get your API key

Sign up on RapidAPI to get your free API key

2

Add to your config

Add the configuration to your MCP config file (.mcp.json)

3

Start coding with AI

Ask your AI to write and execute code - it just works!

Works with:

Claude DesktopCursor IDEWindsurf IDE+ More coming
.mcp.json
{
  "mcpServers": {
    "onecompiler": {
      "command": "npx",
      "args": ["-y", "@onecompiler/onecompiler-mcp-server"],
      "env": {
        "ONECOMPILER_API_KEY": "your-api-key",
        "ONECOMPILER_PROVIDER": "rapidapi"
      }
    }
  }
}

See It In Action

Just ask your AI assistant to run code

"Write a Python script that calculates the factorial of 10 and execute it"

Claude's response:

The factorial of 10 is 3,628,800

Ready to Get Started?

Add code execution capabilities to your AI workflow today

Free tier available. No credit card required.