MCP server for the Tolk smart contract compiler. Compile, validate, and explore TON contracts.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tolk-mcp-server)<a href="https://allmcps.com/mcp/tolk-mcp-server"><img src="https://allmcps.com/api/badge/tolk-mcp-server?style=directory" alt="Tolk MCP Server on AllMCPs" /></a>