Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp

MCP.Pizza Chef: ainblockchain

The AI Network MCP Server is a TypeScript-based implementation of the Model Context Protocol server designed to integrate AI agents with the AI Network blockchain. It enables agents to manage blockchain accounts, submit transactions, read blockchain data, register as Hyper Agents, and access a Layer 2 DAG-based shared memory system. This server acts as a bridge between autonomous AI systems and blockchain infrastructure, facilitating advanced decentralized AI workflows and staking mechanisms within the AI Network ecosystem.

Use This MCP server To

Manage AI Network blockchain accounts programmatically Submit and track blockchain transactions via AI agents Read and query blockchain database values in real time Register AI agents as Hyper Agents on the blockchain Enable staking and rewards through the Hyper Agent Protocol Access Layer 2 DAG-based shared agent memory for collaboration Integrate autonomous AI workflows with blockchain infrastructure

README

AI Network MCP Server

AI Network MCP Server is a TypeScript implementation of MCP(Model Context Protocol) server for interacting with AI Network blockchain.

Note

IMPORTANT: This project is currently under active development. Features may be incomplete, and there might be significant changes in future updates. Please be aware that some functionalities may not work as expected or might change without prior notice.

Overview

This project enables AI Agents to connect with the AI Network blockchain ecosystem. Through this integration, AI Agents can:

  • Manage accounts on the AI Network blockchain
  • Generate and submit transactions to the blockchain
  • Read values from the blockchain database
  • Register themselves as Hyper Agents
  • Receive staking through the Hyper Agent Protocol
  • Access the Layer 2 DAG-based shared agent memory system based on staking status

The framework serves as a bridge between autonomous AI systems and blockchain infrastructure, allowing agents to leverage decentralized capabilities while maintaining their autonomy.

Installation

  1. Clone the repository:
git clone https://github.com/ainblockchain/mcp.git
  1. Install dependencies:
cd mcp
yarn install
  1. Build the project:
yarn build

Usage

Claude Desktop

Add the following to your claude_desktop_config.json.

{
  "mcpServers": {
    "ainetwork": {
      "command": "node",
      "args": ["<path to dist/index.js>"],
      "env": [
        "PROVIDER_URL": "<>",
        "EVENT_HANDLER_URL": "<>",
        "CHAIN_ID": "<>",
        "AIN_PRIVATE_KEY": "<>"
      ]
    }
  }
}

If PROVIDER_URL, EVENT_HANDLER_URL, and CHAIN_ID are not set, it will connect to the AI Network testnet by default.

If AIN_PRIVATE_KEY is not entered, only read/get operations can be performed. The private key can be generated through the AIN Wallet, and it is also compatible with Ethereum private keys.

Troubleshooting

Error: Cannot find module '@modelcontextprotocol/sdk/server/stdio.js'

If you experience errors with the Claude desktop app, it may be referencing an outdated Node version. Explicitly specify the path to a higher version Node binary on your claude_desktop_config.json file.

Example:

{
  "mcpServers": {
    "ainetwork": {
      "command": "<path to node binary>",
      ...
    }
  }
}

mcp FAQ

How do I set up the AI Network MCP Server?
Clone the repository, install dependencies, and follow the README instructions to configure the TypeScript server for your environment.
Is the AI Network MCP Server production-ready?
The project is under active development; features may be incomplete and subject to change, so use cautiously in production.
What blockchain functionalities does this MCP server support?
It supports account management, transaction submission, blockchain data reading, Hyper Agent registration, staking, and shared memory access.
Can AI agents register themselves as Hyper Agents?
Yes, the server allows AI agents to register as Hyper Agents on the AI Network blockchain.
What is the Layer 2 DAG-based shared agent memory?
It is a decentralized shared memory system for AI agents based on staking status, enabling collaborative workflows.
How does staking work with this MCP server?
Agents can receive staking through the Hyper Agent Protocol, which is integrated into the server's functionality.
What programming language is the MCP server implemented in?
The server is implemented in TypeScript for robust blockchain interaction and integration.
Can this MCP server be extended or customized?
Yes, as an open-source TypeScript project, it can be extended to fit specific AI and blockchain integration needs.