# ai

> MCP Server

The thirdweb AI repository offers tools for blockchain data analysis, wallet management, and AI agent interaction, featuring Insight for data, Engine for operations, and Nebula for natural language interactions, simplifying blockchain tasks.

## Overview

- **Category:** AI
- **Language:** Python
- **Stars:** 19
- **Forks:** 2
- **Owner:** thirdweb-dev
- **GitHub:** https://github.com/thirdweb-dev/ai
- **Created:** 2025-03-13T05:23:03+00:00
- **Updated:** 2025-03-26T18:07:35+00:00
- **Source:** https://model-context-protocol.com/servers/blockchain-data-analysis-wallet-ai-agents

## Setup

## Setup

### MCP Server

#### Installation

```bash
### 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/thirdweb-mcp)

### Python SDK

#### Installation

```bash
# 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](python/thirdweb-ai#install-with-framework-specific-adapters)

#### Basic Usage

```python
from thirdweb_ai import Engine, Insight, Nebula, Tool

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

# Example: Create tools for AI agents
tools = [
    *insight.get_tools(),
    *nebula.get_tools(),
    *engine.get_tools(),
    # Or pick an individual tool from the services
]

# 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](python/thirdweb-ai)

## Tools

## Available Tools

1.  Insight (Comprehensive blockchain data intelligence)
2.  Chains (Multi-chain support and network information)
3.  Transactions (Transaction analysis and monitoring)
4.  Blocks (Block data exploration and metrics)
5.  Events (Smart contract event tracking and filtering)
6.  Prices (Real-time token price feeds)
7.  Tokens (Detailed token information and analytics)
8.  Engine (Core blockchain interaction capabilities)
9.  Wallet (Secure wallet management and transaction signing)
10. Read (Read operations for smart contracts and blockchain data)
11. Write (Transaction creation and contract interaction)
12. Nebula (AI agent blockchain interaction)
13. Natural Language Agent Action (Completing blockchain tasks through natural language instructions)
