Skip to main content
Glama

Alchemy MCP Plugin

This MCP plugin provides integration with the Alchemy SDK for blockchain and NFT operations.

Features

  • Get NFTs for a wallet address

  • Get NFT metadata

  • Get latest block number

  • More endpoints can be added as needed

Related MCP server: MCP Site Manager

Setup

Installing via Smithery

To install alchemy-sdk-mcp for Claude Desktop automatically via Smithery:

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

Manual Installation

  1. Install dependencies:

npm install
  1. Build the project:

npm run build
  1. Configure your Alchemy API key:

    • Get an API key from Alchemy

    • Update the ALCHEMY_API_KEY in settings.json

  2. Start the server:

npm start

Available Endpoints

1. Get NFTs for Owner

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

2. Get NFT Metadata

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

3. Get Block Number

POST /getBlockNumber

Error Handling

All endpoints include proper error handling and logging. Errors are returned in the format:

{
    "error": "Error message"
}

Logging

The server implements comprehensive logging using console.error for better debugging:

  • [Setup] logs for initialization

  • [API] logs for API calls

  • [Error] logs for error handling

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