Alchemy MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Alchemy MCP or direct API to fetch blockchain data, send Ethereum transactions, query smart contracts, and monitor on-chain analytics through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Alchemy Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Alchemy now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Compute NFT RarityTool to compute the rarity of each attribute for a specific NFT based on its collection.
Get NFT Collection MetadataTool to get metadata for an NFT collection using its marketplace slug (OpenSea, LooksRare, etc).
Get Collections for OwnerTool to retrieve all NFT collections held by a specified owner address.
Get Contract Metadata Batch V3Tool to retrieve metadata for multiple NFT contracts in a single batch request.
Get Contract Metadata V3Tool to get the metadata for an NFT contract including name, symbol, total supply, and token type (ERC721/ERC1155).
Get Contracts for Owner (NFT API v3)Tool to get all NFT contracts owned by an address with contract metadata.
Get NFT Floor PriceTool to get the floor price for an NFT collection across multiple marketplaces (OpenSea, LooksRare, etc).
Get Historical Token PricesRetrieves historical price data for a token over a specified time range with configurable intervals.
Get NFT Contracts By AddressTool to retrieve NFT contracts associated with one or more wallet addresses across multiple blockchain networks.
Get NFT MetadataTool to retrieve comprehensive metadata for a specific NFT, including contract details, media URLs, attributes, ownership info, and OpenSea data.
Get NFT Metadata BatchTool to retrieve metadata for multiple NFTs in a single request (up to 100 NFTs), including contract details, media URLs, attributes, and collection data.
Get NFT Sales V3Retrieves NFT sales that have occurred through on-chain marketplaces using Alchemy's v3 API.
Get NFTs for Collection V3Retrieves all NFTs in a collection using OpenSea collection slug or contract address.
Get NFTs for ContractRetrieves all NFTs for a given NFT contract address.
Get NFTs for OwnerTool to get all NFTs currently owned by a given address.
Get Owners for CollectionTool to retrieve all owner addresses for a given NFT collection contract.
Get Owners for ContractTool to get all owners of NFTs in a contract with optional token balances.
Get NFT Owners (v3)Tool to retrieve all owners for a specific NFT using Alchemy's v3 API.
Get Portfolio NFTs By AddressTool to fetch NFTs owned by multiple wallet addresses across different blockchain networks.
Get Token Prices By SymbolTool to get current token prices by symbol (e.
Get Token BalancesThis tool retrieves ERC20 token balances for a specified Ethereum address.
Get Token Balances By AddressTool to get token balances for wallet addresses across multiple networks using Alchemy's Portfolio API.
Get Token MetadataRetrieves metadata for an ERC-20 token on Ethereum mainnet, including its name, symbol, decimals, and logo URL.
Get Token Prices By AddressRetrieves current token prices by contract address and network from decentralized exchanges (DEXes).
Get Tokens By AddressTool to fetch fungible tokens (native, ERC-20, SPL) for multiple wallet addresses across networks.
Get Transaction CountThis tool retrieves the number of transactions sent from a specific address (also known as the nonce).
Get Transactions History By AddressTool to get transaction history for wallet addresses across multiple networks using Alchemy's Data API.
Invalidate NFT Contract CacheTool to invalidate the cached metadata for an NFT contract.
Check If NFT Is AirdropTool to check if a specific NFT token is marked as an airdrop.
Check If NFT Is AirdropTool to determine whether an NFT was airdropped to the owner address.
Check Collection OwnershipTool to check if a wallet address owns any token from a specific NFT collection.
Check NFT Holder StatusTool to check if a wallet address holds any NFTs from a specific contract.
Check if Contract is SpamTool to check if an NFT contract is marked as spam by Alchemy.
Check if Contract is Spam (V3)Tool to determine if a specific NFT contract is marked as spam by Alchemy.
Search NFT Contract MetadataTool to search for keywords across metadata of all ERC-721 and ERC-1155 smart contracts.
Summarize NFT AttributesRetrieves a comprehensive summary of all attributes and traits for NFTs in a collection, including trait counts and distribution statistics.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Alchemy tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get NFT contract metadata for 0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Alchemy Integration

  • Supports both Alchemy MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Alchemy data

Managed Auth

  • Built-in API Key handling for Alchemy
  • Central place to manage, scope, and revoke Alchemy access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Alchemy
  • Scoped, least privilege access to Alchemy resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Alchemy with Composio?

Yes, Alchemy requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.