Skip to main content
Glama

Alchemy MCP 插件

铁匠徽章

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

特征

  • 获取钱包地址的 NFT

  • 获取 NFT 元数据

  • 获取最新区块号

  • 可以根据需要添加更多端点

Related MCP server: MCP Etherscan Server

设置

通过 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

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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