The Thirdweb MCP Server is a powerful implementation of the Model Context Protocol (MCP) designed to integrate thirdweb's blockchain tools and services with MCP-compatible clients. This server provides a unified interface for accessing thirdweb's suite of services, including Nebula, Insight, and Engine, enabling seamless blockchain interactions.
The Thirdweb MCP Server offers a standardized way to connect to thirdweb's blockchain services through the Model Context Protocol. It supports multiple communication transports and integrates with the following thirdweb services:
uv
uvx
THIRDWEB_SECRET_KEY=... \
uvx thirdweb-mcp
pipx
pipx 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 the following configurations:
These configurations can be provided via command-line options or environment variables.
# Basic usage with default settings
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
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.shell
pipx install thirdweb-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
json
{
"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",
},
}
}
}
This project is licensed under the Apache-2.0 License.
For questions or support, contact [email protected] or visit thirdweb.com.