Hyperion MCP Server SDK Guide

Complete SDK guide for integrating with the Hyperion MCP Server via Smithery

📋 Table of Contents

🚀 Quick Start

Basic Setup

import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { Client } from "@modelcontextprotocol/sdk/client/index.js"

// Construct server URL with authentication
const url = new URL("https://server.smithery.ai/@cuongpo/hyperion-mcp-server/mcp")
url.searchParams.set("api_key", "36e96d01-a9dd-4e4c-a705-bbe239a712ea")
url.searchParams.set("profile", "notable-sparrow-IsrW6Y")
const serverUrl = url.toString()

const transport = new StreamableHTTPClientTransport(serverUrl)

// Create MCP client
const client = new Client({
  name: "My Hyperion App",
  version: "1.0.0"
})

await client.connect(transport)

// List available tools
const tools = await client.listTools()
console.log(`Available tools: ${tools.map(t => t.name).join(", ")}`)

📦 Installation

Prerequisites

  • Node.js 18+

  • npm or yarn package manager

Install MCP SDK

TypeScript Support (Optional)

🔐 Authentication

The Hyperion MCP Server is hosted on Smithery and requires authentication:

🛠️ Available Tools

The Hyperion MCP Server provides 18 comprehensive tools for blockchain interactions:

💼 Wallet Management

create_wallet

Create a new Hyperion wallet with generated mnemonic phrase.

Parameters:

  • name (optional): Wallet name

Example:

import_wallet

Import existing wallet using private key or mnemonic phrase.

Parameters:

  • privateKey (optional): Private key to import

  • mnemonic (optional): Mnemonic phrase to import

  • name (optional): Wallet name

Example:

list_wallets

List all available wallets.

Parameters: None

Example:

set_current_wallet

Set the current active wallet for transactions.

Parameters:

  • address (required): Wallet address to set as current

Example:

get_current_wallet

Get current active wallet information.

Parameters: None

Example:

💰 Balance & Transactions

get_balance

Get balance of wallet address (native tMETIS or ERC20 tokens).

Parameters:

  • address (required): Wallet address to check

  • tokenAddress (optional): ERC20 token contract address

Examples:

send_transaction

Send native tokens or ERC20 tokens to another address.

Parameters:

  • to (required): Recipient address

  • amount (required): Amount to send (in token units, not wei)

  • tokenAddress (optional): ERC20 token contract address

  • gasLimit (optional): Gas limit

  • gasPrice (optional): Gas price

Examples:

get_transaction

Get transaction details by hash.

Parameters:

  • hash (required): Transaction hash

Example:

estimate_gas

Estimate gas cost for a transaction.

Parameters:

  • to (required): Recipient address

  • value (optional): Value to send (in ether)

  • data (optional): Transaction data

Example:

🔗 Blockchain Queries

get_block

Get block information by number or hash.

Parameters:

  • blockNumber (optional): Block number

  • blockHash (optional): Block hash

Examples:

get_network_info

Get current network information and status.

Parameters: None

Example:

📄 Smart Contract Interactions

call_contract

Call a smart contract method (read-only).

Parameters:

  • contractAddress (required): Smart contract address

  • methodName (required): Method name to call

  • parameters (optional): Method parameters array

  • abi (optional): Contract ABI array

Example:

send_contract_transaction

Send a transaction to a smart contract method.

Parameters:

  • contractAddress (required): Smart contract address

  • methodName (required): Method name to call

  • parameters (optional): Method parameters array

  • abi (optional): Contract ABI array

  • value (optional): Ether value to send

  • gasLimit (optional): Gas limit

  • gasPrice (optional): Gas price

Example:

🪙 ERC20 Token Tools

deploy_erc20_token

Deploy a new ERC20 token contract.

Parameters:

  • name (required): Token name (e.g., "My Token")

  • symbol (required): Token symbol (e.g., "MTK")

  • initialSupply (required): Initial token supply

  • decimals (optional): Token decimals (default: 18)

  • mintable (optional): Whether token should be mintable (default: false)

  • gasLimit (optional): Gas limit

  • gasPrice (optional): Gas price

Example:

get_token_info

Get information about an ERC20 token.

Parameters:

  • tokenAddress (required): ERC20 token contract address

Example:

mint_tokens

Mint tokens (only for mintable tokens).

Parameters:

  • tokenAddress (required): ERC20 token contract address

  • to (required): Address to mint tokens to

  • amount (required): Amount of tokens to mint

  • gasLimit (optional): Gas limit

  • gasPrice (optional): Gas price

Example:

🎨 ERC721 NFT Tools

deploy_erc721_token

Deploy a new ERC721 token contract (NFT).

Parameters:

  • name (required): Token name (e.g., "My NFT")

  • symbol (required): Token symbol (e.g., "NFT")

  • bytecode (required): Compiled contract bytecode (0x...)

  • gasLimit (optional): Gas limit for deployment

  • gasPrice (optional): Gas price for deployment

Example:

Note: You need to provide the compiled bytecode for the ERC721 contract. The server includes a reference implementation (HyperionERC721) that extends OpenZeppelin's ERC721URIStorage with minting capabilities.

📝 Usage Examples

Complete Wallet Setup and Transaction Flow

ERC20 Token Management

ERC721 NFT Management

Smart Contract Interaction

⚠️ Error Handling

Common Error Types

Retry Logic

🎯 Best Practices

1. Connection Management

2. Environment Configuration

3. Type Safety (TypeScript)

4. Gas Optimization

5. Batch Operations

🔒 Security Considerations

1. API Key Management

2. Input Validation

3. Rate Limiting

📚 Additional Resources

Network Information

  • Hyperion Testnet RPC: https://hyperion-testnet.metisdevops.link

  • Chain ID: 133717

  • Currency: tMETIS (Test METIS)

  • Explorer: https://hyperion-testnet-explorer.metisdevops.link

Tool Summary

Category
Tools
Count

Wallet Management

create_wallet, import_wallet, list_wallets, set_current_wallet, get_current_wallet

5

Balance & Transactions

get_balance, send_transaction, get_transaction, estimate_gas

4

Blockchain Queries

get_block, get_network_info

2

Smart Contracts

call_contract, send_contract_transaction

2

ERC20 Tokens

deploy_erc20_token, get_token_info, mint_tokens

3

ERC721 NFTs

deploy_erc721_token

1

Total

18

Example Applications

  1. DeFi Dashboard: Track balances, transactions, and token holdings

  2. Token Launchpad: Deploy and manage ERC20 tokens

  3. NFT Marketplace: Deploy ERC721 contracts and mint NFTs

  4. Wallet Manager: Create and manage multiple wallets

  5. Smart Contract Interface: Interact with deployed contracts

  6. Transaction Monitor: Track and analyze blockchain transactions

  7. Digital Art Platform: Create and manage NFT collections

🤝 Support

For issues, questions, or contributions:


Happy building with Hyperion MCP Server! 🚀