MCP server
You can use the thirdweb MCP server to interact with the thirdweb API from your agents or LLM client.
You can access the MCP server at the following url. Send your project secret key in the x-secret-key header.
Make sure to keep your secret key safe and never share it with anyone.
If your client cannot send custom headers, you can pass the key as a query parameter instead: https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>. Prefer the header where you can: a key in a URL can end up in logs, browser history and config files.
By default, all tools are available. You can filter the tools available by passing a comma-separated list of tools as a query parameter.
You can find all available tools at the bottom of this page.
Use your favorite agent framework to plug in the MCP server as a collection of tools for your agent. Refer to your agent framework's documentation for more information.
Once installed, you can use the entire thirdweb API with natural language.
You can also use the MCP server on your own LLM client, like cursor, claude code and more. Refer to your LLM client's documentation for more information.
Add the following to your .cursor/mcp.json file (replace YOUR_SECRET_KEY_HERE with your thirdweb secret key):
List my server wallets
Create a server wallet called treasury
What's the balance of treasury wallet?
List my contracts
approve 100 USDC from treasury wallet to executor wallet
Currently, the following tools are available:
initiateAuthenticationcompleteAuthenticationlinkAuthenticationunlinkAuthenticationgetMyWalletlistUserWalletscreateUserWalletlistServerWalletscreateServerWalletgetWalletBalancegetWalletTransactionsgetWalletTokensgetWalletNFTssignMessagesignTypedDatasendTokenslistContractsdeployContractreadContractwriteContractgetContractTransactionsgetContractEventsgetContractMetadatagetContractSignaturesgetTransactionByIdlistTransactionssendTransactionscreatePaymentpaymentsPurchasegetPaymentHistoryfetchWithPaymentlistPayableServicescreateTokenlistTokensgetTokenOwnersgetBridgeChainsconvertFiatToCryptobridgeSwapchat