Alchemy MCP Plugin
by itsanishjain
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手动安装
安装依赖项:
npm install构建项目:
npm run build配置您的 Alchemy API 密钥:
从Alchemy获取 API 密钥
更新
settings.json中的ALCHEMY_API_KEY
启动服务器:
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure 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