Klever MCP Server Reference
Complete reference for all capabilities of the Klever MCP (Model Context Protocol) Server.
Overview
The Klever MCP Server provides AI agents with specialized functions and access to a comprehensive knowledge base for Klever smart contract development.
Key Features:
- 12 specialized tools (functions) for contract development
- 4 guided workflows (prompts) for common tasks
- Comprehensive knowledge base across 11 categories
- Dual server profiles (local and public)
Reference Sections
Functions
Complete reference for all 12 MCP tools/functions:
Knowledge Management (7 tools):
query_context- Search knowledge basesearch_documentation- Human-readable docs searchget_context- Get specific entryfind_similar- Find related contentget_knowledge_stats- Knowledge statisticsadd_context- Add new knowledge (local only)enhance_with_context- AI-enhanced queries
Analysis:
analyze_contract- Contract code analysis
Project Management (2 tools):
init_klever_project- Initialize new projectadd_helper_scripts- Add deployment scripts
SDK Management (2 tools, local only):
check_sdk_status- Check SDK installationinstall_klever_sdk- Install Klever SDK
View complete functions reference →
MCP Prompts
Guided workflows for common development tasks:
Available Prompts:
/create_smart_contract- Create contract from scratch/add_feature- Add features to existing contracts/debug_error- Diagnose and fix errors/review_contract- Security and quality review
How they work:
- Interactive guidance through complex tasks
- Automatic knowledge base searches
- Context-aware suggestions
- Best practice recommendations
Knowledge Base
Curated entries covering all aspects of Klever development:
11 Categories:
- Core - Contract structure and fundamentals
- Storage - Storage mappers and patterns
- Events - Event handling and emission
- Tokens - KLV/KDA operations
- Modules - Built-in modules (admin, pause)
- Tools - koperator and ksc CLI reference
- Scripts - Helper scripts for deployment
- Examples - Complete contract implementations
- Errors - Common errors and solutions
- Best Practices - Security and optimization
- Documentation - API reference and guides
Access via:
- MCP Resources:
klever://knowledge/{category} - Search tools:
query_context,search_documentation - MCP Prompts (automatic integration)
Resources
- Installation: AI Environment Setup
- Functions: Complete Functions Reference
- Prompts: MCP Prompts Guide
- Knowledge: Knowledge Base Overview
- Klever AI Portal: ai.klever.org
- Repository: github.com/klever-io/mcp-klever-vm
Remember: The MCP server is a development assistant. Always review, test, and validate all generated code and suggestions before deployment.