# io.github.klever-io/mcp-klever-vm (npm · @klever/mcp-server)

MCP server for Klever blockchain smart contract development.

- Trust score: 80/100 (high trust)
- Change this week: +28
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- remote · `mcp.klever.org`: 77/100, [markdown](https://verifymcp.io/servers/klever-io-mcp-klever-vm/mcp.md), [page](https://verifymcp.io/servers/klever-io-mcp-klever-vm/mcp)
- npm · `@klever/mcp-server`: 80/100 (this document), [markdown](https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server.md), [page](https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server)

## Channel facts

- Registry: `npm`
- Package: `@klever/mcp-server`
- Version: `1.3.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (114 of 115), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (114 of 115), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to klever-io/mcp-klever-vm).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 136 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 80/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 3188 tokens (~132/item across 24 items; 23 tools + 1 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add klever-io-mcp-klever-vm -- npx -y @klever/mcp-server
```

### Codex

```bash
codex mcp add klever-io-mcp-klever-vm -- npx -y @klever/mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "klever-io-mcp-klever-vm": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@klever/mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add klever-io-mcp-klever-vm --command npx --arg -y --arg @klever/mcp-server
```

### Hermes

```yaml
mcp_servers:
  klever-io-mcp-klever-vm:
    command: "npx"
    args: ["-y", "@klever/mcp-server"]
```

### Other

```json
{
  "mcpServers": {
    "klever-io-mcp-klever-vm": {
      "command": "npx",
      "args": [
        "-y",
        "@klever/mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 80, +60)

- [security improvement] Install scripts: unverified → pass
- [security improvement] Provenance: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Source repository: unverified → pass
- [security improvement] Malware scan: unverified → pass
- [security] The attested source repository moved: klever-io/mcp-klever-vm
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Schema quality: 100 → unverified
- [functional regression] Security disclosure: fail → unverified
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Stability: unverified → 0.20
- [functional improvement] Schema quality: unverified → good
- [functional] Licence: MIT

### 2026-08-01 (score 20, −9)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-31 (score 29, +4)

- [security regression] Malware scan: pass → unverified
- [security improvement] Provenance: unverified → pass
- [security improvement] Install scripts: unverified → pass
- [security] The attested source repository moved: klever-io/mcp-klever-vm
- [functional improvement] License: unverified → pass
- [functional improvement] Maintenance: unverified → pass
- [functional] Licence: MIT

### 2026-07-29 (score 25, −27)

- [functional regression] Schema quality: 100 → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] Dependency health: unverified → partial

### 2026-07-27 (score 52)

First indexed and scored.

## MCP tools (23)

### `query_context` (~281 tokens)

Search the Klever VM knowledge base for smart contract development context. Returns structured JSON with matching entries, scores, and pagination. Use this for precise filtering by type or tags; use search_documentation for human-readable "how do I..." answers.

Input parameters:

- `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 r…

### `get_context` (~78 tokens)

Retrieve a single knowledge base entry by its unique ID. Returns the full entry including content, metadata, tags, and related context IDs. Use this after query_context or find_similar to get complete details for a specific entry.

Input parameters:

- `id` (string, required): The unique context ID (UUID format). Obtain IDs from query_context or find_similar results.

### `find_similar` (~105 tokens)

Find knowledge base entries similar to a given entry by comparing tags and content. Returns related contexts ranked by similarity score. Useful for discovering related patterns, examples, or documentation after finding one relevant entry.

Input parameters:

- `id` (string, required): 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.

### `get_knowledge_stats` (~64 tokens)

Get summary statistics of the Klever VM knowledge base. Returns total entry count, counts broken down by context type (code_example, best_practice, security_tip, etc.), and a sample entry title for each type. Useful for understanding what knowledge is available before querying.

### `enhance_with_context` (~132 tokens)

Augment a natural-language query with relevant Klever VM knowledge base context. Extracts Klever-specific keywords, finds matching entries, and returns the original query combined with relevant code examples and documentation in markdown. Use this to enrich a user prompt before answering Klever development questions.

Input parameters:

- `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, required): The user's natural-language question or prompt to enhance (e.g. "How do I handle KLV payments in my contract?").

### `search_documentation` (~132 tokens)

Search Klever VM documentation and knowledge base. Returns human-readable markdown with titles, descriptions, and code snippets. Optimized for "how do I..." questions. Use this instead of query_context when you need formatted developer documentation.

Input parameters:

- `category` (string): Narrow results to a specific knowledge category. Available: core, storage, events, tokens, modules, tools, scripts, examples, errors, best-practices, documentation.
- `query` (string, required): Search query in natural language (e.g. "how to use storage mappers", "deploy contract to testnet", "handle KDA token transfers").

### `analyze_contract` (~136 tokens)

Analyze 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.

Input parameters:

- `contractName` (string): Human-readable name for the contract (used in output labeling). Defaults to "contract" if omitted.
- `sourceCode` (string, required): The full Rust source code of the Klever smart contract to analyze. Must be valid Rust code using klever_sc imports.

### `get_balance` (~170 tokens)

Get 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.

Input parameters:

- `address` (string, required): Klever address (klv1... bech32 format).
- `assetId` (string): Optional KDA token ID (e.g. "USDT-A1B2", "LPKLVKFI-3I0N"). Omit for KLV balance.
- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).

### `get_account` (~98 tokens)

Get 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.

Input parameters:

- `address` (string, required): Klever address (klv1... bech32 format).
- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).

### `get_asset_info` (~149 tokens)

Get 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.

Input parameters:

- `assetId` (string, required): Asset identifier (e.g. "KLV", "KFI", "USDT-A1B2", "MYNFT-XY78").
- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).

### `query_sc` (~204 tokens)

Execute 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.

Input parameters:

- `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, required): Function name to call (must be a #[view] function on the contract).
- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `scAddress` (string, required): Smart contract address (klv1... bech32 format).

### `get_transaction` (~89 tokens)

Get transaction details by hash from the Klever blockchain. Returns sender, receiver, status, block info, contracts, and receipts. Uses the API proxy for indexed data.

Input parameters:

- `hash` (string, required): Transaction hash (hex string).
- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).

