thirdweb MCP Server

thirdweb MCP Server avatar

by cjber

Official Integrations

What is thirdweb MCP Server

thirdweb AI

AI Agents with Onchain Intelligence

๐Ÿ“– Overview

thirdweb AI is thirdweb's comprehensive toolkit for blockchain data analysis, wallet management, and AI agent interaction with blockchains. It simplifies complex blockchain operations into four core components: Insight for data analysis, Engine for wallet and contract operations, Storage for decentralized file management, and Nebula for natural language-powered blockchain interactions.

๐ŸŒ Features

Insight

Comprehensive blockchain data intelligence:

  • Chains: Multi-chain support and network information
  • Transactions: Transaction analysis and monitoring
  • Blocks: Block data exploration and metrics
  • Events: Smart contract event tracking and filtering
  • Prices: Real-time token price feeds
  • Tokens: Detailed token information and analytics

Engine

Core blockchain interaction capabilities:

  • Wallet: Secure wallet management and transaction signing
  • Read: Read operations for smart contracts and blockchain data
  • Write: Transaction creation and contract interaction

Storage

Decentralized storage capabilities:

  • Upload: Upload files, directories, and JSON data to IPFS
  • Fetch: Retrieve content from IPFS using thirdweb gateway

Nebula

AI agent blockchain interaction:

  • Natural Language Agent Action: Completing blockchain tasks through natural language instructions

๐Ÿš€ Quickstart

MCP Server

Installation

### Run using uvx
THIRDWEB_SECRET_KEY=... \
    uvx thirdweb-mcp

### Install and run using pipx (and run thirdweb-mcp)
pipx install thirdweb-mcp

THIRDWEB_SECRET_KEY=... \
    thirdweb-mcp

More information

Python SDK

Installation

# Install core package with all framework adapters
pip install "thirdweb-ai[all]"

# Or install with specific framework adapters
pip install "thirdweb-ai[openai]"    # For OpenAI Agents
pip install "thirdweb-ai[langchain]" # For LangChain
pip install "thirdweb-ai[agentkit]" # For Coinbase Agentkit
pip install "thirdweb-ai[goat]" # For GOAT SDK
# ... many more framework supported

See the list of supported framework and installation guides

Basic Usage

from thirdweb_ai import Engine, Insight, Nebula, Storage, Tool

# Initialize services
insight = Insight(secret_key=...)
nebula = Nebula(secret_key=...)
engine = Engine(...)
storage = Storage(secret_key=...)

# Example: Create tools for AI agents
# Option 1: Use Nebula alone (recommended when you need a self-sufficient blockchain agent)
# Nebula already uses most other services internally
tools = [
    *nebula.get_tools(),
]

# Option 2: Use individual services directly without Nebula
# tools = [
#     *insight.get_tools(),
#     *engine.get_tools(),
#     *storage.get_tools(),
# ]

# Example: Framework integration (LangChain)
from thirdweb_ai.adapters.langchain import get_langchain_tools
langchain_tools = get_langchain_tools(tools)
agent = create_tool_calling_agent(tools=langchain_tools, ...)

# Example: Framework integration (OpenAI Agents)
from thirdweb_ai.adapters.openai import get_openai_tools
openai_tools = get_openai_tools(tools)
agent = Agent(name="thirdweb Assistant", tools=tools)

# see python/examples for other framework integration

More information

TypeScript SDK

Coming soon.

๐Ÿ“œ Documentation

For comprehensive documentation, please visit:

๐Ÿšจ Security and Bug Reports

We take security seriously. If you discover a security vulnerability within thirdweb AI, please email [email protected] rather than using the issue tracker.

For non-security-related bugs, please use the GitHub issue tracker.

โš ๏ธ Important Usage Notes

When using Nebula, do not combine it with other tools (Insight, Engine, Storage) in the same agent implementation as Nebula already calls these tools in the background. Using them together can lead to compatibility issues and unexpected behavior.

๐Ÿ“ฆ Publishing Workflow

To publish a new version of thirdweb AI packages:

  1. Create a git tag for the new version: git tag -a v0.X.Y -m "Release v0.X.Y"
  2. Push the tag to GitHub: git push origin v0.X.Y
  3. Go to GitHub and create a release using this tag
  4. The CI/CD pipeline will automatically build and publish both packages to PyPI with matching version numbers

๐Ÿ“ง Contact

๐Ÿ“ License

thirdweb AI is licensed under the Apache-2.0 License. See the LICENSE file for details.

Leave a Comment

Comments section will be available soon. Stay tuned!

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.