AI

MCP server

You can use the thirdweb MCP server to interact with the thirdweb API from your agents or LLM client.

Remote MCP endpoint

You can access the MCP server at the following url, with your project secret key.

https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>

Make sure to keep your secret key safe and never share it with anyone.

Usage with LLM clients

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:

{
"mcpServers": {
"thirdweb-api": {
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
}
}
}

Usage with agents

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.

Example usage with langchain:

from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
client = MultiServerMCPClient(
{
"thirdweb-api": {
"transport": "streamable_http",
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
}
}
)
tools = await client.get_tools()
agent = create_react_agent("openai:gpt-4.1", tools)
response = await agent.ainvoke({"messages": "create a server wallet called 'my-wallet'"})

Once installed, you can use the entire thirdweb API with natural language.

Example prompts

Managing server wallets

List my server wallets
Create a server wallet called treasury
What's the balance of treasury wallet?

Managing contracts

List my contracts

Executing transactions

approve 100 USDC from treasury wallet to executor wallet