Allow AI agents to interact with Alchemy's blockchain APIs.
Claude Desktop config.json'a ekle
{
"mcpServers": {
"alchemyplatform-alchemy-mcp-server": {
"command": "node",
"args": [
"~/.mcp/alchemy-mcp-server/index.js"
]
}
}
} Kaynak kodu al ve yerel olarak çalıştır
git clone https://github.com/alchemyplatform/alchemy-mcp-server.git ~/.mcp/alchemy-mcp-server
cd ~/.mcp/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.
The fastest way to get started is to connect to the hosted remote server at https://mcp.alchemy.com/mcp. It authenticates via OAuth — just sign in with your Alchemy account when prompted. No API key or local install required.
Full documentation: alchemy.com/docs/alchemy-mcp-server
Note: The hosted server at
mcp.alchemy.comand this open-source repo are maintained separately and may not be in sync.
| Client | Setup |
|---|---|
| Claude Code | claude mcp add alchemy --transport http https://mcp.alchemy.com/mcp |
| Codex | codex mcp add alchemy --url https://mcp.alchemy.com/mcp |
| Cursor | Add to ~/.cursor/mcp.json or .cursor/mcp.json — see JSON config below |
| Windsurf | Add to ~/.codeium/windsurf/mcp_config.json — see JSON config below |
| VS Code Copilot | Add to .vscode/mcp.json — see JSON config below |
| Claude Desktop | Add to claude_desktop_config.json — see JSON config below |
| Cline | Open Cline: MCP Servers from the VS Code command palette — see JSON config below |
{
"mcpServers": {
"alchemy": {
"type": "streamable-http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}
{
"servers": {
"alchemy": {
"type": "http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}
For any other MCP-compatible client, point it at https://mcp.alchemy.com/mcp using Streamable HTTP transport.
This MCP server creates a bridge between AI agents and Alchemy’s blockchain APIs, allowing agents to:
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.
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.
You can prompt your AI agent to use the following methods:
fetchTokenPriceBySymbol
fetchTokenPriceByAddress
fetchTokenPriceHistoryBySymbol
fetchTokenPriceHistoryByTimeFrame
fetchAddressTransactionHistory
fetchTransfers
fetchNftsOwnedByMultichainAddresses
fetchNftContractDataByMultichainAddress
AGENT_WALLET_SERVER environment variableAGENT_WALLET_SERVER environment variablegit clone https://github.com/alchemyplatform/alchemy-mcp.git
cd alchemy-mcp
pnpm install
pnpm watch
pnpm build
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:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
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.
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?
For more information about Alchemy’s APIs, refer to:
Enable AI LLMs to execute trades using MetaTrader 5 platform
LongPort OpenAPI provides real-time stock market data, provides AI access analysis and trading capabilities through MCP.
Comprehensive blockchain services for 30+ EVM networks, supporting native tokens, ERC20, NFTs, smart contracts, transactions, and ENS resolution.
An MCP server for Massive.com Financial Market Data
Base Network integration for onchain tools, allowing interaction with Base Network and Coinbase API for wallet management, fund transfers, smart contracts, and DeFi operations
Yahoo Finance integration to fetch stock market data including options recommendations