by padmarajkore
hlf-fabric-agent is a modular toolkit for managing Hyperledger Fabric test networks and their chaincode lifecycle. It enables automated setup, dynamic configuration, and AI-driven interaction with Fabric networks.
hlf-fabric-agent is a modular toolkit designed for managing Hyperledger Fabric test networks and their chaincode lifecycle. It comprises two main components: hlf-controller
, a Go-based REST API for network and chaincode operations, and hlf-mcp
, a Python-based MCP tool for automation, scripting, and integration with AI models like those in Cursor or Claude Desktop.
To use hlf-fabric-agent, first clone the repository. Then, set up and run the hlf-controller
(Go REST API) by navigating to its directory and executing go run main.go
. The first run will automatically download and configure Hyperledger Fabric binaries and samples. The API will be available at http://localhost:8081
. Next, set up hlf-mcp
(Python MCP Tool) by navigating to its directory and installing dependencies with pip install httpx
. For integration with AI tools like Cursor or Claude Desktop, you need to add specific JSON configurations to their respective configuration files, pointing to the hlf-mcp
tool.
hlf-controller
automatically downloads and configures Hyperledger Fabric binaries and samples on first run.config.yaml
file.hlf-mcp
tool allows LLMs (like those in Cursor or Claude Desktop) to interact with your Fabric network seamlessly.hlf-mcp
.Q: What are the prerequisites for running hlf-fabric-agent? A: You need Go (1.18+), Python (3.9+), and pip (for Python dependencies).
Q: How do I configure the hlf-controller?
A: The hlf-controller
is configured via the hlf-controller/config.yaml
file, where you define your network topology.
Q: Can I integrate hlf-fabric-agent with AI models?
A: Yes, the hlf-mcp
tool is designed to allow LLMs like those in Cursor or Claude Desktop to interact with your Fabric network seamlessly through specific JSON configurations.
Q: Where does the hlf-controller download Fabric samples?
A: The hlf-controller
downloads fabric-samples
to your home directory if they are missing during the first run.
Q: What is the default API base URL for the hlf-controller?
A: The default API base URL for the hlf-controller
is http://localhost:8081
.
https://github.com/user-attachments/assets/75c3414a-3901-42ff-bf33-8f57b0ca96b4
Works for test-network.
A modular toolkit for managing Hyperledger Fabric test networks and chaincode lifecycle, featuring:
hlf-controller
automatically downloads and configures Hyperledger Fabric binaries and samples on first run.config.yaml
file.hlf-mcp
tool allows LLMs (like those in Cursor or Claude Desktop) to interact with your Fabric network seamlessly.git clone <your-repo-url>
cd <repo-root>
The controller handles its own prerequisites.
cd hlf-controller
go run main.go
fabric-samples
and download them to your home directory if they are missing. The server will not start until this process is complete.http://localhost:8081
.cd ../hlf-mcp
pip install httpx
# (Optional) Install any other agent/MCP dependencies
The Go controller is configured via the hlf-controller/config.yaml
file. This is the primary way to define your network topology, including peer/orderer details, certificate paths, and timeouts.
HLF_CONFIG_PATH
: Path to a custom config.yaml
file for the controller.HLF_NETWORK_SCRIPT_PATH
: Overrides the path to your Fabric network.sh
. If not set, the path from config.yaml
is used, which in turn defaults to ~/fabric-samples/test-network/network.sh
.HLF_API_BASE
: Base URL for the hlf-controller API (used by hlf-mcp
, defaults to http://localhost:8081
).~/.cursor/mcp.json
(see hlf-mcp/README.md).claude_desktop_config.json
(see hlf-mcp/README.md).~/.cursor/mcp.json
)Add the following entry to your ~/.cursor/mcp.json
file to integrate the MCP tool with Cursor:
"hlf-controller": {
"command": "uv",
"args": [
"--directory",
"/Users/padamarajkore/Desktop/hlf-mcp", //change it to your local path for hlf-mcp folder
"run",
"mcp_hlf_tool.py"
]
}
claude_desktop_config.json
)Add the following entry to your claude_desktop_config.json
file (usually found in ~/Library/Application Support/Claude/claude_desktop_config.json
on macOS):
"hlf-controller": {
"command": "/Users/padamarajkore/.local/bin/uv", //change it to your local path for uv binary
"args": [
"--directory",
"/Users/padamarajkore/Desktop/hlf-mcp", //change it to your local path for hlf-mcp folder
"run",
"mcp_hlf_tool.py"
]
}
Note:
--directory
and script name to match the actual location and filename of your MCP tool.uv
command if it is installed elsewhere on your system..
├── hlf-controller/ # Go REST API server with its own config.yaml
├── hlf-mcp/ # Python MCP tool
├── README.md # This file
MIT
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by Skyvern-AI
Skyvern automates browser-based workflows using LLMs and computer vision, offering a robust solution for repetitive online tasks.
by PipedreamHQ
Connect APIs quickly, run event‑driven automations, and execute custom code in Node.js, Python, Go, or Bash on a hosted platform.
by czlonkowski
Provides AI assistants with structured access to n8n node documentation, properties, and operations, enabling automated workflow creation, validation, and management.
by executeautomation
mcp-playwright is a Model Context Protocol (MCP) server that enables large language models (LLMs) to perform browser automation and web scraping tasks using Playwright.
by browserbase
Provides cloud browser automation capabilities for LLMs, enabling web navigation, interaction, screenshot capture, and data extraction through Browserbase and Stagehand.
by haris-musa
excel-mcp-server is a Python-based Model Context Protocol (MCP) server that enables AI agents to programmatically create, read, and modify Excel files without requiring Microsoft Excel to be installed.
by mobile-next
Mobile-mcp is a Model Context Protocol (MCP) server designed for scalable mobile automation, app scraping, and development across iOS and Android devices, including physical devices, simulators, and emulators.
by anaisbetts
mcp-installer is an MCP server designed to automate the installation of other MCP servers, simplifying the process for users.
by leonardsellem
An MCP server that enables AI assistants to interact with n8n workflows through natural language.