MCP server/ai-tools

iz-tolk-mcp MCP Server

Compile, check, and deploy TON blockchain smart contracts from AI assistants

★ 1izzzzzi/izTolkMcp ↗by izzzzziupdated
1

Add it to Claude Code

claude mcp add iz-tolk-mcp -- npx -y iz-tolk-mcp
2

Make your agent remember this setup

iz-tolk-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Compile Tolk smart contracts with optimization levels and stack comments
  • Support for multi-file compilation and @stdlib imports
  • Generate deployment links for Tonkeeper and other TON wallets
  • Built-in syntax checking and compiler version reporting
  • Includes language guides and stdlib references as MCP resources

Tools 4

get_compiler_versionReturns the version of the Tolk compiler bundled in @ton/tolk-js.
compile_tolkCompiles Tolk smart contract source code and returns Fift output, BoC, and code hash.
check_tolk_syntaxChecks the syntax of Tolk smart contract source code.
generate_deploy_linkGenerates ton:// deeplinks and Tonkeeper URLs for wallet deployment.

Try it

Compile the smart contract in the current directory and show me the resulting BoC.
Check the syntax of my Tolk contract to ensure there are no errors.
Generate a deployment link for my compiled TON smart contract.
What version of the Tolk compiler is currently being used by the MCP server?
Original README from izzzzzi/izTolkMcp

iz-tolk-mcp

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.


📖 Overview

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.

  • Tolk is the next-generation smart contract language for the TON blockchain, designed as a modern successor to FunC with familiar syntax (C/TypeScript-like), type safety, and cleaner semantics.
  • MCP (Model Context Protocol) is an open standard that lets AI assistants use external tools, access data sources, and follow guided workflows — turning them into capable development environments.

✨ Features

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, multi-file compilation
📦 Multi-file Support Compile projects with multiple .tolk source files and @stdlib/* imports
🔗 Deployment Links Generate ton:// deeplinks and Tonkeeper URLs for wallet deployment
🚀 Zero Configuration Runs via npx with no external dependencies beyond Node.js

🚀 Quick Start

npx iz-tolk-mcp

The server communicates over stdio and is designed to be launched by an MCP client.


📦 Installation

Using npx (no install needed)

MCP clients launch the server automatically — just add it to your configuration (see below).

Global install

npm install -g iz-tolk-mcp

From source

git clone https://github.com/izzzzzi/izTolkMcp.git
cd izTolkMcp
npm install
npm run build

Requirement: Node.js >= 18


🔧 MCP Client Configuration

<details> <summary><b>Claude Desktop</b></summary>

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "tolk": {
      "command": "npx",
      "args": ["-y", "iz-tolk-mcp"]
    }
  }
}
</details> <details> <summary><b>Claude Code</b></summary>
claude mcp add tolk -- npx -y iz-tolk-mcp
</details> <details> <summary><b>Cursor</b></summary>

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "tolk": {
      "command": "npx",
      "args": ["-y", "iz-tolk-mcp"]
    }
  }
}
</details> <details> <summary><b>Windsurf</b></summary>

Add to ~/.windsurf/mcp.json:

{
  "mcpServers": {
    "tolk": {
      "command": "npx",
      "args": ["-y", "iz-tolk-mcp"]
    }
  }
}
</details> <details> <summary><b>VS Code (Copilot)</b></summary>

Add to .vscode/mcp.json:

{
  "servers": {
    "tolk": {
      "command": "npx",
      "args": ["-y", "iz-tolk-mcp"]
    }
  }
}
</details> <details> <summary><b>Local build (any client)</b></summary>
{
  "mcpServers": {
    "tolk": {
      "command": "node",
      "args": ["/absolute/path/to/izTolkMcp/dist/index.js"]
    }
  }
}
</details>

🛠️ MCP Tools

🔍 `get_compiler_version`

Returns the version of the Tolk compiler bundled in @ton/tolk-js (WASM).

Parameter Type Required Description
(none) No parameters

🔨 `compile_tolk`

Compiles Tolk smart contract source code. Returns Fift output, BoC (Bag of Cells) in base64, and the code hash.

Parameter Type Required Description
entrypointFileName

Frequently Asked Questions

What are the key features of iz-tolk-mcp?

Compile Tolk smart contracts with optimization levels and stack comments. Support for multi-file compilation and @stdlib imports. Generate deployment links for Tonkeeper and other TON wallets. Built-in syntax checking and compiler version reporting. Includes language guides and stdlib references as MCP resources.

What can I use iz-tolk-mcp for?

Developing and testing new TON smart contracts directly within Claude. Migrating existing FunC contracts to the modern Tolk language. Automating the deployment link generation process for TON developers. Debugging smart contract syntax errors during the development phase.

How do I install iz-tolk-mcp?

Install iz-tolk-mcp by running: npx iz-tolk-mcp

What MCP clients work with iz-tolk-mcp?

iz-tolk-mcp works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep iz-tolk-mcp docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest