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

@everimbaq/solscan-mcp

v1.0.0

Published

Solscan MCP Server - Model Context Protocol server for Solana blockchain via Solscan API

Readme

Solscan MCP Server

基于 Model Context Protocol 的 Solscan API 服务器,支持在 AI 助手中直接查询 Solana 区块链数据。

功能

Account (账户)

  • get_account_detail - 获取账户详情
  • get_account_transfer - 查询账户代币转账记录
  • get_account_defi_activities - 查询账户DeFi活动
  • get_account_transactions - 查询账户交易历史
  • get_account_portfolio - 获取账户资产组合
  • get_account_token_accounts - 获取账户代币账户列表
  • get_account_stake - 获取账户质押信息

Token (代币)

  • get_token_transfer - 查询代币转账记录
  • get_token_defi_activities - 查询代币DeFi活动
  • get_token_markets - 获取代币交易市场
  • get_token_meta - 获取代币元数据
  • get_token_price - 获取代币价格
  • get_token_holders - 获取代币持有者列表
  • get_token_list - 获取代币列表
  • get_token_top - 获取热门代币
  • get_token_trending - 获取趋势代币
  • get_token_latest - 获取最新上线代币

NFT

  • get_nft_new - 获取新NFT
  • get_nft_activities - 获取NFT活动记录
  • get_nft_collection_lists - 获取NFT集合列表
  • get_nft_collection_items - 获取NFT集合物品

Transaction (交易)

  • get_transaction_last - 获取最新交易
  • get_transaction_detail - 获取交易详情
  • get_transaction_actions - 获取交易解析动作

Block (区块)

  • get_block_last - 获取最新区块
  • get_block_transactions - 获取区块交易
  • get_block_detail - 获取区块详情

Market (市场)

  • get_market_list - 获取交易市场列表
  • get_market_info - 获取市场详情

Chain (链)

  • get_chain_info - 获取Solana链信息

安装

npm install
npm run build

配置

环境变量

| 变量名 | 必需 | 说明 | |--------|------|------| | SOLSCAN_API_KEY | 是 | Solscan Pro API Key |

在项目根目录创建 .env 文件:

SOLSCAN_API_KEY=your-api-key-here

Cursor 配置

~/.cursor/mcp.json 中添加:

{
  "mcpServers": {
    "solscan": {
      "command": "node",
      "args": ["/path/to/solscan-mcp/dist/index.js"],
      "env": {
        "SOLSCAN_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Desktop 配置

claude_desktop_config.json 中添加:

{
  "mcpServers": {
    "solscan": {
      "command": "node",
      "args": ["/path/to/solscan-mcp/dist/index.js"],
      "env": {
        "SOLSCAN_API_KEY": "your-api-key"
      }
    }
  }
}

使用示例

# 查询账户资产组合
get_account_portfolio(address: "账户地址")

# 获取代币价格
get_token_price(address: "代币地址")

# 查询趋势代币
get_token_trending()

# 获取交易详情
get_transaction_detail(tx: "交易签名")

# 获取链信息
get_chain_info()

开发

# 设置环境变量
export SOLSCAN_API_KEY="your-api-key"

# 运行开发模式
npm run dev

# 使用 MCP Inspector 调试
npm run inspect

获取 API Key

访问 Solscan Pro API 获取 API Key。

License

MIT