Starlark

•

Provides a secure Starlark code execution environment for large language model clients.

The Starlark MCP server offers a safe and hermetic environment for large language models to execute Starlark code, a Python-like language ideal for untrusted code execution. It captures `print()` function output, limited to 16KB, returning it to the LLM client, and extends Starlark with custom builtin functions to enhance functionality. This enables LLMs to perform computational tasks and generate structured outputs in a controlled manner.

Key Features

01Designed as a plugin for MCP-compatible agents
02Augments Starlark with custom builtin functions
03Captures `print()` output (up to 16KB limit)
040 GitHub stars
05Executes Starlark code for LLM clients
06Provides a safe and hermetic execution environment

Use Cases

01Integrating with MCP-compatible agents like Claude Code or Gemini
02Enabling LLMs to perform computational tasks or generate complex outputs
03Executing LLM-generated code in a controlled sandbox