Skip to main content
Open Source · MIT Licensed

Klever MCP Server
AI-Powered Blockchain
Development

Connect your AI assistant to 95+ Klever VM knowledge entries. Build, deploy, and debug smart contracts with contextual guidance.

$ npx -y @klever/mcp-server

Quick Setup

Connect your favorite AI tool to the Klever MCP Server in seconds.

Via npx (local, recommended)
claude mcp add klever-vm -- npx -y @klever/mcp-server
Via public hosted server
claude mcp add -t http klever-vm https://mcp.klever.org/mcp

What Can This MCP Do?

16 tools and prompts across 5 categories to accelerate your smart contract development.

Knowledge & Search

tool

query_context

Search the Klever VM knowledge base for smart contract development context. Filter by type, tags, or contract category.

tool

search_documentation

Search documentation in human-readable markdown format. Optimized for "how do I..." questions.

tool

get_context

Retrieve a single knowledge base entry by ID with full content and metadata.

tool

find_similar

Find related knowledge entries by comparing tags and content similarity.

tool

get_knowledge_stats

Get summary statistics — total entries, counts by type, and sample titles.

tool

enhance_with_context

Augment a natural-language query with relevant Klever VM knowledge before answering.

Code Analysis

tool

analyze_contract

Analyze Klever smart contract Rust source code for common issues: missing imports, annotations, payable handlers, storage mappers, and event definitions.

Project Scaffolding

tool

init_klever_project

Initialize a new Klever smart contract project with build, deploy, query, and test scripts.

tool

add_helper_scripts

Add helper scripts (deploy, upgrade, query, interact) to an existing project.

SDK & Environment

local only
tool

check_sdk_status

Check if Klever SDK tools (ksc, koperator) are installed and report versions.

tool

install_klever_sdk

Install or update Klever SDK build tools.

tool

add_context

Add custom knowledge entries to the local context store.

AI Prompts

guided workflows
prompt

create_smart_contract

Guided workflow to create a complete Klever smart contract.

prompt

add_feature

Add a feature to an existing Klever smart contract.

prompt

debug_error

Diagnose and fix a compiler or runtime error.

prompt

review_contract

Comprehensive security and quality review.

Try These Prompts

After connecting, ask your AI assistant any of these to get started.

Create

Create a KDA token contract with mint and burn functions

Learn

How do I use SingleValueMapper for storage?

Deploy

Deploy my contract to Klever testnet

Query

Check my account balance on devnet

Create

Generate a smart contract for NFT minting with royalties

Learn

What's the difference between SetMapper and MapMapper?

Review

Review my contract for security issues

Learn

How do I handle payable endpoints with KLV?

Debug

Debug: error[E0433] could not find `klever_sc` in the crate root

Create

Add staking rewards to my existing contract

Knowledge Base

95+ curated entries across 11 categories, always up-to-date with the latest Klever VM SDK.

12

Core Concepts & Imports

11

Storage Patterns & Mappers

8

Event Handling & Rules

9

Token Operations & Decimals

6

Built-in Modules

7

CLI Tools

8

Helper Scripts

12

Contract Examples

9

Common Errors & Solutions

7

Best Practices

6

API Reference

Frequently Asked Questions

No. The public server is free and requires no authentication. Just connect and start building.

Klever blockchain — mainnet, testnet, and devnet environments are all supported.

Yes, MIT licensed. View on GitHub.

Local mode (npx) gives you all tools including project scaffolding, SDK management, and custom context entries. The hosted server at mcp.klever.org provides read-only knowledge access and contract analysis.

Yes. Pull the Docker image with docker pull kleverapp/mcp-klever-vm:latest or clone the repository and run with Node.js.

Rust, compiled to WebAssembly (WASM) and deployed to the Klever Virtual Machine (KleverVM).