# mcp-klever-vm MCP server

MCP server for Klever blockchain smart contract development.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-klever-io-mcp-klever-vm
- Repository: https://github.com/klever-io/mcp-klever-vm

## Install
- Command: `npx -y @klever/mcp-server`
- Endpoint: https://mcp.klever.org/mcp
- Auth: Not captured

## Setup notes
- Package: Npm @klever/mcp-server v1.3.0
- Remote endpoint: https://mcp.klever.org/mcp

## Tools
- query_context - 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. Endpoint: https://mcp.klever.org/mcp
- get_context - 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. Endpoint: https://mcp.klever.org/mcp
- find_similar - 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. Endpoint: https://mcp.klever.org/mcp
- get_knowledge_stats - 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. Endpoint: https://mcp.klever.org/mcp
- enhance_with_context - 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. Endpoint: https://mcp.klever.org/mcp
- search_documentation - 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. Endpoint: https://mcp.klever.org/mcp
- analyze_contract - 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. Endpoint: https://mcp.klever.org/mcp
- get_balance - 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. Endpoint: https://mcp.klever.org/mcp
- get_account - 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. Endpoint: https://mcp.klever.org/mcp
- get_asset_info - 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. Endpoint: https://mcp.klever.org/mcp
- query_sc - 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. Endpoint: https://mcp.klever.org/mcp
- get_transaction - 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. Endpoint: https://mcp.klever.org/mcp
- get_block - 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. Endpoint: https://mcp.klever.org/mcp
- list_validators - List active validators on the Klever blockchain network. Returns validator addresses, names, commission rates, delegation info, and staking amounts. Endpoint: https://mcp.klever.org/mcp
- init_klever_project - 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. NOTE: In public profile, this tool returns a project template JSON and does not perform any filesystem changes. Endpoint: https://mcp.klever.org/mcp
- add_helper_scripts - 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). NOTE: In public profile, this tool returns a project template JSON and does not perform any filesystem changes. Endpoint: https://mcp.klever.org/mcp

## Resources
- klever://knowledge/index - Overview of all knowledge categories with entry counts and descriptions MIME type: text/markdown

## Prompts
- create_smart_contract - Guided workflow to create a complete Klever smart contract Arguments: contractName, contractType
- add_feature - Add a feature to an existing Klever smart contract Arguments: featureName, contractName
- debug_error - Diagnose and fix a Klever smart contract compiler or runtime error Arguments: errorMessage, sourceCode
- review_contract - Comprehensive security and quality review of a Klever smart contract Arguments: contractName

## Metadata
- Owner: io.github.klever-io
- Version: 1.3.0
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Mar 19, 2026
- Source: https://registry.modelcontextprotocol.io
