Back to Home
connyay icon

starlark-mcp

Verified Safe

by connyay

Overview

A flexible server for the Model Context Protocol that allows users to create custom tools using Starlark scripts, integrating with external systems via built-in modules for HTTP, databases, and system commands.

Installation

Run Command
npx starlark-mcp

Environment Variables

  • API_KEY
  • MY_API_KEY
  • MY_API_URL
  • DATABASE_URL

Security Notes

The server uses Starlark, which is a sandboxed language, limiting arbitrary system access by default. The `exec` module enforces a strict `allowed_exec` whitelist, preventing extensions from running unapproved system commands. The `data.load_json` function includes explicit path traversal (`..`) checks and confines file access to the designated extensions directory. The `http`, `postgres`, and `sqlite` modules enable external interactions, which is expected functionality, but they rely on the `reqwest`, `postgres`, and `rusqlite` crates, which are generally robust. PostgreSQL password obfuscation is implemented in error messages. The server communicates primarily over stdio, limiting direct network exposure. Test files (`_test.star`) are correctly filtered out from being loaded as active tools. The primary security model relies on careful vetting of extensions and their `allowed_exec` declarations, but the framework provides strong safeguards to manage potential risks.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Stars1
Forks0
Last Update2026-01-18

Tags

MCPStarlarkToolingExtensionsAutomation