Alchemy MCP Plugin

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides access to Alchemy's blockchain and NFT APIs, allowing querying of NFT ownership, metadata, sales data, floor prices, token balances, and various blockchain operations including ENS resolution, block information, and transaction details.

Alchemy MCP 插件

此 MCP 插件提供与 Alchemy SDK 的集成,用于区块链和 NFT 操作。

特征

  • 获取钱包地址的 NFT
  • 获取 NFT 元数据
  • 获取最新区块号
  • 可以根据需要添加更多端点

设置

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 alchemy-sdk-mcp:

npx -y @smithery/cli install @itsanishjain/alchemy-sdk-mcp --client claude

手动安装

  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build
  1. 配置您的 Alchemy API 密钥:
    • Alchemy获取 API 密钥
    • 更新settings.json中的ALCHEMY_API_KEY
  2. 启动服务器:
npm start

可用端点

1. 为所有者获取 NFT

POST /getNftsForOwner { "owner": "wallet_address" }

2. 获取 NFT 元数据

POST /getNftMetadata { "contractAddress": "contract_address", "tokenId": "token_id" }

3. 获取区块号

POST /getBlockNumber

错误处理

所有端点均包含正确的错误处理和日志记录。错误返回格式如下:

{ "error": "Error message" }

日志记录

服务器使用 console.error 实现全面的日志记录,以便更好地进行调试:

  • [Setup] 初始化日志
  • [API] API 调用日志
  • [Error] 错误处理日志

$env:ALCHEMY_API_KEY =“KRdhdsBezoTMVajIknIxlXgBHc1Pprpw”; 节点 dist/index.js

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

该插件可以通过 Alchemy SDK 与区块链数据和 NFT 进行交互,允许检索 NFT 元数据、获取钱包地址的 NFT 以及获取最新的区块号等操作。

  1. Features
    1. Setup
      1. Installing via Smithery
      2. Manual Installation
    2. Available Endpoints
      1. 1. Get NFTs for Owner
      2. 2. Get NFT Metadata
      3. 3. Get Block Number
    3. Error Handling
      1. Logging
        ID: p99w73336q