- Home
- MCP servers
- Hyperlane
Hyperlane
- typescript
6
GitHub Stars
typescript
Language
5 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"suryansh-23-hyperlane-mcp": {
"command": "node",
"args": [
"/path/to/hyperlane-mcp/build/index.js"
],
"env": {
"CACHE_DIR": "/path/to/custom/cache",
"PRIVATE_KEY": "your_private_key_here",
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}You deploy and run an MCP server that lets a large language model interact with Hyperlane’s cross-chain messaging and contract infrastructure. This server handles multi-chain connections, local registry caching, deployment of core contracts, and dockerized validators/relayers for secure, isolated operation, enabling seamless cross-chain workflows from your MCP client.
How to use
You will connect your MCP client to the Hyperlane MCP Server to perform cross-chain actions. The server exposes endpoints and tooling to deploy chains, manage validators and relayers, deploy warp routes for asset transfers, and send cross-chain messages. Use the MCP client to orchestrate these capabilities by starting the server, then issuing MCP-appropriate commands via your client interface.
How to install
Prerequisites you need before installing:
# Prerequisites
node -v # v18 or higher
pnpm -v # package manager (recommended)
docker --version
Step by step install flow to set up the Hyperlane MCP Server:
# 1. Clone the project
git clone https://github.com/yourusername/hyperlane-mcp.git
cd hyperlane-mcp
# 2. Install dependencies
npm install -g pnpm
pnpm install
# 3. Build the project
pnpm build
# 4. Create and configure environment variables
cp .env.example .env
# Edit .env to provide PRIVATE_KEY, GITHUB_TOKEN, and optional CACHE_DIR
- Verify Docker is ready so validators and relayers can run in containers.
# Ensure Docker is running
docker --version
docker ps
Configuration and usage notes
Environment variables you must provide in the MCP client configuration and runtime environment include PRIVATE_KEY for signing, GITHUB_TOKEN for registry access, and an optional CACHE_DIR for local data storage. The server will use these values to authenticate, cache metadata, and sign transactions.
Starting and running the server
Start the server in development or production mode, then attach your MCP client to interact with the server.
# Development mode
pnpm start
# Production mode
node build/index.js
# With MCP Inspector for debugging
pnpm inspect
Workflows you can perform
Typical end-to-end workflows you can execute through the MCP client and server include deploying a new chain, running validators, starting relayers, deploying warp routes for asset transfers, and sending messages or assets across chains.
Examples
Deploy a new chain, then run a validator and a relayer, and finally set up a warp route for cross-chain asset transfer.
Security and operational notes
Keep your private key secure and rotate credentials regularly. Monitor validator and relayer health, manage container lifecycles carefully, and ensure your RPC endpoints are trusted and access-controlled.
Troubleshooting
If you encounter container startup issues, check Docker logs and verify you have the correct images available for validators and relayers. Common issues include permission errors with Docker, insufficient gas fees on test networks, RPC connectivity problems, and container lifecycle failures.
Examples of common commands
# Start in development mode
pnpm start
# Start in production mode
node build/index.js
# Inspect for debugging
pnpm inspect
Notes
This MCP server integrates with Hyperlane to manage cross-chain messaging and asset transfers. It runs validators and relayers in Docker containers for isolation and reliability, and maintains a local registry for chain metadata and warp route configurations.
Available tools
deploy-chain
Deploy Hyperlane core contracts to a new chain; includes chain setup and initialization.
run-validator
Start a validator container for a specific chain to verify messages.
run-relayer
Start a relayer container to deliver cross-chain messages.
deploy-warp-route
Create and configure warp routes for cross-chain asset transfers.
cross-chain-message-transfer
Send messages between chains through the Hyperlane MCP workflow.
cross-chain-asset-transfer
Execute asset transfers using warp routes across multiple chains.