Cover image
Try Now
2025-04-14

炼金术的官方MCP服务器

3 years

Works with Finder

2

Github Watches

0

Github Forks

2

Github Stars

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:

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

  • evilsocket
  • 简单的代理开发套件。

    Reviews

    3.2 (6)
    Avatar
    user_XLO8jp7J
    2025-04-25

    I have been using alchemy-mcp-server for several months, and it has significantly streamlined my tasks. Alchemyplatform's attention to detail and the server's robust performance are commendable. Highly recommend for anyone in need of reliable server management with excellent support.

    Avatar
    user_zbrbihdd
    2025-04-25

    I've been using the alchemy-mcp-server from alchemyplatform for a while now, and I must say it has exceeded my expectations. The server's performance is outstanding, providing a reliable and scalable solution for my needs. The user interface is intuitive, making it easy to manage and navigate. I highly recommend this product to anyone in need of a robust server solution.

    Avatar
    user_vApJlr5o
    2025-04-25

    As a dedicated user of the alchemy-mcp-server, I am truly impressed by its flawless performance and seamless integration capabilities. Created by alchemyplatform, this product offers exceptional server management solutions. Its intuitive interface and robust features streamline complex processes, making it a reliable choice for developers. The starting URL and welcoming information further enhance the user experience, ensuring smooth onboarding. Highly recommend for anyone in need of a scalable and efficient server platform.

    Avatar
    user_jbIgyY6W
    2025-04-25

    The alchemy-mcp-server developed by alchemyplatform is a reliable and efficient solution for managing MCP applications. Its seamless integration and user-friendly interface have significantly enhanced my productivity and workflow. I highly recommend this server for anyone looking to optimize their MCP experience.

    Avatar
    user_t4qyp5MP
    2025-04-25

    The alchemy-mcp-server by alchemyplatform is an outstanding solution for managing MCP applications. Its seamless integration and user-friendly interface make it a top choice for both beginners and experts in the field. The server's reliability and performance are commendable, ensuring smooth and efficient workflows. Highly recommended for anyone looking to enhance their MCP experience.

    Avatar
    user_XwJ3Xbu7
    2025-04-25

    Alchemy-MCP-Server is an exceptional product by Alchemyplatform. Its seamless integration and robust performance have significantly improved our workflow efficiency. The user interface is intuitive, and the setup was straightforward. It's clear that a lot of thought went into developing this tool. Highly recommended for anyone in need of a reliable MCP server.