Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

alchemy-mcp-server

MCP.Pizza Chef: alchemyplatform

Alchemy MCP Server is a Model Context Protocol server that bridges AI agents with Alchemy's blockchain APIs. It enables direct, code-free querying of blockchain data such as token prices, NFT ownership, transaction history, token balances across multiple networks, and asset transfers. This server simplifies blockchain data access for AI-enhanced workflows and applications.

Use This MCP server To

Query token prices and historical price data Retrieve NFT ownership details Access transaction history on multiple blockchains Check token balances across various blockchain networks Fetch asset transfer records Integrate blockchain data into AI-driven applications Enable AI agents to interact with blockchain without coding Automate blockchain data retrieval for analytics or reporting

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
  • Get NFT ownership information
  • View transaction history
  • Check token balances across multiple blockchain networks
  • Retrieve asset transfers
  • 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):

{
  "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.

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
    • Example: "Show me BTC price history from Jan 1 to Feb 1, 2023, with daily intervals"

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. fetchMultichainWalletAddressTransactionHistory

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

    • Gets token transfer data for addresses
    • Example: "Show me all ERC-20 transfers to or from 0xghi...789"

NFT Methods

  1. fetchNftsOwnedByMultichainAddresses

    • Gets all NFTs owned by addresses
    • 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?"

Local Development and Open Source Contributions

Installation

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

Development

pnpm dev

Building for Production

pnpm build
pnpm start

Using the MCP Inspector for Debugging

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

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 from the last week.

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

API Reference

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

alchemy-mcp-server FAQ

How do I set up the Alchemy MCP Server?
Configure your MCP client with the provided JSON snippet including your Alchemy API key to start the server.
What blockchain data can I access through this server?
You can access token prices, NFT ownership, transaction history, token balances, and asset transfers across multiple blockchains.
Do I need to write code to query blockchain data?
No, the server allows AI agents to query blockchain data directly without writing any code.
Can this server work with multiple blockchain networks?
Yes, it supports querying data across various blockchain networks.
Is the Alchemy MCP Server compatible with different LLM providers?
Yes, it works with models like OpenAI, Claude, and Gemini through the MCP protocol.
How secure is the connection to Alchemy's APIs?
The server uses your Alchemy API key for secure authenticated access to blockchain data.
Can I use this server to automate blockchain data retrieval?
Yes, it enables automation of blockchain data queries for analytics, reporting, or AI workflows.
Where can I find the source code for the Alchemy MCP Server?
The source code is available on GitHub under the @alchemy/mcp-server repository.