Klever MCP
Official MCP server providing AI-powered tools for Klever blockchain development, including smart contract analysis, project scaffolding, SDK management, and knowledge base search to assist in building and debugging Rust-based smart contracts.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.klever.org/mcpWhat its tools do
16 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
- Popularity 31 GitHub stars
What you can do with it
- Analyze Klever smart contract Rust source code for common issues
- Initialize a new Klever smart contract project with build and deploy scripts
- Search the Klever VM knowledge base for development context
- Diagnose and fix compiler or runtime errors in smart contracts
Source and maintenance
- Last repository push
- Latest release
- v1.3.0
- Maintenance checked
Protocol and capabilities
- Server
- klever-vm-mcp 1.3.0+b1750f9ad16f033ed68e5ba76a3da5cdeb426173
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 16 advertised
- Resources
- 1 advertised
- Resource templates
- 1 advertised
- Prompts
- 4 advertised
{
"tools": {},
"prompts": {},
"resources": {}
}Tools
16 advertised
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.
{
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by tags (e.g. [\"storage\", \"mapper\"], [\"tokens\", \"KLV\"], [\"events\"]). Tags are matched with OR logic — any matching tag includes the entry."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results to return (1-100). Default: 10."
},
"query": {
"type": "string",
"description": "Free-text search query. Use Klever-specific terms for best results (e.g. \"storage mapper SingleValueMapper\", \"payable endpoint KLV\", \"deploy contract testnet\")."
},
"types": {
"type": "array",
"items": {
"enum": [
"code_example",
"best_practice",
"security_tip",
"optimization",
"documentation",
"error_pattern",
"deployment_tool",
"runtime_behavior"
],
"type": "string"
},
"description": "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."
},
"offset": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Number of results to skip for pagination. Use with limit to page through results. Default: 0."
},
"contractType": {
"type": "string",
"description": "Filter by contract type (e.g. \"token\", \"nft\", \"defi\", \"dao\"). Only returns entries tagged for this contract category."
}
}
}{
"title": "Query Knowledge Base",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The unique context ID (UUID format). Obtain IDs from query_context or find_similar results."
}
}
}{
"title": "Get Context by ID",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The context ID to find similar entries for. Obtain from query_context or get_context results."
},
"limit": {
"type": "integer",
"default": 5,
"minimum": 1,
"description": "Maximum number of similar entries to return. Typical range is 1-20; higher values may be slower. Default: 5."
}
}
}{
"title": "Find Similar Contexts",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"properties": {}
}{
"title": "Knowledge Base Stats",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "The user's natural-language question or prompt to enhance (e.g. \"How do I handle KLV payments in my contract?\")."
},
"autoInclude": {
"type": "boolean",
"default": true,
"description": "When true (default), automatically appends the most relevant knowledge base entries to the response. Set to false to only return metadata without injecting context."
}
}
}{
"title": "Enhance Query with Context",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Search query in natural language (e.g. \"how to use storage mappers\", \"deploy contract to testnet\", \"handle KDA token transfers\")."
},
"category": {
"enum": [
"core",
"storage",
"events",
"tokens",
"modules",
"tools",
"scripts",
"examples",
"errors",
"best-practices",
"documentation"
],
"type": "string",
"description": "Narrow results to a specific knowledge category. Available: core, storage, events, tokens, modules, tools, scripts, examples, errors, best-practices, documentation."
}
}
}{
"title": "Search Documentation",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"sourceCode"
],
"properties": {
"sourceCode": {
"type": "string",
"description": "The full Rust source code of the Klever smart contract to analyze. Must be valid Rust code using klever_sc imports."
},
"contractName": {
"type": "string",
"description": "Human-readable name for the contract (used in output labeling). Defaults to \"contract\" if omitted."
}
}
}{
"title": "Analyze Contract",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"description": "Klever address (klv1... bech32 format)."
},
"assetId": {
"type": "string",
"description": "Optional KDA token ID (e.g. \"USDT-A1B2\", \"LPKLVKFI-3I0N\"). Omit for KLV balance."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "Get Balance",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"description": "Klever address (klv1... bech32 format)."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "Get Account",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"assetId"
],
"properties": {
"assetId": {
"type": "string",
"description": "Asset identifier (e.g. \"KLV\", \"KFI\", \"USDT-A1B2\", \"MYNFT-XY78\")."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "Get Asset Info",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"scAddress",
"funcName"
],
"properties": {
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional base64-encoded arguments. For addresses, encode the hex-decoded bech32 bytes. For numbers, use big-endian byte encoding."
},
"caller": {
"type": "string",
"description": "Optional caller address (klv1... bech32 format). Some view functions use the caller to look up address-keyed storage mappers."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
},
"funcName": {
"type": "string",
"description": "Function name to call (must be a #[view] function on the contract)."
},
"scAddress": {
"type": "string",
"description": "Smart contract address (klv1... bech32 format)."
}
}
}{
"title": "Query Smart Contract",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"hash"
],
"properties": {
"hash": {
"type": "string",
"description": "Transaction hash (hex string)."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "Get Transaction",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"properties": {
"nonce": {
"type": "integer",
"minimum": 0,
"description": "Block number (nonce). Omit to get the latest block."
},
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "Get Block",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}list_validators
List active validators on the Klever blockchain network. Returns validator addresses, names, commission rates, delegation info, and staking amounts.
{
"type": "object",
"properties": {
"network": {
"enum": [
"mainnet",
"testnet",
"devnet",
"local"
],
"type": "string",
"description": "Network to query. Options: \"mainnet\", \"testnet\", \"devnet\", \"local\". Defaults to server default (mainnet)."
}
}
}{
"title": "List Validators",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The contract project name in kebab-case (e.g. \"my-token\", \"nft-marketplace\"). Used as the Cargo package name and directory name."
},
"noMove": {
"type": "boolean",
"default": false,
"description": "When true, keeps the project in the SDK output directory instead of moving it to the current working directory. Default: false."
},
"template": {
"enum": [
"empty",
"adder"
],
"type": "string",
"default": "empty",
"description": "Project template to scaffold from. \"empty\" creates a blank contract with just an init function. \"adder\" creates a simple counter example. Default: \"empty\"."
}
}
}{
"title": "Initialize Klever Project",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"properties": {
"contractName": {
"type": "string",
"description": "The contract name to embed in scripts (e.g. \"my-token\"). If omitted, auto-detected from the `name` field in Cargo.toml."
}
}
}{
"title": "Add Helper Scripts",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
4 advertised
create_smart_contract
Guided workflow to create a complete Klever smart contract
- contractName
- Name for the smart contract project
- contractType
- Type of contract to create (e.g. "token", "nft", "defi", "game", "dao")
add_feature
Add a feature to an existing Klever smart contract
- featureName
- Name or description of the feature to add (required)
- contractName
- Name of the target smart contract project
debug_error
Diagnose and fix a Klever smart contract compiler or runtime error
- errorMessage
- The error message or compiler output (required)
- sourceCode
- The contract source code producing the error
review_contract
Comprehensive security and quality review of a Klever smart contract
- contractName
- Name of the contract to review
Resources
1 advertised
Klever Knowledge Base Index
Overview of all knowledge categories with entry counts and descriptions
klever://knowledge/indexKlever Knowledge Category
Browse knowledge base entries by category. Available categories: core, storage, events, tokens, modules, tools, scripts, examples, errors, best-practices, documentation
klever://knowledge/{category}90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 3119 ms
- 95th percentile latency
- 3238 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 3251 ms · 16 tool(s), 1 resource(s), 1 resource template(s), 4 prompt(s)
- · probe · passed · 2987 ms · metadata changed · 16 tool(s), 1 resource(s), 1 resource template(s), 4 prompt(s)
- · repository · passed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http klever-mcp https://mcp.klever.org/mcpCodex
codex mcp add klever-mcp --url https://mcp.klever.org/mcpCursor
{
"mcpServers": {
"klever-mcp": {
"url": "https://mcp.klever.org/mcp"
}
}
}Cline
{
"mcpServers": {
"klever-mcp": {
"type": "streamableHttp",
"url": "https://mcp.klever.org/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"klever-mcp": {
"type": "http",
"url": "https://mcp.klever.org/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http klever-mcp https://mcp.klever.org/mcpClaude Desktop
https://mcp.klever.org/mcpWindsurf
{
"mcpServers": {
"klever-mcp": {
"serverUrl": "https://mcp.klever.org/mcp"
}
}
}Let your agent find its tools
Find servers like Klever MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Do you run Klever MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.