The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Tolk MCP Server listing page.
MCP server for the Tolk smart contract compiler. Compile, validate, and explore TON smart contracts from any MCP-compatible AI assistant (Claude Desktop, Cursor, Windsurf, etc.).
Tools:
get_compiler_version — Returns the Tolk compiler versioncompile_tolk — Compiles Tolk source code to Fift + BoC with full compiler options (optimization level, stack comments, experimental flags)check_tolk_syntax — Quick syntax validation without full outputResources:
tolk://reference — Tolk language quick reference (syntax, types, differences from FunC)tolk://examples/hello-world — Counter contract exampletolk://examples/wallet — Wallet contract exampletolk://examples/jetton — Jetton (token) contract skeletonPrompts:
write_smart_contract — Guided prompt for writing a new TON smart contractreview_smart_contract — Guided prompt for security review and optimization analysisAdd to claude_desktop_config.json:
Add to your MCP settings:
The tool returns:
Returns OK + code hash, or a detailed error with line/column info.
Pass all files in the sources parameter:
Standard library imports (@stdlib/*) are resolved automatically by the compiler.
| Option | Type | Default | Description |
|---|---|---|---|
optimizationLevel | 0-2 | 2 | 0 = none, 1 = basic, 2 = full |
withStackComments | bool | false | Add stack layout comments to Fift output |
experimentalOptions | string | "" | Space-separated experimental compiler flags |
MIT