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

@phantom/mcp-server

v1.2.7

Published

MCP Server for Phantom Wallet

Downloads

32,377

Readme

@phantom/mcp-server

Phantom MCP server — exposes the Phantom CLI as an MCP server over stdio. Sign transactions, transfer tokens, and swap on Solana and Ethereum. Powered by Phantom.

Installation

npm install -g @phantom/mcp-server

This installs the phantom-mcp binary.

Usage

Register with your MCP-compatible agent:

phantom-mcp mcp add

Or start the server directly:

phantom-mcp

This is equivalent to running phantom --mcp.

Tools

The server exposes the following MCP tools:

Authentication

| Tool | Description | | ---------------- | ----------------------------------------------------------------------------------------------------------------- | | phantom_login | Authenticate with Phantom. Use this to log in for the first time, switch accounts, or refresh an expired session. | | phantom_logout | Clear the stored session and credentials from disk. The next tool call will require re-authentication. |

Wallet

| Tool | Description | | ------------------ | -------------------------------------------------------------------------------- | | wallet_status | Returns the current Phantom wallet connection status (lightweight, no API call). | | wallet_addresses | Returns all wallet addresses for the authenticated Phantom account. | | wallet_balances | Returns token balances for the connected wallet. | | wallet_rebalance | Rebalance the wallet portfolio to a target allocation. |

Solana

| Tool | Description | | ------------- | ------------------------------------------------ | | solana_send | Send a signed Solana transaction. | | solana_sign | Sign a Solana message with the connected wallet. |

EVM

| Tool | Description | | ---------------- | --------------------------------------------- | | evm_send | Send a signed EVM transaction. | | evm_sign | Sign an EVM personal message. | | evm_sign-typed | Sign EVM typed data (EIP-712). | | evm_allowance | Get the ERC-20 token allowance for a spender. |

Tokens & Swaps

| Tool | Description | | ----------------- | ------------------------------------------------------------ | | transfer | Transfer tokens between wallets on Solana or EVM chains. | | buy | Buy a token with another token (swap). | | simulate | Simulate a transaction before executing it. | | pay | Pay for API access using tokens. | | get_token_price | Fetch the current price of a token by its address and chain. |

Perpetuals (Hyperliquid)

See PERPS.md for full perpetuals documentation.

| Tool | Description | | -------------------------------- | ---------------------------------------------------------------------------- | | perps_markets | List available perpetual markets with prices and funding rates. | | perps_account | Get your Hyperliquid perps account summary. | | perps_positions | Get open perpetual positions. | | perps_orders | Get open perpetual orders. | | perps_history | Get perpetual trade history. | | perps_open | Open a perpetual position. | | perps_close | Close a perpetual position. | | perps_cancel | Cancel a perpetual order. | | perps_leverage | Update leverage for a market. | | perps_transfer | Transfer funds between spot and perps accounts. | | perps_deposit | Bridge tokens into your Hyperliquid perps account. | | perps_withdraw | Bridge USDC from perps directly to an external chain. | | withdraw_from_hyperliquid_spot | Bridge USDC from Hyperliquid spot to an external chain via the Relay bridge. |

Configuration

The server reads environment variables for configuration:

| Variable | Description | | ---------------------- | ---------------------------------------------------------------------- | | PHANTOM_API_BASE_URL | Override the Phantom API base URL (default: https://api.phantom.app) |

Authentication

On first use, the server will prompt you to authenticate with your Phantom wallet via browser. Sessions are persisted locally and refreshed automatically.

Requirements

  • Node.js 18+
  • A Phantom wallet account