Retool MCP Server
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add retool --env RETOOL_URL='<RETOOL_URL>' --env RETOOL_API_KEY='<RETOOL_API_KEY>' -- npx -y retool-mcp~/.codex/config.toml
[mcp_servers.retool]
command = "npx"
args = ["-y", "retool-mcp"]
env = { RETOOL_URL = "<RETOOL_URL>", RETOOL_API_KEY = "<RETOOL_API_KEY>" }
# codex mcp add retool --env RETOOL_URL='<RETOOL_URL>' --env RETOOL_API_KEY='<RETOOL_API_KEY>' -- npx -y retool-mcp~/.cursor/mcp.json
{
"mcpServers": {
"retool": {
"command": "npx",
"args": [
"-y",
"retool-mcp"
],
"env": {
"RETOOL_URL": "<RETOOL_URL>",
"RETOOL_API_KEY": "<RETOOL_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"retool": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"retool-mcp"
],
"env": {
"RETOOL_URL": "<RETOOL_URL>",
"RETOOL_API_KEY": "<RETOOL_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"retool": {
"command": "npx",
"args": [
"-y",
"retool-mcp"
],
"env": {
"RETOOL_URL": "<RETOOL_URL>",
"RETOOL_API_KEY": "<RETOOL_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"retool": {
"command": "npx",
"args": [
"-y",
"retool-mcp"
],
"env": {
"RETOOL_URL": "<RETOOL_URL>",
"RETOOL_API_KEY": "<RETOOL_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"retool": {
"command": "npx",
"args": [
"-y",
"retool-mcp"
],
"env": {
"RETOOL_URL": "<RETOOL_URL>",
"RETOOL_API_KEY": "<RETOOL_API_KEY>"
}
}
}
}需要的环境变量
RETOOL_URLRETOOL_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。