Skip to main content
Glama

Alchemy MCP Plugin

by itsanishjain

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

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

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.

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

  1. 特征
    1. 设置
      1. 通过 Smithery 安装
      2. 手动安装
    2. 可用端点
      1. 1. 为所有者获取 NFT
      2. 2. 获取 NFT 元数据
      3. 3. 获取区块号
    3. 错误处理
      1. 日志记录

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.
          Last updated -
          6
          15
          22
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          Provides Ethereum blockchain data tools via Etherscan's API, enabling users to check ETH balances, view transactions, track token transfers, fetch contract ABIs, monitor gas prices, and resolve ENS names.
          Last updated -
          6
          15
          1
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          Provides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.
          Last updated -
          6
          8
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          Provides access to NFTGo's Developer API for retrieving NFT collection details, asset information, market data, wallet information, and search capabilities on the Ethereum blockchain.
          Last updated -
          12
          4
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsanishjain/alchemy-sdk-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server