Skip to main content
Glama
adityajoshi12

Hyperledger Fabric MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_PORTNoHTTP port to use when MCP_TRANSPORT is set to http3000
FABRIC_MSP_IDYesThe MSP (Membership Service Provider) ID for the organization
MCP_TRANSPORTNoTransport mode for MCP server (stdio or http)stdio
FABRIC_CHANNELYesThe Hyperledger Fabric channel name
FABRIC_USER_IDYesThe user identity ID to use from the wallet
FABRIC_CHAINCODEYesThe chaincode name to interact with
FABRIC_WALLET_PATHYesPath to the wallet directory containing user identities
FABRIC_CONNECTION_PROFILEYesPath to the Fabric network connection profile JSON file

Tools

Functions exposed to the LLM to take actions

NameDescription
invoke_chaincode

Invoke a transaction on the Hyperledger Fabric chaincode

query_chaincode

Query the Hyperledger Fabric chaincode (read-only)

get_transaction_history

Get the transaction history for a specific asset

get_block_info

Get information about a specific block

get_blockchain_info

Get blockchain information including total block count, current block hash, and previous block hash

list_enrolled_identities

List all identities enrolled in the wallet

get_installed_chaincodes

Get list of chaincodes installed on the peer

get_approved_chaincode

Get the approved chaincode definition for an organization

get_committed_chaincode

Get the committed chaincode definition on the channel

check_commit_readiness

Check if a chaincode definition is ready to be committed

list_channels

List all channels the peer has joined

get_channel_info

Get information about a specific channel

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adityajoshi12/fabric-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server