Skip to main content

Herd Agent

Herd connects AI agents to on-chain data and actions through multiple interfaces. Query contracts, decode transactions, analyze wallets, build/simulate actions, and query onchain data — all using natural language. The MCP server, CLI, and TypeScript SDK all expose the same set of tools and capabilities.

MCP Install

Add Herd as an MCP server to your AI coding client.
  • Claude Code: claude mcp add --transport http herd-mcp https://mcp.herd.eco/v1
  • Cursor: Add via Settings → MCP
  • Codex: Add via MCP configuration

Authenticate

  1. Open /mcp in your IDE (Claude, Cursor, or Codex)
  2. Find herd-mcp in the MCP list
  3. Click Authenticate to complete the OAuth flow
  4. Sign in with your Herd account at herd.eco

Manage

CLI Install

Install the Herd CLI for terminal-based access to all Herd tools.

Authenticate

This opens a browser for OAuth authentication. On successful login, the CLI automatically provisions an API key stored at ~/.herd/credentials.json. This API key can also be used with the TypeScript SDK.

Commands

Output Formats

SDK Install

Install the Herd TypeScript SDK to integrate Herd tools into your applications.

Authentication

Use an API key generated via the CLI (herd login) or set the HERD_API_KEY environment variable.
The SDK provides programmatic access to all the same tools available through the MCP server and CLI.

Capabilities

Contracts

Fetch metadata, search source code, compare proxy implementations, inspect role topology

Transactions

Decode traces, parse logs, track balance changes

Wallets

Detect wallet types, view holdings, list deployments

HAL

Create and simulate actions, adapters, code blocks, and collections

Bookmarks

Save and manage wallets, contracts, and transactions

Supported Networks

Tools Quick Reference

Contract Tools

Transaction Tools

Wallet Tools

Bookmark Tools

HAL Tools