The thirdweb MCP server provides a unified interface to access thirdweb's blockchain tools and services through the standardized Model Context Protocol. It enables integration with Nebula, Insight, Engine, EngineCloud, and Storage services for tasks like on-chain analysis, contract interactions, and decentralized storage.
THIRDWEB_SECRET_KEY=... \
uvx thirdweb-mcp
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 server requires specific configuration based on which services you want to enable:
# 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
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 backendTHIRDWEB_VAULT_ACCESS_TOKEN
: Vault access token for EngineCloud server wallet operationsTo add this MCP server to Claude Desktop:
Install the MCP: pipx install thirdweb-mcp
Create or edit the Claude Desktop configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"thirdweb-mcp": {
"command": "thirdweb-mcp",
"args": [],
"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"
},
}
}
}
Restart Claude Desktop for the changes to take effect.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "thirdweb-mcp" '{"command":"thirdweb-mcp","args":[],"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"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"thirdweb-mcp": {
"command": "thirdweb-mcp",
"args": [],
"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"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"thirdweb-mcp": {
"command": "thirdweb-mcp",
"args": [],
"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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect