Skip to main content
Glama

Complemento MCP de Alchemy

insignia de herrería

Este complemento MCP proporciona integración con el SDK de Alchemy para operaciones de blockchain y NFT.

Características

  • Obtenga NFT para una dirección de billetera

  • Obtener metadatos de NFT

  • Obtener el último número de bloque

  • Se pueden agregar más puntos finales según sea necesario

Related MCP server: MCP Site Manager

Configuración

Instalación mediante herrería

Para instalar alchemy-sdk-mcp para Claude Desktop automáticamente a través de Smithery :

npx -y @smithery/cli install @itsanishjain/alchemy-sdk-mcp --client claude

Instalación manual

  1. Instalar dependencias:

npm install
  1. Construir el proyecto:

npm run build
  1. Configura tu clave API de Alchemy:

    • Obtenga una clave API de Alchemy

    • Actualice ALCHEMY_API_KEY en settings.json

  2. Iniciar el servidor:

npm start

Puntos finales disponibles

1. Consigue NFT para el propietario

POST /getNftsForOwner
{
    "owner": "wallet_address"
}

2. Obtener metadatos NFT

POST /getNftMetadata
{
    "contractAddress": "contract_address",
    "tokenId": "token_id"
}

3. Obtener el número de bloque

POST /getBlockNumber

Manejo de errores

Todos los puntos finales incluyen la gestión y el registro de errores adecuados. Los errores se devuelven en el formato:

{
    "error": "Error message"
}

Explotación florestal

El servidor implementa un registro completo utilizando console.error para una mejor depuración:

  • [Configuración] registros para la inicialización

  • [API] registros de llamadas API

  • [Error] Registros para el manejo de errores

$env:ALCHEMY_API_KEY="KRdhdsBezoTMVajIknIxlXgBHc1Pprpw"; nodo 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