@albert-mr/genlayer-mcp-server
Version:
MCP server for generating GenLayer Intelligent Contracts with AI-native blockchain capabilities
160 lines (120 loc) β’ 5 kB
Markdown
# GenLayer MCP Server
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
[](https://www.typescriptlang.org/)
A comprehensive MCP (Model Context Protocol) server for generating sophisticated
GenLayer Intelligent Contracts with AI-native blockchain capabilities.
## β οΈ Disclaimer
**This project was created as an experimental proof-of-concept to test the
capabilities of combining [Goose](https://github.com/block/goose) +
[Qwen3-Coder](https://github.com/QwenLM/Qwen3-Coder) and
[Claude Code](https://github.com/anthropics/claude-code).** This has been
vibecoded, so be aware of that. Errors or inconsistencies may occur.
## π Overview
GenLayer is the first AI-native blockchain that enables **Intelligent
Contracts** - smart contracts that can:
- π§ **Process natural language** instructions and human-readable requirements
- π **Access real-time web data** without external oracles
- π€ **Handle non-deterministic operations** through Optimistic Democracy
consensus
- π **Leverage Large Language Models** (LLMs) for complex reasoning and
decision-making
- π **Perform semantic search** with built-in vector stores
- βοΈ **Reach consensus on AI outputs** using the Equivalence Principle
This MCP server provides tools for generating various types of GenLayer
Intelligent Contractsβranging from basic storage contracts to sophisticated
prediction markets, AI-powered oracles, and moreβand is designed to make the
developer experience easier and more streamlined when building, testing, and
deploying intelligent contracts.
## π Installation & Usage
### Quick Setup with Claude Code
**Add the MCP server** (no installation needed):
Simply run this command in Claude Code:
```bash
claude mcp add genlayer npx -- -y @albert-mr/genlayer-mcp-server@latest
```
### Alternative IDE Setup
For other IDEs that support MCP:
**Use directly with npx** (no installation required):
Add to your MCP configuration:
```json
{
"mcpServers": {
"genlayer": {
"command": "npx",
"args": [
"-y",
"@albert-mr/genlayer-mcp-server@latest"
]
}
}
}
```
## π GenLayer Resources
### Documentation
- π [GenLayer Documentation](https://docs.genlayer.com/) - Complete developer
documentation
- π
[Intelligent Contracts Guide](https://docs.genlayer.com/developers/intelligent-contracts/introduction) -
Learn to build intelligent contracts
- π§
[GenLayer CLI](https://docs.genlayer.com/developers/intelligent-contracts/tools/genlayer-cli) -
Command-line development tools
- β‘
[Quick Start Guide](https://docs.genlayer.com/developers/intelligent-contracts/your-first-contract) -
Get started quickly
### Tools & Platforms
- π₯οΈ [GenLayer Studio](https://studio.genlayer.com/) - Browser-based development
environment
- π¦
[GenLayer JS SDK](https://docs.genlayer.com/developers/decentralized-applications/genlayer-js) -
JavaScript/TypeScript SDK
- π
[Python SDK](https://docs.genlayer.com/developers/intelligent-contracts/tooling-setup) -
Python development tools
### Community
- π¬ [Discord Community](https://discord.gg/8Jm4v89VAu) - Join the developer
community
- π± [Telegram](https://t.me/genlayer) - Real-time discussions
- π [GitHub](https://github.com/genlayerlabs) - Open source repositories
- π¦ [Twitter](https://twitter.com/genlayer) - Latest news and updates
### Examples & Tutorials
- π
[Contract Examples](https://docs.genlayer.com/developers/intelligent-contracts/examples/storage) -
Real-world contract examples
- π―
[Use Case Ideas](https://docs.genlayer.com/developers/intelligent-contracts/ideas) -
Inspiration for your projects
- ποΈ
[Project Boilerplate](https://docs.genlayer.com/developers/decentralized-applications/project-boilerplate) -
Starter templates
## π οΈ Development
We welcome contributions! Here's how to get started:
### Development Setup
```bash
# Clone the repository
git clone https://github.com/albert-mr/genlayer-mcp-server.git
cd genlayer-mcp-server
# Install dependencies
npm install
# Run in development mode with auto-reload
npm run dev
# Run tests during development
npm run test:watch
# Type checking
npm run lint
# Full validation
npm run validate
```
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
for details.
## Community & Support
- π **Bug Reports**:
[GitHub Issues](https://github.com/albert-mr/genlayer-mcp-server/issues)
- π¬ **Community Support**: [Discord](https://discord.gg/8Jm4v89VAu)
- π± **Real-time Chat**: [Telegram](https://t.me/genlayer)
---
**Built with β€οΈ for the GenLayer ecosystem**
_Empowering developers to build the next generation of AI-powered decentralized
applications_