Alchemy MCP Server

Alchemy MCP Server

A Model Context Protocol server for structured AI access to blockchain data and actions via Alchemy.

68
Stars
26
Forks
68
Watchers
6
Issues
Alchemy MCP Server enables AI agents to interact with Alchemy’s blockchain APIs using the Model Context Protocol. It provides structured endpoints for querying token prices, NFT data, transaction history, asset transfers, and executing blockchain transactions. The server streamlines blockchain data retrieval while supporting multi-network operations and advanced actions like swaps and contract transactions when paired with wallet agents. It is designed for quick setup and seamless integration with AI tools.

Key Features

Structured blockchain data queries
Real-time and historical token price retrieval
NFT ownership and contract data access
Multichain token and NFT support
Transaction history and asset transfer tracking
Send transactions via Smart Contract Accounts
Token swap execution via DEX protocols
Integration with Alchemy API
Configuration with external wallet agent servers
Environment variable and quick setup support

Use Cases

Fetching real-time and historical token prices
Retrieving NFT ownership information across multiple chains
Accessing transaction histories for blockchain addresses
Aggregating token balances across networks
Automating asset transfers for AI-driven agents
Initiating blockchain transactions via smart contract accounts
Performing token swaps through decentralized exchanges
Building AI assistants for blockchain data analysis
Monitoring asset transfers for compliance or analytics
Integrating blockchain insights into AI chat agents or assistants

README

Alchemy MCP Server

A Model Context Protocol (MCP) server that enables AI agents to interact with Alchemy's blockchain APIs in a structured way. This allows agents to query blockchain data directly without writing any code.

General Usage

This MCP server creates a bridge between AI agents and Alchemy's blockchain APIs, allowing agents to:

  • Query token prices and price history (including flexible time frame queries)
  • Get NFT ownership information and contract data
  • View transaction history across multiple networks
  • Check token balances across multiple blockchain networks
  • Retrieve detailed asset transfers with filtering
  • Send transactions via Smart Contract Accounts (requires configured wallet agent server)
  • Execute token swaps via DEX protocols (requires configured wallet agent server)
  • And more!

Quick Setup

To quickly set up the MCP server, use the following configuration in your MCP config file (typically in Claude Desktop or Cursor settings):

