MCP server integrating Tolk compiler for compiling, syntax-checking, and deploying TON blockchain smart 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.
Inspect callable tools, capabilities, and parameters exposed to AI agents by IzTolkMcp.
MCP server for the Tolk smart contract compiler β compile, check, and deploy TON blockchain smart contracts from any AI assistant
π·πΊ Π ΡΡΡΠΊΠΈΠΉ | π¬π§ English
MCP server that brings the Tolk smart contract compiler directly into AI assistants like Claude β write, compile, check, and deploy TON contracts without leaving the conversation.
iz-tolk-mcp is a Model Context Protocol (MCP) server that integrates the Tolk smart contract compiler into AI assistants, enabling a seamless write-compile-deploy workflow for TON blockchain development.
| Feature | Description |
|---|---|
| π¨ 4 MCP Tools | compile_tolk, check_tolk_syntax, get_compiler_version, generate_deploy_link |
| π 6 MCP Resources | Language guide, stdlib reference, changelog, FunC migration guide, example contracts |
| π¬ 3 MCP Prompts | Guided workflows for writing, reviewing, and debugging smart contracts |
| βοΈ Full Compiler Options | Optimization levels (0-2), stack comments, path mappings, multi-file compilation |
| π¦ Multi-file Support | Compile projects with multiple .tolk source files, @stdlib/* and @fiftlib/* imports |
| π Deployment Links | Generate ton:// deeplinks and Tonkeeper URLs for wallet deployment |
| π Zero Configuration | Runs via npx with no external dependencies beyond Node.js |
The server communicates over stdio and is designed to be launched by an MCP client.
MCP clients launch the server automatically β just add it to your configuration (see below).
Requirement: Node.js >= 18
Add to claude_desktop_config.json:
Add to .cursor/mcp.json:
Add to ~/.windsurf/mcp.json:
Add to .vscode/mcp.json:
get_compiler_versionReturns the version of the Tolk compiler bundled in @ton/tolk-js (WASM).
| Parameter | Type | Required | Description |
|---|---|---|---|
| (none) | β | β | No parameters |
compile_tolkCompiles Tolk smart contract source code. Returns Fift output, BoC (Bag of Cells) in base64, code hash, and compiler version.
| Parameter | Type | Required | Description |
|---|---|---|---|
entrypointFileName | string | β | The main .tolk file to compile (e.g., "main.tolk") |
sources | object | β | Map of filename -> source code. Must include the entrypoint file. |
optimizationLevel | number | β | Optimization level 0-2 (default: 2) |
withStackComments | boolean | β | Include stack layout comments in Fift output |
pathMappings | object | β | Maps @alias prefixes to folder paths for import resolution |
check_tolk_syntaxChecks Tolk source code for syntax and type errors without returning full compilation output. Faster feedback loop for iterative development.
| Parameter | Type | Required | Description |
|---|---|---|---|
entrypointFileName | string | β | The main .tolk file to check |
sources | object | β | Map of filename -> source code |
pathMappings | object | β | Maps @alias prefixes to folder paths for import resolution |
generate_deploy_linkGenerates TON deployment deeplinks for a compiled contract. Computes the deterministic contract address and returns ton:// and Tonkeeper links ready for wallet deployment.
| Parameter | Type | Required | Description |
|---|---|---|---|
codeBoc64 | string | β | Base64-encoded BoC of compiled contract code (from compile_tolk) |
initialDataBoc64 | string | β | Base64-encoded BoC for initial data cell (default: empty cell) |
workchain | number | β | Target workchain ID (default: 0) |
amount | string | β | Deploy amount in nanoTON (default: "50000000" = 0.05 TON) |
| Resource | URI | Description |
|---|---|---|
π language-guide | tolk://docs/language-guide | Complete Tolk language syntax reference |
π stdlib-reference | tolk://docs/stdlib-reference | Standard library modules and functions reference |
π changelog | tolk://docs/changelog | Tolk compiler version history from v0.6 to latest |
π tolk-vs-func | tolk://docs/tolk-vs-func | FunC to Tolk migration guide β key differences and comparison |
π example-counter | tolk://examples/counter | Simple counter smart contract example in Tolk |
π example-jetton | tolk://examples/jetton | Jetton (fungible token) minter contract example in Tolk |
write_smart_contractGuided workflow for writing a new Tolk smart contract on TON. Injects the language reference and a relevant example contract into the conversation context.
| Argument | Type | Required | Description |
|---|---|---|---|
description | string | β | Description of what the smart contract should do |
contractType | string | β | "counter" | "jetton" | "nft" | "wallet" | "custom" (default: "custom") |
review_smart_contractSecurity-focused review of a Tolk smart contract. Checks for access control, message handling, integer overflow, gas management, storage integrity, and TON-specific vulnerabilities.
| Argument | Type | Required | Description |
|---|---|---|---|
code | string | β | The Tolk smart contract source code to review |
debug_compilation_errorDiagnose and fix a Tolk compilation error. Analyzes the error against the language reference and provides corrected code.
| Argument | Type | Required | Description |
|---|---|---|---|
errorMessage | string | β | The compilation error message from the Tolk compiler |
code | string | β | The Tolk source code that failed to compile |
Once configured, interact with the Tolk MCP server through natural language in your AI assistant:
Compile a contract:
"Compile this Tolk smart contract:"
Write a new contract from scratch:
"Write a simple counter contract for TON that stores a number and lets anyone increment it. Include a getter to read the current value."
Review an existing contract:
"Review this contract for security issues" (paste code)
Debug a compilation error:
"I'm getting this error when compiling:
unexpected token 'fun'β here's my code:" (paste code)
Generate a deploy link:
"Generate a deployment link for the contract we just compiled."
Factual signals from GitHub, npm, and our automated checks β not a rating.
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/izzzzzi-iztolkmcp)<a href="https://allmcps.com/mcp/izzzzzi-iztolkmcp"><img src="https://allmcps.com/api/badge/izzzzzi-iztolkmcp?style=directory" alt="IzTolkMcp on AllMCPs" /></a>