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

megaswap-mcp

v1.0.1

Published

MCP server for MegaSwap — AI-native DEX on MegaETH. Swap tokens, manage liquidity, and query prices via AI agents.

Readme

MegaSwap MCP Server

AI-native DEX interface for MegaSwap on MegaETH. Enables AI agents to swap tokens, query prices, and manage liquidity via the Model Context Protocol (MCP).

Quick Start

npx megaswap-mcp

Tools

| Tool | Description | Requires Key? | |------|-------------|---------------| | megaswap_get_quote | Get swap price quote | No | | megaswap_swap | Execute token swap | Yes | | megaswap_get_pair | Get pair reserves & price | No | | megaswap_list_pairs | List all trading pairs | No | | megaswap_get_balance | Check token/ETH balance | No | | megaswap_add_liquidity | Add liquidity to pool | Yes | | megaswap_remove_liquidity | Remove liquidity | Yes | | megaswap_list_tokens | List known tokens | No | | megaswap_get_token_info | Get token details | No |

Configuration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | MEGASWAP_PRIVATE_KEY | For swaps/liquidity | Wallet private key for signing transactions | | MEGASWAP_RPC_URL | No | Custom RPC endpoint (default: https://mainnet.megaeth.com/rpc) |

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "megaswap": {
      "command": "npx",
      "args": ["-y", "megaswap-mcp"],
      "env": {
        "MEGASWAP_PRIVATE_KEY": "your-private-key-here"
      }
    }
  }
}

Cursor / Windsurf

Add to MCP settings:

{
  "megaswap": {
    "command": "npx",
    "args": ["-y", "megaswap-mcp"],
    "env": {
      "MEGASWAP_PRIVATE_KEY": "your-private-key-here"
    }
  }
}

Supported Tokens

Built-in symbols: ETH, WETH, MEGAS, USDM, USDT0

Any ERC-20 token on MegaETH can be used by passing its contract address.

Examples

Get a swap quote:

"How much MEGAS can I get for 1 ETH on MegaSwap?"

Execute a swap:

"Swap 0.5 ETH for MEGAS on MegaSwap with 2% slippage"

Check liquidity:

"Show me the ETH/MEGAS pair info on MegaSwap"

Add liquidity:

"Add 1 ETH and 1000 MEGAS as liquidity on MegaSwap"

Network

  • Chain: MegaETH (chainId: 4326)
  • DEX: MegaSwap (Uniswap V2 fork)
  • Explorer: https://megaeth.blockscout.com

License

MIT