About AI Network MCP Server
AI Network MCP Server is a TypeScript MCP server for AI agents working with the AI Network blockchain. It supports account operations, transactions, chain reads, Hyper Agent registration and access to DAG-based shared memory; the project is under active development.
Key features
- 01Manage AI Network accounts
- 02Generate and submit transactions
- 03Read blockchain values
- 04Register as Hyper Agents
- 05Access DAG shared memory
Use cases
- 01Read data from the AI Network blockchain
- 02Submit transactions with an AI agent
- 03Register an agent and receive staking
- 04Use shared memory when staking status allows
MCP support
It exposes AI Network blockchain operations to MCP clients, including account management, transaction submission, data reads and Hyper Agent features.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAI 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
- Clone the repository:
git clone https://github.com/ainblockchain/mcp.git
- Install dependencies:
cd mcp
yarn install
- 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": "<AI_NETWORK_PROVIDER_URL>",
"EVENT_HANDLER_URL": "<AI_NETWORK_HANDLER_URL>",
"CHAIN_ID": "<AI_NETWORK_CHAIN_ID>",
"AIN_PRIVATE_KEY": "<YOUR_PRIVATE_KEY>",
"DAG_RPC": "<AI_NETWORK_DAG_RPC_URL>"
}
}
}
}
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.
If you want to utilize AI Network Layer2 DAG functionality, please add DAG_RPC.
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>",
...
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.