Skip to main content

thirdweb MCP Server

A Model Context Protocol (MCP) server implementation for thirdweb services integration. This server allows you to integrate thirdweb's tools with any MCP-compatible client.

Overview

thirdweb MCP provides a unified interface to access thirdweb's suite of blockchain tools and services through the standardized Model Context Protocol. It supports multiple communication transports and can be integrated with various thirdweb services:

  • Nebula: Autonomous onchain execution - real-time on-chain analysis, code generation and contract interactions
  • Insight: Blockchain data analysis capabilities for real-time on-chain data
  • Engine: Integration with thirdweb's backend infrastructure for contract deployments and interactions
  • EngineCloud: Cloud-based engine operations for server wallets, contract interactions, and transaction management
  • Storage: Decentralized storage capabilities for uploading and retrieving data via IPFS

Installation

Prerequisites

  • Python 3.10 or higher
  • uv

Run with uvx

THIRDWEB_SECRET_KEY=... \
    uvx thirdweb-mcp

Install and run with pipx

pipx install thirdweb-mcp

THIRDWEB_SECRET_KEY=... \
    thirdweb-mcp

Install from source

git clone https://github.com/thirdweb-dev/ai.git thirdweb-ai
cd thirdweb-ai/python/thirdweb-mcp
uv sync

Configuration

The thirdweb MCP server requires configuration based on which services you want to enable:

  1. thirdweb Secret Key: Required for Nebula, Insight, Storage, and EngineCloud services. Obtain from the thirdweb dashboard.
  2. Chain IDs: Blockchain network IDs to connect to (e.g., 1 for Ethereum mainnet, 137 for Polygon).
  3. Engine Configuration: If using the Engine service, you'll need the Engine URL and authentication JWT.
  4. EngineCloud Configuration: For EngineCloud operations, you may need the Vault Access Token for server wallet operations.

You can provide these through command-line options or environment variables.

Usage

Command-line options

# Basic usage with default settings (stdio transport with Nebula and Insight)
THIRDWEB_SECRET_KEY=... thirdweb-mcp 

# Using SSE transport on a custom port
THIRDWEB_SECRET_KEY=... thirdweb-mcp --transport sse --port 8080

# Enabling all services with specific chain IDs
THIRDWEB_SECRET_KEY=... thirdweb-mcp --chain-id 1 --chain-id 137 \
    --engine-url YOUR_ENGINE_URL \
    --engine-auth-jwt YOUR_ENGINE_JWT \ 
    --engine-backend-wallet-address YOUR_ENGINE_BACKEND_WALLET_ADDRESS \
    --vault-access-token YOUR_VAULT_ACCESS_TOKEN

Environment variables

You can also configure the MCP server using environment variables:

  • THIRDWEB_SECRET_KEY: Your thirdweb API secret key
  • THIRDWEB_ENGINE_URL: URL endpoint for thirdweb Engine service
  • THIRDWEB_ENGINE_AUTH_JWT: Authentication JWT token for Engine
  • THIRDWEB_ENGINE_BACKEND_WALLET_ADDRESS: Wallet address for Engine backend
  • THIRDWEB_VAULT_ACCESS_TOKEN: Vault access token for EngineCloud server wallet operations

Integration with Claude Desktop

To add this MCP server to Claude Desktop:

  1. Install the MCP: pipx install thirdweb-mcp

  2. Create or edit the Claude Desktop configuration file at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  3. Add the following configuration:

    {
      "mcpServers": {
        "thirdweb-mcp": {
          "command": "thirdweb-mcp",
          "args": [], // add `--chain-id` optionally
          "env": {
            "THIRDWEB_SECRET_KEY": "your thirdweb secret key from dashboard",
            "THIRDWEB_ENGINE_URL": "(OPTIONAL) your engine url",
            "THIRDWEB_ENGINE_AUTH_JWT": "(OPTIONAL) your engine auth jwt",
            "THIRDWEB_ENGINE_BACKEND_WALLET_ADDRESS": "(OPTIONAL) your engine backend wallet address",
            "THIRDWEB_VAULT_ACCESS_TOKEN": "(OPTIONAL) your vault access token for EngineCloud"
          },
        }
      }
    }
    
  4. Restart Claude Desktop for the changes to take effect.

Read more on MCP Quickstart

Integration with MCP clients

This server can be integrated with any client that supports the Model Context Protocol:

  1. Run the MCP server with the appropriate configuration
  2. Connect your MCP client to the server using the selected transport (stdio or SSE)
  3. Access thirdweb services through the exposed MCP tools

Available Services

Nebula

Autonomous onchain execution and analysis:

  • Analyze smart contract code
  • Contract interactions and deployments
  • Autonomous onchain tasks execution

Insight

Offers blockchain data analysis capabilities:

  • Query on-chain data across multiple networks
  • Analyze transactions, blocks, and smart contract events
  • Monitor wallet activities and token movements

Engine

Integrates with thirdweb's backend infrastructure:

  • Deploy smart contracts
  • Interact with deployed contracts
  • Manage wallet connections and transactions

EngineCloud

Cloud-based engine operations with advanced capabilities:

  • Create and manage server wallets with KMS integration
  • Read from and write to smart contracts
  • Send transactions and query transaction history
  • Check native token balances on various chains

Storage

Provides decentralized storage functionality:

  • Upload files, directories, and JSON data to IPFS
  • Retrieve content from IPFS using thirdweb gateway
  • Preserve directory structures when uploading

License

Apache-2.0 License

Support

For questions or support, please contact support@thirdweb.com or visit thirdweb.com.

Metadata

Release files for iflow-mcp_thirdweb-dev-thirdweb-mcp 0.1.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_thirdweb-dev-thirdweb-mcp 0.1.24
File Size Uploaded
iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_thirdweb-dev-thirdweb-mcp 0.1.24
File Interpreter ABI Platform
iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24.tar.gz

Download URL iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7f6737ad8a4301cda07af5c7754827134c3621da3c19a5f3e5c357d2e56275d1
BLAKE2b-256 checksum
How to use checksums
d93ce7632ac8d6d55f1602fec43dd53fc076d40b2b145e0ce4b81c9e4e4a4464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24-py3-none-any.whl

Download URL iflow_mcp_thirdweb_dev_thirdweb_mcp-0.1.24-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a728975859f684b04ae90dbc70099aef5ea70d3e41e80d1db88b3ce8c1f5fc1
BLAKE2b-256 checksum
How to use checksums
fa0d32a2313d7e1bd63db12511d50d38112432b4473835ef8c90bbfe2c73124c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.24 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page