### `get_block` (~103 tokens)

Get 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.

Input parameters:

- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `nonce` (integer): Block number (nonce). Omit to get the latest block.

### `list_validators` (~70 tokens)

List active validators on the Klever blockchain network. Returns validator addresses, names, commission rates, delegation info, and staking amounts.

Input parameters:

- `network` (string): Network to query. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).

### `send_transfer` (~204 tokens)

Build 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.

Input parameters:

- `amount` (integer, required): 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): Network to use. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `receiver` (string, required): Receiver address (klv1... bech32 format).
- `sender` (string, required): Sender address (klv1... bech32 format).

### `deploy_sc` (~185 tokens)

Build 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.

Input parameters:

- `initArgs` (array): Optional base64-encoded init arguments for the contract constructor.
- `network` (string): Network to use. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `sender` (string, required): 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).

### `invoke_sc` (~191 tokens)

Build 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.

Input parameters:

- `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, required): Endpoint function name to invoke.
- `network` (string): Network to use. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `scAddress` (string, required): Smart contract address (klv1... bech32 format).
- `sender` (string, required): Caller address (klv1... bech32 format).

### `freeze_klv` (~133 tokens)

Build 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.

Input parameters:

- `amount` (integer, required): Amount of KLV to freeze in the smallest unit (1 KLV = 1,000,000 units).
- `network` (string): Network to use. Options: "mainnet", "testnet", "devnet", "local". Defaults to server default (mainnet).
- `sender` (string, required): Address to freeze from (klv1... bech32 format).

### `add_context` (~169 tokens)

Add a new knowledge entry to the Klever VM context store. Use this to save code examples, best practices, security tips, or documentation that can later be retrieved via query_context or search_documentation. Returns the generated ID of the new entry.

Input parameters:

- `content` (string, required): The main content body — typically Rust source code, a CLI command, or a detailed explanation. For code, include the full working snippet.
- `metadata` (object, required): Entry metadata including title, tags, and categorization. At minimum, provide a title.
- `type` (string, required): 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_patt…

### `init_klever_project` (~178 tokens)

Scaffold a new Klever smart contract project using the SDK. Creates the Rust project structure via `ksc new` and generates automation scripts (build, deploy, upgrade, query, test, interact). Requires Klever SDK installed at ~/klever-sdk/. Run check_sdk_status first to verify.

Input parameters:

- `name` (string, required): The contract project name in kebab-case (e.g. "my-token", "nft-marketplace"). Used as the Cargo package name and directory name.
- `noMove` (boolean): When true, keeps the project in the SDK output directory instead of moving it to the current working directory. Default: false.
- `template` (string): Project template to scaffold from. "empty" creates a blank contract with just an init function. "adder" creates a simple counter example. Default: "empty".

### `add_helper_scripts` (~101 tokens)

Add build, deploy, upgrade, query, test, and interact automation scripts to an existing Klever smart contract project. Creates a scripts/ directory with bash scripts and updates .gitignore. Run this from the project root directory (where Cargo.toml is located).

Input parameters:

- `contractName` (string): The contract name to embed in scripts (e.g. "my-token"). If omitted, auto-detected from the `name` field in Cargo.toml.

### `check_sdk_status` (~78 tokens)

Check whether the Klever SDK is installed and report the status of each component. Returns JSON with installation state and versions for: ksc (smart contract compiler), koperator (blockchain CLI), VM library (libvmexeccapi), and wallet key file. Run this before init_klever_project or install_klever_sdk to verify prerequisites.

### `install_klever_sdk` (~119 tokens)

Download and install Klever SDK tools to ~/klever-sdk/. Fetches the latest versions from the Klever CDN, installs binaries, and downloads required VM library dependencies. Supports macOS (arm64/amd64) and Linux. Run check_sdk_status first to see what is already installed.

Input parameters:

- `tool` (string): Which SDK component to install. "ksc" = smart contract compiler only, "koperator" = blockchain operator CLI + VM library, "all" = both ksc and koperator. Default: "all".

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server#diagnostics

## Score history

- 2026-08-03: 80
- 2026-08-02: 80
- 2026-08-01: 20
- 2026-07-31: 29
- 2026-07-29: 25
- 2026-07-28: 52
- 2026-07-27: 52

## Links

- npm package: https://www.npmjs.com/package/@klever/mcp-server
- Socket report: https://socket.dev/npm/package/@klever/mcp-server
- Repository: https://github.com/klever-io/mcp-klever-vm
- Changelog RSS feed: https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server/changelog.json
- HTML version of this page: https://verifymcp.io/servers/klever-io-mcp-klever-vm/klever-mcp-server
