Prerequisites
- Python 3.10 or higher
uv package
Installation
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
uv packageuvxTHIRDWEB_SECRET_KEY=...
uvx thirdweb-mcp
pipxpipx install thirdweb-mcp
THIRDWEB_SECRET_KEY=...
thirdweb-mcp
git clone https://github.com/thirdweb-dev/ai.git thirdweb-ai
cd thirdweb-ai/python/thirdweb-mcp
uv sync
The thirdweb MCP server requires configuration based on which services you want to enable:
- thirdweb Secret Key: Required for Nebula and Insight services. Obtain from the thirdweb dashboard.
- Chain IDs: Blockchain network IDs to connect to (e.g., 1 for Ethereum mainnet, 137 for Polygon).
- Engine Configuration: If using the Engine service, you’ll need the Engine URL and authentication JWT.
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
Environment variables
You can also configure the MCP server using environment variables:
THIRDWEB_SECRET_KEY: Your thirdweb API secret keyTHIRDWEB_ENGINE_URL: URL endpoint for thirdweb Engine serviceTHIRDWEB_ENGINE_AUTH_JWT: Authentication JWT token for EngineTHIRDWEB_ENGINE_BACKEND_WALLET_ADDRESS: Wallet address for Engine backend
Integration with Claude Desktop
-
Install the MCP:
pipx install thirdweb-mcp -
Create or edit the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%Claudeclaude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
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" } } } } -
Restart Claude Desktop for the changes to take effect.