alchemy-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAlchemy MCP
Alchemy MCP
Use the hosted Alchemy MCP server for live blockchain data, transaction simulation, tracing, NFT/portfolio queries, and Alchemy app administration from inside your AI client.
使用托管的Alchemy MCP服务器,在AI客户端内获取实时区块链数据、进行交易模拟、追踪、NFT/投资组合查询以及Alchemy应用管理。
When to use this skill
何时使用此技能
Use when all of the following are true:
alchemy-mcp- The user wants live agent work — live querying, analysis, admin work, or on-machine automation that the agent runs now in this session
- An MCP-compatible client (Claude Code, Codex, Cursor, Claude Desktop, VS Code Copilot, etc.) is already wired against , OR the user is willing to add it
https://mcp.alchemy.com/mcp - The Alchemy CLI () is not installed locally
@alchemy/cli
If the CLI is installed locally — or if both CLI and MCP are available — prefer the skill instead. The CLI is the preferred local fallback runtime path.
alchemy-cli当所有以下条件都满足时,使用:
alchemy-mcp- 用户需要实时代理任务——包括实时查询、分析、管理操作,或者代理在本次会话中立即执行的本地自动化任务
- 已将兼容MCP的客户端(Claude Code、Codex、Cursor、Claude Desktop、VS Code Copilot等)对接至,或者用户愿意进行对接
https://mcp.alchemy.com/mcp - 本地未安装Alchemy CLI()
@alchemy/cli
如果本地已安装CLI——或者同时可用CLI和MCP——则优先使用技能。CLI是首选的本地备用运行时方案。
alchemy-cliWhen to use a different skill
何时使用其他技能
| Situation | Use this skill instead |
|---|---|
| |
| Neither CLI nor MCP is available | install |
| Building application code that runs outside this agent session, with an Alchemy API key | |
| Building application code without an API key, or as an autonomous agent that needs to pay for itself, or you explicitly want x402/MPP | |
Do not use this skill to write production application code — MCP tools are for live agent work, not for embedding into shipped software.
| 场景 | 替代技能 |
|---|---|
本地已安装 | |
| CLI和MCP均不可用 | 安装 |
| 编写在代理会话外运行的应用代码,且拥有Alchemy API密钥 | |
| 编写无需API密钥的应用代码,或构建能够自行支付费用的自治代理,或明确需要x402/MPP | |
不要使用此技能编写生产应用代码——MCP工具仅用于实时代理任务,不可嵌入到交付的软件中。
Connect your client
连接您的客户端
The server runs at and authenticates via OAuth — your client opens a browser to sign in with your Alchemy account on first use. No API key or local install required.
https://mcp.alchemy.com/mcp服务器运行地址为,通过OAuth进行身份验证——首次使用时,您的客户端会打开浏览器,让您使用Alchemy账户登录。无需API密钥或本地安装。
https://mcp.alchemy.com/mcpClaude Code
Claude Code
bash
claude mcp add alchemy --transport http https://mcp.alchemy.com/mcpRestart Claude Code, then run and select to authenticate.
/mcpalchemybash
claude mcp add alchemy --transport http https://mcp.alchemy.com/mcp重启Claude Code,然后运行并选择进行身份验证。
/mcpalchemyCodex
Codex
bash
codex mcp add alchemy --url https://mcp.alchemy.com/mcpVerify with .
codex mcp listbash
codex mcp add alchemy --url https://mcp.alchemy.com/mcp使用验证。
codex mcp listCursor
Cursor
Add to (global) or (project):
~/.cursor/mcp.json.cursor/mcp.jsonjson
{
"mcpServers": {
"alchemy": {
"type": "streamable-http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}Restart Cursor and verify via Cursor Settings > MCP.
添加至全局配置文件或项目配置文件:
~/.cursor/mcp.json.cursor/mcp.jsonjson
{
"mcpServers": {
"alchemy": {
"type": "streamable-http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}重启Cursor,通过Cursor设置 > MCP验证。
Claude Desktop
Claude Desktop
Add to (macOS) or (Windows):
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonjson
{
"mcpServers": {
"alchemy": {
"type": "streamable-http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}添加至macOS的或Windows的:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonjson
{
"mcpServers": {
"alchemy": {
"type": "streamable-http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}VS Code Copilot
VS Code Copilot
Add to in your project:
.vscode/mcp.jsonjson
{
"servers": {
"alchemy": {
"type": "http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}添加至项目中的:
.vscode/mcp.jsonjson
{
"servers": {
"alchemy": {
"type": "http",
"url": "https://mcp.alchemy.com/mcp"
}
}
}Any other MCP client
其他MCP客户端
Point it at using Streamable HTTP transport. The server supports OAuth 2.1 with PKCE; the client handles the authorization flow automatically.
https://mcp.alchemy.com/mcp使用Streamable HTTP传输将其指向。服务器支持带PKCE的OAuth 2.1,客户端会自动处理授权流程。
https://mcp.alchemy.com/mcpBootstrap workflow
引导工作流
Once the server is connected and you've signed in via OAuth:
- List apps — to see your Alchemy apps.
list_apps - Select an app — with the app ID. This caches the API key the server uses for RPC and Data tools. Required before any RPC or Data tool call.
select_app - Run tools — call any of the 159 tools (e.g. ,
getTokenPricesBySymbol,getNFTsForOwner,simulateAssetChanges).solana_getBalance
If you need to create an app first:
text
create_app(name="My App", networks=["eth-mainnet", "base-mainnet"])Then against the new app.
select_app服务器连接完成并通过OAuth登录后:
- 列出应用——调用查看您的Alchemy应用。
list_apps - 选择应用——使用应用ID调用。这会缓存服务器用于RPC和数据工具的API密钥。调用任何RPC或数据工具前必须执行此步骤。
select_app - 运行工具——调用159种工具中的任意一种(例如、
getTokenPricesBySymbol、getNFTsForOwner、simulateAssetChanges)。solana_getBalance
如果需要先创建应用:
text
create_app(name="My App", networks=["eth-mainnet", "base-mainnet"])然后针对新应用调用。
select_appTool catalog
工具目录
The server exposes 159 tools across three categories.
服务器提供三类共159种工具。
Admin (8 tools) — Account & app management
管理类(8种)——账户与应用管理
| Tool | Purpose |
|---|---|
| Health check |
| List your Alchemy apps |
| Get app details |
| Select an app and cache its API key for RPC/Data tools |
| Create a new app |
| Update app name or description |
| List all 100+ supported networks |
| Update app allowlists (network, address, origin, IP) |
| 工具 | 用途 |
|---|---|
| 健康检查 |
| 列出您的Alchemy应用 |
| 获取应用详情 |
| 选择应用并缓存其API密钥,供RPC/数据工具使用 |
| 创建新应用 |
| 更新应用名称或描述 |
| 列出所有100+支持的网络 |
| 更新应用白名单(网络、地址、来源、IP) |
RPC (123 tools) — On-chain JSON-RPC
RPC类(123种)——链上JSON-RPC
Standard EVM RPC, Token API, Transfers & Receipts, Transaction Simulation, Trace API, Debug API, ERC-4337 Account Abstraction, Solana standard RPC, and Solana Enhanced & DAS.
| Cluster | Count | Examples |
|---|---|---|
| Standard EVM RPC | 31 | |
| Token API | 3 | |
| Transfers & Receipts | 2 | |
| Transaction Simulation | 5 | |
| Trace API | 6 | |
| Debug API | 6 | |
| ERC-4337 Account Abstraction | 7 | |
| Solana Standard RPC | 50 | |
| Solana Enhanced & DAS | 13 | |
标准EVM RPC、代币API、转账与收据、交易模拟、Trace API、Debug API、ERC-4337账户抽象、Solana标准RPC以及Solana增强版与DAS。
| 集群 | 数量 | 示例 |
|---|---|---|
| 标准EVM RPC | 31 | |
| 代币API | 3 | |
| 转账与收据 | 2 | |
| 交易模拟 | 5 | |
| Trace API | 6 | |
| Debug API | 6 | |
| ERC-4337账户抽象 | 7 | |
| Solana标准RPC | 50 | |
| Solana增强版与DAS | 13 | |
Data (28 tools) — REST APIs
数据类(28种)——REST API
| Cluster | Count | Examples |
|---|---|---|
| NFT API | 21 | |
| Prices API | 3 | |
| Portfolio (multi-chain) | 4 | |
| 集群 | 数量 | 示例 |
|---|---|---|
| NFT API | 21 | |
| 价格API | 3 | |
| 投资组合(多链) | 4 | |
Common task → tool map
常见任务→工具映射
| Task | Tool | Notes |
|---|---|---|
| Latest ETH block number | | Pass |
| ETH balance for an address | | Returns hex wei |
| ERC-20 balances | | Use |
| ERC-20 metadata | | name, symbol, decimals, logo |
| Asset transfers (history) | | Filter by |
| Simulate a tx | | Pre-flight asset deltas |
| Trace a tx | | Internal call tree |
| Debug-trace a tx | | Geth-style structured trace |
| List owned NFTs | | Across one chain |
| Multi-chain NFTs | | Across many chains |
| NFT metadata | | Per token id |
| NFT floor price | | From major marketplaces |
| Token prices (spot) | | e.g. |
| Token prices (historical) | | Time range queries |
| Multi-chain portfolio | | With USD values |
| Solana balance | | Lamports |
| Solana token accounts | | SPL tokens |
| Compressed NFT lookup | | DAS standard |
| Owner's compressed NFTs | | DAS standard |
| Solana priority fees | | Recent samples |
| User operation receipt | | ERC-4337 |
| 任务 | 工具 | 说明 |
|---|---|---|
| 获取最新ETH区块号 | | 传入 |
| 查询地址的ETH余额 | | 返回十六进制wei值 |
| 查询ERC-20余额 | | 使用 |
| 获取ERC-20元数据 | | 名称、符号、小数位数、Logo |
| 查询资产转账历史 | | 按 |
| 模拟交易 | | 预演资产变化 |
| 追踪交易 | | 内部调用树 |
| 调试追踪交易 | | Geth风格的结构化追踪 |
| 列出持有的NFT | | 单链范围 |
| 查询多链NFT | | 多链范围 |
| 获取NFT元数据 | | 按代币ID查询 |
| 获取NFT地板价 | | 来自主流市场 |
| 查询代币现货价格 | | 例如 |
| 查询代币历史价格 | | 时间范围查询 |
| 查询多链投资组合 | | 包含USD估值 |
| 查询Solana余额 | | 单位为Lamports |
| 查询Solana代币账户 | | SPL代币 |
| 查询压缩NFT | | 符合DAS标准 |
| 查询持有者的压缩NFT | | 符合DAS标准 |
| 查询Solana优先费用 | | 近期样本 |
| 获取用户操作收据 | | ERC-4337 |
Operating rules
操作规则
- Always call first before any RPC or Data tool. Tools error out with a clear message if no app is selected.
select_app - Use the canonical chain slugs returned by (e.g.
list_chains,eth-mainnet,base-mainnet). Tool error messages will guide you if you guess wrong.solana-mainnet - Don't bypass the MCP server with raw curl/HTTP from inside the agent — that's the API-key path covered by . MCP tools are the canonical interface for this skill.
alchemy-api - Don't use MCP tools to generate production application code. When the user wants to ship code, hand off to (with API key) or
alchemy-api(without).agentic-gateway
- 调用任何RPC或数据工具前,务必先调用。如果未选择应用,工具会返回明确的错误提示。
select_app - 使用返回的规范链别名(例如
list_chains,eth-mainnet,base-mainnet)。如果别名错误,工具错误提示会引导您修正。solana-mainnet - 不要在代理内通过原始curl/HTTP绕过MCP服务器——这属于覆盖的API密钥路径。MCP工具是此技能的标准接口。
alchemy-api - 不要使用MCP工具生成生产应用代码。当用户需要交付代码时,切换至(需API密钥)或
alchemy-api(无需API密钥)。agentic-gateway
Supported chains
支持的链
100+ chains including Ethereum, Base, Polygon, Arbitrum, Optimism, BNB, Solana, Starknet, zkSync, Scroll, Linea, Mantle, Blast, World Chain, and many more. Use to fetch the full list.
list_chains支持100+条链,包括Ethereum、Base、Polygon、Arbitrum、Optimism、BNB、Solana、Starknet、zkSync、Scroll、Linea、Mantle、Blast、World Chain等。使用获取完整列表。
list_chainsTroubleshooting
故障排除
"No app selected"
"未选择应用"
Call with the desired app ID. If you don't have an app yet, run first.
select_appcreate_app使用目标应用ID调用。如果还没有应用,先运行。
select_appcreate_appOAuth flow doesn't open
OAuth流程无法打开
Restart your MCP client after adding the server. For Claude Code, run and select to trigger the sign-in flow manually.
/mcpalchemy添加服务器后重启MCP客户端。对于Claude Code,运行并选择手动触发登录流程。
/mcpalchemyTool not found
工具未找到
Some tools are namespaced (e.g. for Solana). Use to confirm the chain slug and check the tool catalog above for the exact name.
solana_*list_chains部分工具带有命名空间(例如Solana工具前缀为)。使用确认链别名,并查看上方工具目录获取准确名称。
solana_*list_chainsRate limits / compute units
速率限制/计算单元
The MCP server inherits the rate limits of the selected app. Check usage in the Alchemy dashboard.
MCP服务器继承所选应用的速率限制。在Alchemy控制台查看使用情况。