Skip to main content
Glama

NomadexMCP

Protocol MCP server for the Nomadex DEX on Voi.

Architecture

NomadexMCP is a protocol-level MCP that sits above the infrastructure MCP layer:

UluCoreMCP / UluVoiMCP / UluWalletMCP / UluBroadcastMCP
                                ↓
                          NomadexMCP
                                ↓
                     Nomadex analytics API (pool + token listing)
                     On-chain  (swap + liquidity txns, opt-in / resource simulation)

Data sources:

  • Nomadex analytics (voimain-analytics.nomadex.app) — Pool and token list with balances, volume, and APR. Drives get_pools, get_pool, get_tokens, and pool selection for get_quote / swap_txn.

  • Mimir (mainnet-idx.nautilus.sh) — Optional indexer client in api.js (e.g. ARC-200 balances); not wired to every MCP tool.

  • On-chain (algod) — swap_txn builds deposit + swapAlphaToBeta / swapBetaToAlpha app calls locally (same ABI as swap-api’s Nomadex module); add/remove liquidity; ARC-200 box checks; populateAppCallResources for groups.

NomadexMCP handles:

  • Pool discovery with live balances, volume, and APR

  • Token listing across Nomadex pools

  • get_quote — local constant-product math on the pool picked from analytics (Nomadex-only)

  • swap_txn — unsigned swap groups for any pool returned by analytics (native / ASA / ARC-200), aligned with get_quote amounts and slippage

  • Add/remove liquidity (direct on-chain)

NomadexMCP does NOT:

  • Sign transactions (use UluWalletMCP)

  • Broadcast transactions (use UluBroadcastMCP)

  • Manage wallets

Related MCP server: DorkFiMCP

Tools

Pools

Tool

Description

get_pools

List Nomadex pools with balances, TVL, volume, and APR

get_pool

Get detailed info for a specific pool by app ID

Tokens

Tool

Description

get_tokens

List tokens available on Nomadex with contract IDs and pool counts

Quotes

Tool

Description

get_quote

Swap quote via local Nomadex AMM math on a pool from analytics (no swap-api)

Transaction Preparation

Tool

Description

swap_txn

Build unsigned swap transactions on-chain (deposit + pool swap; any analytics pool)

add_liquidity_txn

Build unsigned transactions to add liquidity to a Nomadex pool

remove_liquidity_txn

Build unsigned transactions to remove liquidity from a Nomadex pool

Agent Workflow

Agent calls NomadexMCP:  swap_txn(fromToken, toToken, amount, sender)
       → returns { transactions: [base64, ...], details: { route, rate, ... } }

Agent calls UluWalletMCP: wallet_sign_transactions(signerId, transactions)
       → returns signed transactions

Agent calls UluBroadcastMCP: broadcast_transactions(network, txns)
       → returns transaction IDs

Project Structure

index.js              MCP server entry point (7 tools)
lib/
  api.js              Nomadex analytics, Mimir (balances)
  client.js           Algod client factory, token type inference, on-chain state
  pools.js            Pool formatting and discovery from analytics
  quotes.js           Local AMM quotes; swap txn details + amounts for swap_txn
  nomadexSwap.js      Nomadex swap ABI (deposit + swapAlphaToBeta / swapBetaToAlpha)
  builders.js         Liquidity + swap groups, opt-in prep, populateAppCallResources
data/
  contracts.json      Network config, API URLs, pool factory ID

Setup

npm install

Run

node index.js

Or configure as an MCP server in your agent:

{
  "mcpServers": {
    "nomadex": {
      "command": "node",
      "args": ["/path/to/NomadexMCP/index.js"]
    }
  }
}

Token Types

Nomadex pools support three token types:

Type

Value

Description

NATIVE

0

Native VOI token

ASA

1

Algorand Standard Asset

SMART

2

ARC-200 smart asset

On Voi mainnet, pools primarily use NATIVE (VOI) and SMART (ARC-200) tokens.

Pool Factory

The Nomadex pool factory on Voi mainnet is application 411751. All pools are created through this factory contract.

External APIs

API

Base URL

Used by

Nomadex analytics

https://voimain-analytics.nomadex.app

get_pools, get_pool, get_tokens, pool pick for get_quote / swap_txn

Mimir indexer

https://mainnet-idx.nautilus.sh/nft-indexer/v1/

fetchTokenBalances in api.js

Algod (Voi)

https://mainnet-api.voi.nodely.dev

Swap + liquidity txns, simulation / resource population

References

  • Nomadex Web

  • swap-api — Reference implementation for Nomadex swap txn shape (this MCP no longer calls it)

  • Ally — DEX aggregator UI

Available Tools

7 tools
add_liquidity_txnB

Build unsigned transactions to add liquidity to a Nomadex pool. Returns base64-encoded transactions for signing.

Inputs: sender (required), amountA (required), amountB (required), poolAppId (required).

get_poolC

Get detailed information for a specific Nomadex pool by application ID.

Inputs: poolAppId (required).

get_poolsA

List Nomadex DEX pools on Voi with balances, TVL, volume, and APR. Optionally filter by token symbol.

Inputs: symbol.

get_quoteB

Get a swap quote with expected output, rate, and price impact. Uses local Nomadex AMM math for direct pool quotes.

Inputs: amount (required), toToken (required), fromToken (required), slippage.

get_tokensB

List tokens available on Nomadex with their contract IDs, decimals, and pool count.

Inputs: symbol.

remove_liquidity_txnA

Build unsigned transactions to remove liquidity from a Nomadex pool. Returns base64-encoded transactions for signing.

Inputs: sender (required), lpAmount (required), poolAppId (required).

swap_txnA

Build unsigned swap transactions for a Nomadex pool. Finds the best Nomadex pool for the pair and returns base64-encoded transactions for signing via UluWalletMCP.

Inputs: amount (required), sender (required), toToken (required), fromToken (required), +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool maps to a distinct action: list pools (get_pools) vs. one pool's detail (get_pool) are cleanly separated by cardinality, and the read-only quote path (get_quote) is distinct from the three transaction-building tools. No two tools compete for the same selection.

    Naming Consistency4/5

    Names follow a readable get_* for reads and verb_noun_txn for transaction builders, which is a predictable split. Minor deviations: the 'txn' abbreviation alongside full words like 'liquidity', and swap_txn uses a bare verb where siblings use verb_noun (add_liquidity_txn).

    Tool Count5/5

    Seven tools is well-scoped for a DEX server: three read tools, one quote, and three transaction builders. Every tool earns its place with no filler.

    Completeness4/5

    Covers the core DEX lifecycle: discover pools/tokens, quote, swap, and add/remove liquidity, with signing correctly delegated to a wallet server. Gaps exist around position/LP balance inspection, transaction status confirmation, and pool creation, but these are minor for an agent workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that enables interaction with the Tinyman AMM DEX on the Algorand blockchain. It provides tools for pool discovery, token analytics, swap quotes, and building unsigned transactions for swaps and liquidity management.
      13
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables interaction with the DorkFi lending protocol on Voi and Algorand, supporting market discovery, position queries, liquidation scanning, and transaction preparation without signing or broadcasting.
      10
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to read 0G market data — tokens, trades, quotes, creator fees, compute and tasks — and to build unsigned launch and swap transactions for an external wallet to review and sign. It holds no keys, never signs or submits, and reports unreadable figures as unknown rather than zero.
      14
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an agent to quote swaps and get unsigned transaction calldata for trading on Robinhood Chain, with best-price routing checked against a spending policy (caps, allowlists, slippage, price impact, pinned contracts, simulation) before anything is returned. Also provides simulation, hook-pool and hook-risk inspection, token price lookups, verified stock-token listing, and rolling spend status, while never holding keys, signing, or sending.
      MIT