Open sea Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Open sea MCP or direct API to search NFT collections, fetch asset details, track portfolio value, and monitor trending items through natural language.
Open sea Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Build criteria offerBuild a portion of a criteria offer including the merkle tree needed to post an offer.
Cancel orderOffchain cancel a single order, offer or listing, by its order hash when protected by the signedzone.
Create criteria offerCreate a criteria offer to purchase any nft in a collection or which matches the specified trait.
Create item offerCreate an offer to purchase a single nft (erc721 or erc1155).
Create listingList a single nft (erc721 or erc1155) for sale on the opensea marketplace.
Fulfill listingRetrieve all the information, including signatures, needed to fulfill a listing directly onchain.
Fulfill offerRetrieve all the information, including signatures, needed to fulfill an offer directly onchain.
Get accountGet an opensea account profile including details such as bio, social media usernames, and profile image.
Get all listings by collectionGet all active, valid listings for a single collection.
Get all offers by collectionGet all active, valid offers for the specified collection.
Get best listing by nftGet the best listing for an nft.
Get best listings by collectionGet the cheapest priced active, valid listings on a single collection.
Get best offer by nftGet the best offers for an nft.
Get collectionGet a single collection including details such as fees, traits, and links.
Get collectionsGet a list of opensea collections with optional filtering and pagination.
Get collection statsGet stats for a single collection on opensea.
Get contractGet a smart contract for a given chain and address.
Get eventsGet a list of events from opensea based on various filters like timestamps and event types.
Get listingsGet the complete set of active, valid listings.
Get nftGet metadata, traits, ownership information, and rarity for a single nft.
Get orderGet a single order, offer or listing, by its order hash.
Get payment tokenGet a smart contract for a given chain and address.
Get traitsGet the traits in a collection.
Refresh nft metadataRefresh metadata for a single nft.

Connect Open sea MCP Tool with your Agent

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 Open sea tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get all listings for the Bored Ape Yacht Club collection')
        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

Connect Open sea API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Open sea Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'List all active NFT listings for the Bored Ape Yacht Club collection'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Open sea actions with your Agent

Why Use Composio?

AI Native Open sea Integration

  • Supports both Open sea MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for searching, trading, and analyzing NFTs on Open sea

Managed Auth

  • Handles Open sea API key setup and lifecycle management
  • Central hub to manage, scope, and revoke Open sea API access
  • Scoped, per-user credentials for safer integration—no more hard-coded keys

Agent Optimized Design

  • Tools are tuned for language model agents to fetch, list, and update NFT data flawlessly
  • Comprehensive execution logs let you review every action and response

Enterprise Grade Security

  • Fine-grained RBAC for controlling which agents and users access Open sea
  • Least-privilege, scoped API key usage for every connection
  • Full audit trail of agent actions for compliance and visibility

Frequently Asked Questions

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

Yes, Open sea 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
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
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.