Skip to main content
Glama

Alchemy MCP プラグイン

鍛冶屋のバッジ

この MCP プラグインは、ブロックチェーンおよび NFT 操作用の Alchemy SDK との統合を提供します。

特徴

  • ウォレットアドレスでNFTを取得する

  • NFTメタデータを取得する

  • 最新のブロック番号を取得する

  • 必要に応じてエンドポイントを追加できます

Related MCP server: MCP Site Manager

設定

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 を使用して包括的なログ記録を実装します。

  • [セットアップ] 初期化のログ

  • [API] API呼び出しのログ

  • [エラー] エラー処理のログ

$env:ALCHEMY_API_KEY="KRdhdsBezoTMVajIknIxlXgBHc1Pprpw"; ノード dist/index.js

Available Tools

22 tools
estimate_gas_priceC

Estimate current gas price

Inputs: maxFeePerGas.

get_asset_transfersC

Get asset transfers for a specific address or contract

Inputs: fromBlock, toBlock, fromAddress, toAddress, +6 more.

get_block_numberB

Get the latest block number

Inputs: no named parameters.

get_block_with_transactionsC

Get a block with its transactions

Inputs: blockNumber, blockHash.

get_contracts_for_ownerC

Get NFT contracts owned by an address

Inputs: owner (required), pageKey, pageSize, includeFilters, +1 more.

get_floor_priceC

Get floor price for an NFT collection

Inputs: contractAddress (required).

get_nft_metadataC

Get metadata for a specific NFT

Inputs: contractAddress (required), tokenId (required), tokenType, refreshCache.

get_nft_salesC

Get NFT sales data for a contract or specific NFT

Inputs: contractAddress, tokenId, fromBlock, toBlock, +4 more.

get_nfts_for_contractC

Get all NFTs for a contract

Inputs: contractAddress (required), pageKey, pageSize, tokenUriTimeoutInMs, +1 more.

get_nfts_for_ownerC

Get NFTs owned by a specific wallet address

Inputs: owner (required), pageKey, pageSize, contractAddresses, +1 more.

get_owners_for_nftC

Get owners of a specific NFT

Inputs: contractAddress (required), tokenId (required), pageKey, pageSize.

get_token_balancesC

Get token balances for a specific address

Inputs: address (required), tokenAddresses.

get_token_metadataC

Get metadata for a token contract

Inputs: contractAddress (required).

get_tokens_for_ownerC

Get tokens owned by an address

Inputs: owner (required), pageKey, pageSize, contractAddresses.

get_transactionC

Get transaction details by hash

Inputs: hash (required).

get_transaction_receiptsC

Get transaction receipts for a block

Inputs: blockHash, blockNumber.

get_transfers_for_contractC

Get transfers for an NFT contract

Inputs: contractAddress (required), pageKey, fromBlock, toBlock, +2 more.

get_transfers_for_ownerC

Get NFT transfers for an owner

Inputs: owner (required), pageKey, fromBlock, toBlock, +3 more.

lookup_addressB

Lookup the ENS name for an address

Inputs: address (required).

resolve_ensB

Resolve an ENS name to an address

Inputs: name (required), blockTag.

subscribeC

Subscribe to blockchain events

Inputs: type (required), address, topics.

unsubscribeC

Unsubscribe from blockchain events

Inputs: subscriptionId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between get_nfts_for_owner and get_contracts_for_owner, as well as between get_asset_transfers, get_transfers_for_contract, and get_transfers_for_owner, which could cause minor confusion. However, descriptions help clarify the specific focus of each tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores, such as get_block_number, estimate_gas_price, and lookup_address. There are no deviations in naming conventions, making the set highly predictable and readable.

    Tool Count3/5

    With 22 tools, the count is on the higher side for a blockchain-focused server, bordering on heavy but still manageable. It covers multiple aspects like NFTs, tokens, transactions, and events, but may feel slightly bloated compared to more streamlined sets.

    Completeness5/5

    The tool set provides comprehensive coverage for blockchain interactions, including data retrieval (blocks, transactions, NFTs, tokens), metadata access, transfers, ownership queries, and event subscriptions. There are no obvious gaps, and it supports full lifecycle operations for the domain.

    Related MCP Connectors

    Related MCP Servers