AI Network MCP Server

AI Network MCP Server

Enables AI agents to interact with the AI Network blockchain by managing accounts, submitting transactions, and reading database values. It supports registering Hyper Agents and accessing a Layer 2 DAG-based shared agent memory system based on staking status.

Category
Visit Server

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": "<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>",
      ...
    }
  }
}

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured