npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iqai/mcp-odos

v0.1.2

Published

Mcp server for Odos access

Readme

🔄 Odos MCP Server

npm version License: ISC

📖 Overview

The Odos MCP Server enables AI agents to interact with Odos, a leading DEX aggregator that finds optimal swap routes across multiple decentralized exchanges. This server provides comprehensive access to quote retrieval and swap execution functionality.

By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to fetch swap quotes, compare prices, and execute token swaps directly through their context window, bridging the gap between AI and decentralized finance.

✨ Features

  • Quote Retrieval: Get optimal swap quotes with best routes across multiple DEXs.
  • Multi-Chain Support: Execute swaps on various blockchain networks including Fraxtal, Ethereum, and more.
  • Swap Execution: Execute token swaps with automatic allowance handling.
  • Chain ID Lookup: Retrieve chain IDs for supported blockchain networks.

📦 Installation

🚀 Using npx (Recommended)

To use this server without installing it globally:

npx @iqai/mcp-odos

🔧 Build from Source

git clone https://github.com/IQAIcom/mcp-odos.git
cd mcp-odos
pnpm install
pnpm run build

⚡ Running with an MCP Client

Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json).

📋 Minimal Configuration

{
  "mcpServers": {
    "odos": {
      "command": "npx",
      "args": ["-y", "@iqai/mcp-odos"],
      "env": {
        "WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
      }
    }
  }
}

⚙️ Advanced Configuration (Local Build)

{
  "mcpServers": {
    "odos": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-odos/dist/index.js"],
      "env": {
        "WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
      }
    }
  }
}

🔐 Configuration (Environment Variables)

| Variable | Required | Description | Default | | :--- | :--- | :--- | :--- | | WALLET_PRIVATE_KEY | Yes | Your wallet private key for executing swaps | - |

💡 Usage Examples

🔍 Getting Quotes

  • "Get a quote to swap 1000 USDC for FRAX on Fraxtal."
  • "What's the best rate to swap ETH for USDC?"
  • "How much FRAX will I get for 100 USDC on Fraxtal?"

💱 Executing Swaps

  • "Swap 100 USDC for FRAX on Fraxtal."
  • "Execute a trade: sell 1000 USDC for ETH."
  • "Trade my USDC for the maximum amount of FRAX."

🔗 Chain Information

  • "What is the chain ID for Fraxtal?"
  • "Get the chain ID for Ethereum mainnet."

🛠️ MCP Tools

ODOS_GET_CHAIN_ID

Get the chain ID for a given chain name

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | chain | string | ✅ | The chain name to get the ID for |

ODOS_GET_QUOTE

Get a quote for a swap or exchange operation

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | chain | string | | "fraxtal" | The blockchain network to execute the transaction on. uses fraxtal as default | | fromToken | string | ✅ | | The token to swap from (address). | | toToken | string | ✅ | | The token to swap to (address). | | amount | string | ✅ | | The amount of tokens to swap, in wei. | | prettyFormat | boolean | | true | Whether to pretty format the quote. |

ODOS_SWAP

Execute a swap transaction

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | chain | string | | "fraxtal" | The blockchain network to execute the transaction on. uses fraxtal as default | | fromToken | string | ✅ | | The token to swap from (address). | | toToken | string | ✅ | | The token to swap to (address). | | amount | string | ✅ | | The amount of tokens to swap, in wei. | | prettyFormat | boolean | | true | Whether to pretty format the quote. |

👨‍💻 Development

🏗️ Build Project

pnpm run build

👁️ Development Mode (Watch)

pnpm run watch

✅ Linting & Formatting

pnpm run lint
pnpm run format

📁 Project Structure

  • src/tools/: Individual tool definitions
  • src/services/: API client and business logic
  • src/utils/: Shared utilities
  • src/index.ts: Server entry point

📚 Resources

⚠️ Disclaimer

This project is an unofficial tool and is not directly affiliated with Odos. It interacts with financial data and decentralized exchanges. Users should exercise caution and verify all data independently. Trading on decentralized exchanges involves risk.

📄 License

ISC