Smart-Contract MCP Server Generator

by tawago

157 downloads Not rated yet Apache-2.0 license

About

Artifact2MCP Generator allows generation of MCP server automatically & dynamically given smart contract's compiled artifact (chain‑agnostic)

Details

License
Apache-2.0 license

Explore

- Generate typed MCP servers from smart contract ABIs/IDLs
- Support for multiple blockchain platforms (Ethereum, Solana, etc.)
- Customizable templates for different programming languages
- CLI tool for easy integration into development workflows

go install github.com/openhands/mcp-generator/cmd/generate-mcp@latest

```bash

npm install

A tool that generates typed MCP (Model Context Protocol) servers for any deployed smart contract.

Overview

This project provides a chain-agnostic tool that automatically generates MCP servers from smart contract artifacts (ABIs, IDLs, etc.). The generated servers expose smart contract functionality as tools that can be used by Large Language Models (LLMs) through the Model Context Protocol.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models. It enables LLMs to securely access tools and data sources through a standardized interface.

MCP follows a client-server architecture:
- MCP Hosts: Programs like Claude Desktop, IDEs, or AI tools that want to access data through MCP
- MCP Clients: Protocol clients that maintain 1:1 connections with servers
- MCP Servers: Lightweight programs that expose specific capabilities through the standardized Model Context Protocol

Features

- Generate typed MCP servers from smart contract ABIs/IDLs
- Support for multiple blockchain platforms (Ethereum, Solana, etc.)
- Customizable templates for different programming languages
- CLI tool for easy integration into development workflows

Installation

go install github.com/openhands/mcp-generator/cmd/generate-mcp@latest

Usage

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.