Alchemy MCP Plugin

Alchemy MCP Plugin

这个插件可以通过 Alchemy SDK 与区块链数据和 NFT 进行交互,从而实现诸如检索 NFT 元数据、获取钱包地址的 NFT 以及获取最新区块号等操作。

金融
访问服务器

Tools

get_tokens_for_owner

Get tokens owned by an address

get_nfts_for_owner

Get NFTs owned by a specific wallet address

get_nft_metadata

Get metadata for a specific NFT

get_nft_sales

Get NFT sales data for a contract or specific NFT

get_contracts_for_owner

Get NFT contracts owned by an address

get_floor_price

Get floor price for an NFT collection

get_owners_for_nft

Get owners of a specific NFT

get_nfts_for_contract

Get all NFTs for a contract

get_transfers_for_contract

Get transfers for an NFT contract

get_transfers_for_owner

Get NFT transfers for an owner

get_token_balances

Get token balances for a specific address

get_token_metadata

Get metadata for a token contract

get_asset_transfers

Get asset transfers for a specific address or contract

get_transaction_receipts

Get transaction receipts for a block

get_block_number

Get the latest block number

get_block_with_transactions

Get a block with its transactions

get_transaction

Get transaction details by hash

resolve_ens

Resolve an ENS name to an address

lookup_address

Lookup the ENS name for an address

estimate_gas_price

Estimate current gas price

subscribe

Subscribe to blockchain events

unsubscribe

Unsubscribe from blockchain events

README

Alchemy MCP 插件

smithery badge

此 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": "钱包地址"
}

2. 获取 NFT 元数据

POST /getNftMetadata
{
    "contractAddress": "合约地址",
    "tokenId": "token_id"
}

3. 获取区块号

POST /getBlockNumber

错误处理

所有端点都包含适当的错误处理和日志记录。 错误以以下格式返回:

{
    "error": "错误消息"
}

日志记录

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

  • [Setup] 初始化日志
  • [API] API 调用日志
  • [Error] 错误处理日志
$env:ALCHEMY_API_KEY="KRdhdsBezoTMVajIknIxlXgBHc1Pprpw"; node dist/index.js

推荐服务器

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。

精选
TypeScript
chromia-mcp

chromia-mcp

使人工智能能够与 Chromia 钱包交互,以发送 $CHR 交易。

官方
本地
TypeScript
TripleWhale MCP Server

TripleWhale MCP Server

一个模型上下文协议 (MCP) 的实现,允许用户通过 Claude Desktop 使用自然语言查询与 TripleWhale 的电子商务分析平台进行交互。

官方
本地
TypeScript
Adamik MCP Server

Adamik MCP Server

通过 Claude Desktop 实现与 60 多个区块链网络的读写交互,为交易管理、账户洞察、质押和代币交互提供标准化的多链 API。

官方
本地
TypeScript
Open-Ledger-MCP-Server

Open-Ledger-MCP-Server

一个用于 OpenLedger API 的模型上下文协议 (MCP) 服务器实现。该服务器根据 MCP 规范为 AI 模型提供结构化的上下文。

官方
TypeScript
ntropy-mcp MCP Server

ntropy-mcp MCP Server

启用使用 Ntropy API 丰富银行数据的功能,并提供高效创建账户持有人和丰富交易信息的工具。

官方
Python
Iaptic MCP Server

Iaptic MCP Server

一个用于与 Iaptic API 交互的服务器,允许像 Claude 这样的人工智能模型查询客户、购买和交易数据,并检索统计见解。

官方
TypeScript
Bitrefill Search and Shop

Bitrefill Search and Shop

这个 MCP 封装了 Bitrefill 的公共 API,允许代理使用比特币、以太坊、Solana 等加密货币搜索产品和购物。

官方
TypeScript
MCP EVM Signer

MCP EVM Signer

一个服务器,可以在本地安全地管理以太坊私钥,并使 Claude for Desktop 能够通过 Infura 与 EVM 兼容的区块链进行交互。

本地
TypeScript
Cryptocurrency Daemon MCP Server

Cryptocurrency Daemon MCP Server

通过人工智能助手实现与加密货币守护进程RPC接口的安全交互,支持基于比特币的加密货币的交易管理、钱包操作和守护进程监控。

本地
TypeScript