Python-like Scripting for Go

Simple. Sandboxed. Powerful.

Scriptling is a minimal, sandboxed interpreter with Python-inspired syntax designed for embedding in Go applications. Perfect for LLM agents to execute code and interact with REST APIs, with built-in AI integration and MCP protocol support.

Scriptling Mascot

Python-Inspired Syntax

Write code that feels familiar with indentation-based blocks, classes with single inheritance, functions, lambda, list comprehensions, and comprehensive error handling.

Python-like Syntax

Secure & Sandboxed

No direct filesystem or network access unless explicitly enabled. Configurable security with path restrictions, network access control, and execution timeouts.

Sandboxed Execution

Seamless Go Integration

Register Go functions, exchange variables, and create custom libraries. Direct type mapping between Go and Scriptling makes embedding effortless.

Go Integration

Built for AI & LLMs

Native OpenAI-compatible API support, MCP (Model Context Protocol) server and client, and automatic tool execution for agentic workflows.

AI & LLM Ready

Rich Library Ecosystem

25+ built-in libraries including JSON, regex, math, HTTP requests, subprocess, YAML, and specialized libraries for AI, MCP, and concurrent execution.

Rich Library Ecosystem

MCP & HTTP Server

Run scripts directly, use interactive mode, or start an HTTP server with MCP support. Cross-platform binaries for Linux, macOS, and Windows.

MCP & HTTP Server

Why Choose Scriptling?

Scriptling is an open-source (MIT License) scripting language that bridges the gap between Go applications and Python-like scripting. Whether you’re building AI agents, automation tools, or need embedded scripting in your Go application, Scriptling provides a secure, fast, and familiar solution.

Key Use Cases:

  • AI & LLM Integration - Let AI agents execute code safely with built-in guardrails
  • Go Embedding - Add scripting capabilities to your Go applications
  • REST API Automation - Built-in HTTP client with JSON handling
  • Sandboxed Execution - Run untrusted code with configurable security
  • MCP Servers - Build Model Context Protocol servers for LLM tools