Smart-Contract MCP Server Generator

by tawago

157 downloads
Not rated
GitHub

About

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

Details

Author
tawago
Downloads
157
Categories
Developer Tools

- Generates typed MCP servers from smart contract ABIs/IDLs
- Supports multiple blockchain platforms (Ethereum, Solana, etc.)
- Customizable templates for TypeScript and Python
- CLI tool for easy integration into development workflows
- Chain-agnostic design

Install via go install github.com/openhands/mcp-generator/cmd/generate-mcp@latest, then use the CLI with flags such as --artifact, --lang, --chain, and --output. For example, generate-mcp --artifact path/to/abi.json --lang ts --output ./my-mcp-server generates a TypeScript MCP server from an Ethereum ABI.

Smart-Contract MCP Server Generator

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.