Get the FREE Ultimate OpenClaw Setup Guide →

genlayer

MCP server for generating GenLayer Intelligent Contracts

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio albert-mr-genlayer-mcp-server npx -y genlayer-mcp

How to use

GenLayer MCP Server provides a ready-to-run environment for generating GenLayer Intelligent Contracts using an AI-native blockchain toolchain. It exposes a set of capabilities to create contracts ranging from basic storage to complex prediction markets, AI-powered oracles, and other intelligent-contract patterns, all orchestrated through MCP commands and tooling. You can interact with the server via standard MCP workflows and use the included GenLayer CLI-based commands to scaffold, test, and deploy contracts. The server is designed to work seamlessly with npx-based invocations, so you can add genlayer-mcp to your MCP configuration and run it without a local installation.

How to install

Prerequisites:

  • Node.js v18.x or newer
  • npm (comes with Node.js)
  • Basic familiarity with MCP workflows

Install and run locally:

  1. Clone the repository (or use the MCP add workflow to pull the package): git clone https://github.com/albert-mr/genlayer-mcp-server.git cd genlayer-mcp-server

  2. Install dependencies: npm install

  3. Run in development mode (with auto-reload): npm run dev

  4. (Optional) Run tests and lint: npm run test:watch npm run lint npm run validate

If you prefer not to install locally, you can access the MCP server by invoking the genlayer-mcp package via npx as described in the quick setup.

Additional notes

Notes and tips:

  • This MCP server relies on an experimental proof-of-concept stack that combines Goose and Claude Code; use with awareness of potential inconsistencies.
  • Ensure your environment supports npx invocations and that your network can access npm registries to fetch genlayer-mcp.
  • The server is intended to generate various GenLayer Intelligent Contracts; consult the GenLayer documentation for guidance on contract patterns, AI capabilities, and integration with vector stores and real-time data feeds.
  • If you encounter environment-related issues, verify Node.js version and clean install node_modules (delete node_modules and reinstall) before reporting issues.
  • You can configure the server via MCP by adding the genlayer-mcp entry to your mcpServers configuration, for example using npx with the -y flag to fetch the package on demand.

Related MCP Servers

Sponsor this space

Reach thousands of developers