About klever-io/mcp-klever-vm
klever-io/mcp-klever-vm is an MCP server published by klever-io in the Developer Tools category: mCP server for Klever blockchain smart contract development. Conduid read 21 tools from its source: add_context, analyze_contract, deploy_sc, enhance_with_context, find_similar, freeze_klv and 15 more. No package is published for it, so it installs from a source checkout.
The repository has 31 stars and 5 forks, is licensed MIT, and its last commit was on 19 May 2026. The latest release is v1.3.0 (19 Mar 2026). It follows v1.2.5 (20 Feb 2026), and the 5 most recent releases go back to v1.2.1 (12 Feb 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include blockchain, klever and smart-contracts.
Install
git clone https://github.com/klever-io/mcp-klever-vmTools (21)
add_contextAdd new context to the knowledge base| Parameter | Type | Description |
|---|---|---|
| content * | string | The main content body — typically Rust source code, a CLI command, or a detailed explanation. For code, include the full working snippet. |
| metadata * | object | Entry metadata including title, tags, and categorization. At minimum, provide a title. |
| type * | string | The category of this knowledge entry. Choose the most specific type: "code_example" for Rust snippets, "best_practice" for recommended patterns, "security_tip" for vulnerability guidance, "error_pattern" for known error solutions. |
analyze_contractAnalyze Klever smart contract Rust source code for common issues. Checks for missing imports, missing #[klever_sc::contract] macro, missing endpoint annotations, payable handlers without call_value usage, storage mappers without #[storage_mapper], and missing event definitions. Returns findings with severity (error/warning/info) and links to relevant knowledge base entries.| Parameter | Type | Description |
|---|---|---|
| contractName | string | Human-readable name for the contract (used in output labeling). Defaults to "contract" if omitted. |
| sourceCode * | string | The full Rust source code of the Klever smart contract to analyze. Must be valid Rust code using klever_sc imports. |
deploy_scBuild an unsigned smart contract deployment transaction for the Klever blockchain. Provide either wasmPath (preferred — reads the file server-side) or wasmHex. Returns the unsigned transaction for client-side signing. The MCP server NEVER handles private keys.| Parameter | Type | Description |
|---|---|---|
| initArgs | array | Optional base64-encoded init arguments for the contract constructor. |
| network | string | |
| sender * | string | Deployer address (klv1... bech32 format). |
| wasmHex | string | Smart contract WASM bytecode as a hex-encoded string. Use wasmPath instead for large contracts. |
| wasmPath | string | Absolute path to the compiled WASM file (preferred over wasmHex to avoid loading large binaries into AI context). |
enhance_with_contextEnhance queries with relevant Klever VM context| Parameter | Type | Description |
|---|---|---|
| autoInclude | boolean | When true (default), automatically appends the most relevant knowledge base entries to the response. Set to false to only return metadata without injecting context. |
| query * | string | The user's natural-language question or prompt to enhance (e.g. "How do I handle KLV payments in my contract?"). |
find_similarFind contexts similar to a given context| Parameter | Type | Description |
|---|---|---|
| id * | string | The context ID to find similar entries for. Obtain from query_context or get_context results. |
| limit | integer | Maximum number of similar entries to return. Typical range is 1-20; higher values may be slower. Default: 5. |
freeze_klvBuild an unsigned Freeze KLV transaction on the Klever blockchain. Freezing KLV provides energy/bandwidth for network operations and enables staking rewards. Returns the unsigned transaction for client-side signing.| Parameter | Type | Description |
|---|---|---|
| amount * | integer | Amount of KLV to freeze in the smallest unit (1 KLV = 1,000,000 units). |
| network | string | |
| sender * | string | Address to freeze from (klv1... bech32 format). |
get_accountGet full account details for a Klever blockchain address including nonce, balance, frozen balance, allowance, and permissions. Use this when you need comprehensive account state beyond just the balance.| Parameter | Type | Description |
|---|---|---|
| address * | string | Klever address (klv1... bech32 format). |
| network | string |
get_asset_infoGet complete properties and configuration for any asset on the Klever blockchain (KLV, KFI, KDA tokens, NFT collections). Returns supply info, permissions (CanMint, CanBurn, etc.), roles, precision, and metadata. Note: string fields like ID, Name, Ticker are base64-encoded in the raw response.| Parameter | Type | Description |
|---|---|---|
| assetId * | string | Asset identifier (e.g. "KLV", "KFI", "USDT-A1B2", "MYNFT-XY78"). |
| network | string |
get_balanceGet the KLV or KDA token balance for a Klever blockchain address. Returns the balance in the smallest unit (for KLV: 1 KLV = 1,000,000 units with 6 decimal places). Optionally specify an asset ID to query a specific KDA token balance instead of KLV.| Parameter | Type | Description |
|---|---|---|
| address * | string | Klever address (klv1... bech32 format). |
| assetId | string | Optional KDA token ID (e.g. "USDT-A1B2", "LPKLVKFI-3I0N"). Omit for KLV balance. |
| network | string |
get_blockGet block information from the Klever blockchain by nonce (block number). If no nonce is provided, returns the latest block. Returns hash, timestamp, proposer, number of transactions, and other block metadata.| Parameter | Type | Description |
|---|---|---|
| network | string | |
| nonce | integer | Block number (nonce). Omit to get the latest block. |
get_contextRetrieve a specific context by ID| Parameter | Type | Description |
|---|---|---|
| id * | string | The unique context ID (UUID format). Obtain IDs from query_context or find_similar results. |
get_klever_contextRetrieve relevant Klever VM development context for a given query. Searches the knowledge base and returns matching entries with code examples, best practices, and documentation. Designed as a drop-in tool for external MCP servers that need Klever context.| Parameter | Type | Description |
|---|---|---|
| includeTypes | array | Filter results to specific context types. Omit to include all types. Example: ["code_example", "best_practice"] for implementation guidance. |
| maxResults | integer | Maximum number of context entries to return (1-20). Default: 5. |
| query * | string | Natural-language query or topic to find context for (e.g. "storage mapper patterns", "deploy contract to testnet", "handle KDA token payments"). |
get_knowledge_statsGet knowledge base statisticsget_transactionGet transaction details by hash from the Klever blockchain. Returns sender, receiver, status, block info, contracts, and receipts. Uses the API proxy for indexed data.| Parameter | Type | Description |
|---|---|---|
| hash * | string | Transaction hash (hex string). |
| network | string |
init_klever_projectInitialize a new Klever smart contract project with helper scriptsinvoke_scBuild an unsigned smart contract invocation transaction on the Klever blockchain. Calls a state-changing endpoint on a deployed contract. Returns the unsigned transaction for client-side signing. For read-only calls, use query_sc instead.| Parameter | Type | Description |
|---|---|---|
| args | array | Optional base64-encoded arguments. |
| callValue | object | Optional token amounts to send with the call, as a map of token ID to amount (e.g. {"KLV": 1000000}). Required for payable endpoints. |
| funcName * | string | Endpoint function name to invoke. |
| network | string | |
| scAddress * | string | Smart contract address (klv1... bech32 format). |
| sender * | string | Caller address (klv1... bech32 format). |
list_validatorsList active validators on the Klever blockchain network. Returns validator addresses, names, commission rates, delegation info, and staking amounts.| Parameter | Type | Description |
|---|---|---|
| network | string |
query_contextSearch the Klever VM knowledge base| Parameter | Type | Description |
|---|---|---|
| contractType | string | Filter by contract type (e.g. "token", "nft", "defi", "dao"). Only returns entries tagged for this contract category. |
| limit | integer | Maximum number of results to return (1-100). Default: 10. |
| offset | integer | Number of results to skip for pagination. Use with limit to page through results. Default: 0. |
| query | string | Free-text search query. Use Klever-specific terms for best results (e.g. "storage mapper SingleValueMapper", "payable endpoint KLV", "deploy contract testnet"). |
| tags | array | Filter by tags (e.g. ["storage", "mapper"], ["tokens", "KLV"], ["events"]). Tags are matched with OR logic — any matching tag includes the entry. |
| types | array | Filter results by context type. Omit to search all types. Common combinations: ["code_example", "documentation"] for learning, ["error_pattern"] for debugging, ["security_tip", "best_practice"] for reviews. |
query_scExecute a read-only query against a Klever smart contract (VM view call). Returns the contract function result as base64-encoded return data. Arguments must be base64-encoded. Use this to read contract state without modifying it.| Parameter | Type | Description |
|---|---|---|
| args | array | Optional base64-encoded arguments. For addresses, encode the hex-decoded bech32 bytes. For numbers, use big-endian byte encoding. |
| caller | string | Optional caller address (klv1... bech32 format). Some view functions use the caller to look up address-keyed storage mappers. |
| funcName * | string | Function name to call (must be a #[view] function on the contract). |
| network | string | |
| scAddress * | string | Smart contract address (klv1... bech32 format). |
search_documentationSearch Klever VM documentation and knowledge base. Returns human-readable markdown with titles, descriptions, and code snippets. Covers koperator CLI syntax (sc invoke, sc create, sc upgrade), --args type prefixes, --values payment flags, contract metadata flags, ABI decoding, and all smart contract development topics. ALWAYS use this tool first when you need to know the correct flags or argument syntax for koperator commands. Use this instead of query_context when you need formatted developer documentation.| Parameter | Type | Description |
|---|---|---|
| category | string | Narrow results to a specific knowledge category. Available: core, storage, events, tokens, modules, tools, scripts, examples, errors, best-practices, documentation. |
| query * | string | Search query in natural language (e.g. "how to use storage mappers", "koperator sc invoke payment values", "deploy contract to testnet", "--args type prefixes", "handle KDA token transfers"). |
send_transferBuild an unsigned KLV or KDA token transfer transaction on the Klever blockchain. Returns the unsigned transaction data and hash for client-side signing. The MCP server NEVER handles private keys — signing must be done externally.| Parameter | Type | Description |
|---|---|---|
| amount * | integer | Amount in the smallest unit. For KLV: 1 KLV = 1,000,000 units (6 decimals). Example: to send 10 KLV, use 10000000. |
| assetId | string | Optional KDA token ID for non-KLV transfers (e.g. "USDT-A1B2"). Omit for KLV. |
| network | string | |
| receiver * | string | Receiver address (klv1... bech32 format). |
| sender * | string | Sender address (klv1... bech32 format). |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 64 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/mcp/server.ts:4, src/index.ts:119
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 9 callssrc/chain/client.ts:102, src/knowledge/documentation/network-endpoints.ts:129, src/knowledge/documentation/network-endpoints.ts:247
- Writes or deletes files
- No file writes or deletes
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 64 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README