You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the thirdweb MCP server to interact with the thirdweb API from your agents or LLM client.
4
+
5
+
### Remote MCP endpoint
6
+
7
+
You can access the MCP server at the following url, with your project secret key.
8
+
9
+
```http
10
+
# endpoint
11
+
POST https://api.thirdweb.com/mcp
12
+
13
+
# auth header (required)
14
+
x-secret-key <your-project-secret-key>
15
+
```
16
+
17
+
### Usage with agents
18
+
19
+
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.
20
+
21
+
#### Example usage with langchain:
22
+
23
+
```python
24
+
from langchain_mcp_adapters.client import MultiServerMCPClient
response =await agent.ainvoke({"messages": "create a server wallet called 'my-wallet'"})
41
+
```
42
+
43
+
### Usage with LLM clients
44
+
45
+
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.
46
+
47
+
#### Example usage with Cursor:
48
+
49
+
Add the following to your `.cursor/mcp.json` file:
Our protocol fee is a flat 30 basis points (0.30%) applied on the source token amount.
19
+
This fee is independent of network gas fees and does not fluctuate.
20
+
21
+
#### Setting fees using buy or sell
22
+
23
+
You can configure who pays the protocol fee for buy or sell transactions by specifying the input amount `sell` or `buy`.
24
+
25
+
See full reference for [`buy`](https://portal.thirdweb.com/references/typescript/v5/buy/prepare) and [`sell`](https://portal.thirdweb.com/references/typescript/v5/sell/prepare).
26
+
27
+
#### Setting fees on transfers or purchase mode
28
+
29
+
You can configure who pays the protocol fee for transfers or purchase mode using the `feePayer` setting. This affects the
30
+
total amount paid by the user and the amount received by the destination (e.g., a seller, app, or partner).
31
+
32
+
feePayer=buyer (Default) i.e. the user covers the protocol fee.
33
+
34
+
Example: If the source token is 10 USDC, the user pays 10.30 USDC.
35
+
36
+
- thirdweb receives: 0.30 USDC
37
+
38
+
- Receiver receives: 10.00 USDC
39
+
40
+
feePayer=receiver i.e. the receiver covers the protocol fee.
41
+
42
+
Example: The user pays 10.00 USDC.
43
+
44
+
- thirdweb receives: 0.30 USDC
45
+
46
+
- Receiver receives: 9.70 USDC
47
+
48
+
[See full reference.](https://bridge.thirdweb.com/reference#tag/transfer/POST/v1/transfer/prepare)
49
+
50
+
### Onramp Fee
51
+
52
+
When onramping to crypto using the Payments, a fee is charged by the third-party provider. This fee is determined by the provider and is typically a percentage
53
+
of the amount being onramped. This fee may vary based on the provider and payment method used.
54
+
55
+
There are no protocol fees on onramp transactions.
0 commit comments