API Reference
Complete documentation for all 34 tools and 9 resources
Quick Reference
Request Format
All requests should be made as HTTP POST to the MCP endpoint with JSON payload:
{
"name": "tool_name",
"arguments": {
"param1": "value1",
"param2": "value2"
}
}
Response Format
All successful responses follow this format:
{
"result": {
// Tool-specific result data
}
}
{
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
Blockchain Operations
get_blockchain_info
Get general information about the Neo N3 blockchain including height, validators, and network status.
{
"name": "get_blockchain_info",
"arguments": {
"network": "mainnet"
}
}
get_block_count
Get the current block height of the Neo N3 blockchain.
{
"name": "get_block_count",
"arguments": {}
}
get_block
Get detailed information about a specific block by height or hash.
network?: string (optional)
{
"name": "get_block",
"arguments": {
"hashOrHeight": "latest"
}
}
get_transaction
Get detailed information about a specific transaction by hash.
network?: string (optional)
{
"name": "get_transaction",
"arguments": {
"txid": "0x1234567890abcdef..."
}
}
get_mempool
Get current memory pool information including pending transactions.
{
"name": "get_mempool",
"arguments": {}
}
Wallet Management
create_wallet
Create a new Neo N3 wallet with encrypted private key storage.
network?: string (optional)
{
"name": "create_wallet",
"arguments": {
"password": "secure-password-123"
}
}
import_wallet
Import an existing wallet using private key, WIF, or encrypted key.
password?: string (optional)
network?: string (optional)
{
"name": "import_wallet",
"arguments": {
"key": "KweTw...",
"password": "password123"
}
}
get_balance
Get the balance of NEP-17 tokens for a specific address.
asset?: string (optional)
network?: string (optional)
{
"name": "get_balance",
"arguments": {
"address": "NZNos2WqTbu5oCgyfss9kUJgBXJqhuYAaj"
}
}
Asset Operations
transfer_assets
Transfer NEP-17 tokens between addresses with confirmation tracking.
toAddress: string (required)
asset: string (required)
amount: string (required)
confirm: boolean (required)
network?: string (optional)
{
"name": "transfer_assets",
"arguments": {
"fromWIF": "KweTw...",
"toAddress": "NZNos2...",
"asset": "GAS",
"amount": "10.5",
"confirm": true
}
}
estimate_transfer_fees
Estimate network and system fees for asset transfers.
toAddress: string (required)
asset: string (required)
amount: string (required)
network?: string (optional)
{
"name": "estimate_transfer_fees",
"arguments": {
"fromAddress": "NZNos2...",
"toAddress": "NZNos2...",
"asset": "NEO",
"amount": "1"
}
}
claim_gas
Claim unclaimed GAS from NEO holdings.
network?: string (optional)
{
"name": "claim_gas",
"arguments": {
"fromWIF": "KweTw..."
}
}
Contract Interactions
list_famous_contracts
List all supported famous contracts and their availability.
{
"name": "list_famous_contracts",
"arguments": {}
}
get_contract_info
Get detailed information about a specific famous contract.
network?: string (optional)
{
"name": "get_contract_info",
"arguments": {
"contractName": "NeoFS"
}
}
invoke_read_contract
Invoke read-only contract methods without state changes.
operation: string (required)
args?: array (optional)
network?: string (optional)
{
"name": "invoke_read_contract",
"arguments": {
"contractName": "NeoFS",
"operation": "getContainers",
"args": ["owner-id"]
}
}
invoke_write_contract
Invoke contract methods that modify blockchain state.
contractName: string (required)
operation: string (required)
args?: array (optional)
confirm: boolean (required)
network?: string (optional)
{
"name": "invoke_write_contract",
"arguments": {
"fromWIF": "KweTw...",
"contractName": "NeoFS",
"operation": "createContainer",
"args": ["owner-id", []],
"confirm": true
}
}
Network Resources
Resources provide read-only access to blockchain data through URI-based endpoints.
network_status
Live network status including block height, node count, and network health metrics.
mcp://neo-n3/network/status
validators
Current list of consensus validators and their voting information.
mcp://neo-n3/network/validators
gas_price
Current network gas price and fee estimation data.
mcp://neo-n3/network/gas-price
Error Codes
-32600
Invalid Request - The JSON sent is not a valid Request object.
-32601
Method not found - The method does not exist or is not available.
-32602
Invalid params - Invalid method parameter(s).
-32603
Internal error - Internal server error.