json
{
  "mcpServers": {
    "alchemy": {
      "command": "npx",
      "args": [
        "-y",
        "@alchemy/mcp-server"
      ],
      "env": {
        "ALCHEMY_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

This configuration allows you to use the server without manually cloning the repository.

Environment Variables

The MCP server requires the following environment variable:

  • ALCHEMY_API_KEY - Your Alchemy API key (required for all blockchain data queries)

For transaction and swap functionality, you must also configure:

  • AGENT_WALLET_SERVER - URL of a configured wallet agent server that handles Smart Contract Account operations

⚠️ Important: The sendTransaction and swap methods will not function without a properly configured wallet agent server. These methods require external wallet infrastructure to handle signing and broadcasting transactions.

Available Methods

You can prompt your AI agent to use the following methods:

Token Price Methods

  1. fetchTokenPriceBySymbol

    • Gets current price data for tokens by symbol
    • Example: "What's the current price of ETH and BTC?"
  2. fetchTokenPriceByAddress

    • Gets current price data for tokens by contract address
    • Example: "What's the price of the token at address 0x1234...5678 on Ethereum mainnet?"
  3. fetchTokenPriceHistoryBySymbol

    • Gets historical price data for tokens with specific date ranges
    • Example: "Show me BTC price history from Jan 1 to Feb 1, 2023, with daily intervals"
  4. fetchTokenPriceHistoryByTimeFrame

    • Gets historical price data using flexible time frames or natural language
    • Example: "Show me ETH price for the last week" or "Get BTC price for the past 30 days"

Multichain Token Methods

  1. fetchTokensOwnedByMultichainAddresses
    • Gets token balances for addresses across multiple networks
    • Example: "What tokens does 0xabc...123 hold on Ethereum and Base?"

Transaction History Methods

  1. fetchAddressTransactionHistory

    • Gets transaction history for addresses across multiple networks
    • Example: "Show recent transactions for wallet 0xdef...456 on Ethereum"
  2. fetchTransfers

    • Gets detailed asset transfer data with advanced filtering options
    • Example: "Show me all ERC-20 transfers to or from 0xghi...789"

NFT Methods

  1. fetchNftsOwnedByMultichainAddresses

    • Gets all NFTs owned by addresses with spam filtering
    • Example: "What NFTs does 0xjkl...012 own?"
  2. fetchNftContractDataByMultichainAddress

    • Gets NFT contract data for addresses
    • Example: "What NFT collections does 0xmno...345 have tokens from?"

Transaction Methods

  1. sendTransaction
    • Sends transactions via Smart Contract Accounts
    • ⚠️ Important: Requires a configured wallet agent server with AGENT_WALLET_SERVER environment variable
    • Example: "Send 0.1 ETH to 0xpqr...678"

Swap Methods

  1. swap
    • Executes token swaps via DEX protocols (Uniswap)
    • ⚠️ Important: Requires a configured wallet agent server with AGENT_WALLET_SERVER environment variable
    • Example: "Swap 100 USDC for ETH"

Local Development and Open Source Contributions

Installation

  1. Clone the repository
bash
git clone https://github.com/alchemyplatform/alchemy-mcp.git
cd alchemy-mcp
  1. Install dependencies
bash
pnpm install

Development

bash
pnpm watch

Building for Production

bash
pnpm build

Using the MCP Inspector for Debugging

The MCP Inspector helps you debug your MCP server by providing a visual interface to test your methods:

bash
pnpm inspector

This will start the MCP Inspector which you can access in your browser. It allows you to:

  • See all available methods
  • Test methods with different parameters
  • View the response data
  • Debug issues with your MCP server

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.

Example Prompts

Here are some example prompts you can use with your AI agent:

What's the current price of Bitcoin and Ethereum?

Show me the NFTs owned by the wallet 0x1234...5678 on Ethereum.

What tokens does wallet 0xabcd...6789 hold across Ethereum and Base?

Get me the transaction history for 0x9876...5432.

Show me the price history of Ethereum from January 1st to today with daily intervals.

Get me Bitcoin price data for the last week with hourly intervals.

Show me ETH price performance for the past month.

What ERC-20 transfers happened to address 0x1234...5678 in the last 100 blocks?

API Reference

For more information about Alchemy's APIs, refer to:

Star History

Star History Chart

Repository Owner

alchemyplatform
alchemyplatform

Organization

Repository Details

Language TypeScript
Default Branch main
Size 391 KB
Contributors 4
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
52.32%
JavaScript
47.68%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Blockchain MCP powered by Tatum

    Blockchain MCP powered by Tatum

    MCP server for universal blockchain data access across 130+ networks.

    Blockchain MCP powered by Tatum is a Model Context Protocol (MCP) server that enables large language models (LLMs) to read and write blockchain data across more than 130 networks. It provides unified access to both the Tatum Blockchain Data API and direct RPC gateways, supporting tools for retrieving balances, portfolios, transactions, and more. The platform is designed for seamless integration via API key and configurable MCP client setups, making it easier to build blockchain-aware AI solutions. Comprehensive documentation and extensive network compatibility facilitate robust development and scalability.

    • 12
    • MCP
    • tatumio/blockchain-mcp
  • Web3 MCP

    Web3 MCP

    A Model Context Protocol server for unified blockchain data access.

    Web3 MCP is a Model Context Protocol server that provides access to blockchain data through Ankr's Advanced API. It allows large language models to interact seamlessly with multiple blockchain networks such as Ethereum, BSC, Polygon, and Avalanche. With support for NFT, token, and blockchain query APIs, it enables users and AI agents to retrieve on-chain data, statistics, and analytics efficiently within an MCP context.

    • 3
    • MCP
    • tumf/web3-mcp
  • EVM MCP Server

    EVM MCP Server

    Unified Model Context Protocol server for multi-chain EVM blockchain access

    EVM MCP Server provides a comprehensive Model Context Protocol-compliant interface for blockchain services across 30+ EVM-compatible networks. It enables AI agents and other clients to interact programmatically with Ethereum, Optimism, Arbitrum, Base, Polygon, and more via standardized tools and resources. Features include blockchain data access, smart contract interactions, token transfers (including NFTs), ENS name resolution, and multi-network support. The server ensures a consistent and context-aware interface for AI and software agents to discover and leverage on-chain functionality.

    • 340
    • MCP
    • mcpdotdirect/evm-mcp-server
  • Base MCP Server

    Base MCP Server

    An extensible onchain Model Context Protocol (MCP) server for AI application integrations on Base and Coinbase.

    Base MCP Server is an implementation of the Model Context Protocol (MCP) that equips AI applications with onchain tools for interacting with the Base Network and Coinbase API. It offers capabilities such as wallet management, onchain transfers, smart contract interactions, ERC20 and NFT handling, and integration with external services like OpenRouter and Morpho. Its architecture is designed for easy extension, enabling the addition of third-party protocols, tools, and data sources via a modular plugin system.

    • 317
    • MCP
    • base/base-mcp
  • Alpha Vantage MCP Server

    Alpha Vantage MCP Server

    Real-time financial data access for models via standardized protocol.

    Alpha Vantage MCP Server implements the Model Context Protocol (MCP) to provide real-time and historical financial market data, including stock quotes, company profiles, cryptocurrency exchange rates, ETF information, and options chain analytics. It delivers a standardized API interface, enabling seamless integration with AI clients such as Claude Desktop. The server manages API keys, error handling, and rate limits for reliable data delivery.

    • 81
    • MCP
    • berlinbra/alpha-vantage-mcp
  • Token Minter MCP

    Token Minter MCP

    MCP server enabling AI agents to mint and manage ERC-20 tokens on 21 blockchains.

    Token Minter MCP is an MCP server that empowers AI agents to deploy and manage ERC-20 tokens across 21 blockchains. It provides tools to create tokens, query metadata, initiate token transfers, and retrieve transaction details. The server also offers interactive prompts to guide token deployment and exposes token metadata via standardized URIs. Built on Node.js, it integrates with EVM networks using Infura and private keys for transaction signing.

    • 17
    • MCP
    • kukapay/token-minter-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results