Use Retool's MCP server
Use Retool's MCP server to manage your organization and its users or for app building.
You can connect to Retool's MCP server directly from your coding environment. Retool's MCP enables you to build apps from your chosen development environment, import React apps into Retool, and manage your organization's settings and users.
The MCP server provides access to Retool functionality in an external environment. This functionality is distinct from the MCP resource, which lets you connect third-party tools and services as a native integration in classic apps, workflows, and agents.
Refer to the MCP tool reference for the full list of tools.
Use cases
The following use cases are examples of what can be accomplished using the MCP server:
- App building
- Organization and user management
- Resource management
Use the MCP server to build apps from your chosen development environment:
- Import an existing React app to Retool.
- Start or continue building an app.
- View past and current agent activity.
- Cancel a failed app build.
- Manually review function runs.
- Inspect an existing app.
Use the MCP server to manage your organization settings and users:
- Write queries against resources to power data analysis.
- Investigate audit logs.
- Bulk-invite users or manage pending invites.
- Audit the users who have access to your organization.
- Disable users who no longer need access, or reset a user's two-factor authentication.
- Create permission groups and add or remove members.
- Create custom roles and assign them to users and groups.
- Check who can access an app, resource, or workflow, and grant or remove access.
Use the MCP server to manage resources:
- List all connected resources and see their configurations.
- Create new resources.
- Identify the best resource for a given use case.
- Inspect resource environment configurations.
For a full list of available tools, refer to the MCP tools reference, or install the MCP server and run tools/list.
Connect MCP server
- Cloud
- Self-hosted
You can connect Retool's MCP server to an MCP-compatible client using the following details:
- URL:
https://mcp.retool.com/mcp - Transport: HTTP
- Authentication: OAuth 2.0
Once you authenticate your MCP server with OAuth 2.0, you may have to restart your coding agent.
Common coding agents
The following examples show how to connect to the MCP server with common coding agents.
- Retool Agents
- Anthropic
- OpenAI
- Cursor
- Kiro
- VS Code
To configure the MCP server as a tool for use in Retool Agents, complete the following steps:
- Navigate to the Resources tab in Retool. Click Create new > Resource, and select MCP Server.
- Configure the resource:
- Title:
Retool MCP - Description:
An MCP server for interacting with Retool. - Server URL:
https://mcp.retool.com/mcp - Authentication: Automatic
- Click Auto-configure authentication.
- Scroll down and click Connect with OAuth. Click Authenticate.
- Enter your organization URL and click Continue, or choose an organization that you are already logged into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Title:
- Navigate to a new or existing agent and add a new tool.
- Click Add new tool.
- Select Connect to MCP server.
- From the dropdown, select the MCP server you created in the previous step.
- Click Save.
- Test out your agent from the Chat tab.
Claude Code
To configure the MCP server for Claude Code, complete the following steps:
- From your terminal, run the following command:
claude mcp add --transport http retool https://mcp.retool.com/mcp
- Exit your Claude Code session, and start a new session.
- Run
/mcp, and select theretoolMCP server, which requires authentication. A new browser tab opens. - Enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Claude Code. The MCP server is ready to use.
Claude
If your organization is on a Team or Enterprise Claude plan, ask an Owner or Primary owner of your organization to add Retool's MCP server as a custom connector.
If you use Claude on a Free, Pro, or Max Claude plan, use the following steps:
- Navigate to the Customize tab in Claude.
- Open the Connectors tab.
- Search for Retool, and click + or Connect to Claude.
- For the server URL, use
https://mcp.retool.com/mcpand click Connect. A new browser tab opens. - Enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Claude. The MCP server is ready to use.
Codex
To configure the MCP server via the CLI for Codex, complete the following steps:
- From your terminal, run the following command:
codex mcp add retool --url https://mcp.retool.com/mcp
- In the new browser tab that opens, enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Codex. The MCP is ready to use.
ChatGPT
To configure the MCP server for ChatGPT, use the following steps:
- In ChatGPT, navigate to Settings > Plugins.
- Click Add > Add MCP server.
- Enter the following information:
- Name:
Retool - Type: Streamable HTTP
- URL:
https://mcp.retool.com/mcp
- Name:
- Click Save.
- On the Plugins page, navigate to the MCPs tab. Find the MCP you added, and click Authenticate.
- In the new browser tab that opens, enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to ChatGPT. The MCP is ready to use.
To configure the MCP server in Cursor, complete the following steps:
- Open Customize > MCPs and click New MCP Server. Select whether to add a user or workspace MCP.
.cursor/mcp.jsonopens. Add your Retool MCP server:{"mcpServers": {"retool": {"type": "http","url": "https://mcp.retool.com/mcp"},...other mcp servers}}- Click Authenticate.
- In the new browser tab that opens, enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Cursor. The MCP is ready to use.
Gemini CLI
To configure the MCP server for the Gemini CLI, complete the following steps:
- From your terminal, run the following command:
gemini mcp add --transport http --scope user retool https://mcp.retool.com/mcp
- Start a new Gemini CLI session.
- Run
/mcp auth retool. - In the new browser tab that opens, enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to the Gemini CLI. The MCP server is ready to use.
Gemini Enterprise
Gemini Enterprise connects to Retool's MCP server as a custom MCP server data store. A Google Cloud admin with the Discovery Engine Editor role must add the connector. Refer to Google's Set up your custom MCP server data store guide for the full list of prerequisites.
To configure the MCP server for Gemini Enterprise, complete the following steps:
- Register Gemini Enterprise as an OAuth client with Retool. From your terminal, run the following command:
Copy thecurl -X POST https://mcp.retool.com/api/oauth2/register \-H "Content-Type: application/json" \-d '{"client_name": "Gemini Enterprise", "redirect_uris": ["https://vertexaisearch.cloud.google.com/oauth-redirect"]}'
client_idvalue from the response. - In the Google Cloud console, navigate to Gemini Enterprise > Data stores. Click Create data store, and select Custom MCP Server.
- Enter the following information:
- MCP Server URL:
https://mcp.retool.com/mcp - Authorization URL:
https://mcp.retool.com/auth/oauth2/authorize - Token URL:
https://mcp.retool.com/api/oauth2/token - Client ID: The
client_idfrom step 1. - Client Secret: Any placeholder value. Retool doesn't issue client secrets, and ignores this value.
- Scopes:
mcp:read mcp:write mcp:admin. Each user can only authorize the scopes their Retool role allows. For example, only admins can authorizemcp:admin. - Enable PKCE Support: Selected.
- MCP Server URL:
- In a separate browser tab, sign in to your Retool organization.
- Return to Gemini Enterprise and click Verify Auth. A popup window opens. Choose the organization that you signed into, and authorize the requested scopes.
- Authorize the scopes, and finish creating the data store.
You must be signed in to Retool in the same browser before you click Verify Auth. If the popup window shows the Retool sign-in page, the connection fails. Sign in to Retool in a separate tab, then click Verify Auth again.
To configure the MCP server for the Kiro CLI, complete the following steps:
- From your terminal, run the following command:
kiro-cli mcp add --name "Retool" --scope global --url "https://mcp.retool.com/mcp"
- Exit your Kiro CLI session, and start a new session.
- Run
/mcp, and select theretoolMCP, which needs authentication. Click the link to redirect to the OAuth authentication. - Enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you ’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Kiro CLI. The MCP is ready to use.
To configure the MCP server in VS Code, complete the following steps:
MCP support requires VS Code 1.102 or later with GitHub Copilot Chat. If MCP servers do not start, make sure the chat.mcp.access setting in VS Code is not set to none. Your organization can turn this setting off for managed installs.
- Create a
.vscode/mcp.jsonfile in your project root if one does not already exist. - Click Add Server....
- Select HTTP.
- Enter your MCP server URL,
https://mcp.retool.com/mcp. - Name your MCP server.
- In the new browser tab that opens, enter your organization URL, click Continue, and sign in. Alternatively, choose an organization you’re already signed into.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Authenticate, and return to VS Code. The MCP server is ready to use.
You can connect Retool's MCP server to an MCP-compatible client using the following details:
- URL:
https://<your-retool-instance>/mcp(e.g.https://example.retool.com/mcp) - Transport: HTTP
- Authentication: OAuth 2.0
Once you authenticate your MCP server with OAuth 2.0, you may have to restart your coding agent.
Common coding agents
The following examples show how to connect to the MCP server with common coding agents.
- Retool Agents
- Anthropic
- OpenAI
- Cursor
- Kiro
- VS Code
To configure the MCP server as a tool for use in Retool Agents, complete the following steps:
- Navigate to the Resources tab in Retool. Click Create new > Resource, and select MCP Server.
- Configure the resource:
- Title:
Retool MCP - Description:
An MCP server for interacting with Retool. - Server URL:
https://example.retool.com/mcp - Authentication: Automatic
- Click Auto-configure authentication.
- Scroll down and click Connect with OAuth. Click Authenticate.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Title:
- Navigate to a new or existing agent and add a new tool.
- Click Add new tool.
- Select Connect to MCP server.
- From the dropdown, select the MCP server you created in the previous step.
- Click Save.
- Test out your agent from the Chat tab.
Claude Code
To configure the MCP server for Claude Code, complete the following steps:
- From your terminal, run the following command:
claude mcp add --transport http retool https://example.retool.com/mcp
- Exit your Claude Code session, and start a new session.
- Run
/mcp, and select theretoolMCP server, which requires authentication. A new browser tab opens and asks you to select the desired scopes. - Authenticate, and return to Claude Code. The MCP server is ready to use.
Claude
If your organization is on a Team or Enterprise Claude plan, ask an Owner or Primary owner of your organization to add Retool's MCP server as a custom connector.
If you use Claude on a Free, Pro, or Max Claude plan, use the following steps:
- Navigate to the Customize tab in Claude.
- Open the Connectors tab.
- Search for Retool, and click + or Connect to Claude.
- For the server URL, use
https://example.retool.com/mcp. - A new browser tab opens and asks you to authorize the scopes you want the MCP to use.
- Return to Claude. The MCP server is ready to use.
Codex
To configure the MCP server via the CLI for Codex, complete the following steps:
- From your terminal, run the following command:
codex mcp add retool --url https://example.retool.com/mcp
- A new browser tab opens and asks you to select the desired scopes.
- Authenticate, and return to Codex. The MCP is ready to use.
ChatGPT
To configure the MCP server for ChatGPT, use the following steps:
- In ChatGPT, navigate to Settings > Plugins.
- Click Add > Add MCP server.
- Enter the following information:
- Name:
Retool - Type: Streamable HTTP
- URL:
https://example.retool.com/mcp
- Name:
- Click Save.
- On the Plugins page, navigate to the MCPs tab. Find the MCP you added, and click Authenticate. A new browser tab opens for OAuth consent.
- Authorize the requested scopes and return to ChatGPT.
To configure the MCP server in Cursor, complete the following steps:
- Open Customize > MCPs and click New MCP Server. Select whether to add a user or workspace MCP.
.cursor/mcp.jsonopens. Add your Retool MCP server:{"mcpServers": {"retool": {"type": "http","url": "https://example.retool.com/mcp"},...other mcp servers}}- Click Authenticate.
- Select the scopes that you want the MCP to have access to. Click Authorize.
- Return to Cursor. The MCP is ready to use.
Gemini CLI
To configure the MCP server for the Gemini CLI, complete the following steps:
- From your terminal, run the following command:
gemini mcp add --transport http --scope user retool https://example.retool.com/mcp
- Start a new Gemini CLI session.
- Run
/mcp auth retool. A browser window opens and asks you to select the desired scopes. - Authenticate, and return to the Gemini CLI. The MCP server is ready to use.
Gemini Enterprise
Gemini Enterprise connects to Retool's MCP server as a custom MCP server data store. A Google Cloud admin with the Discovery Engine Editor role must add the connector. Refer to Google's Set up your custom MCP server data store guide for the full list of prerequisites.
To configure the MCP server for Gemini Enterprise, complete the following steps:
- Register Gemini Enterprise as an OAuth client with Retool. From your terminal, run the following command:
Copy thecurl -X POST https://example.retool.com/api/oauth2/register \-H "Content-Type: application/json" \-d '{"client_name": "Gemini Enterprise", "redirect_uris": ["https://vertexaisearch.cloud.google.com/oauth-redirect"]}'
client_idvalue from the response. - In the Google Cloud console, navigate to Gemini Enterprise > Data stores. Click Create data store, and select Custom MCP Server.
- Enter the following information:
- MCP Server URL:
https://example.retool.com/mcp - Authorization URL:
https://example.retool.com/auth/oauth2/authorize - Token URL:
https://example.retool.com/api/oauth2/token - Client ID: The
client_idfrom step 1. - Client Secret: Any placeholder value. Retool doesn't issue client secrets, and ignores this value.
- Scopes:
mcp:read mcp:write mcp:admin. Each user can only authorize the scopes their Retool role allows. For example, only admins can authorizemcp:admin. - Enable PKCE Support: Selected.
- MCP Server URL:
- In a separate browser tab, sign in to your Retool organization.
- Return to Gemini Enterprise and click Verify Auth. A popup window opens and asks you to authorize the requested scopes.
- Authorize the scopes, and finish creating the data store.
You must be signed in to Retool in the same browser before you click Verify Auth. If the popup window shows the Retool sign-in page, the connection fails. Sign in to Retool in a separate tab, then click Verify Auth again.
To configure the MCP server for the Kiro CLI, complete the following steps:
- From your terminal, run the following command:
kiro-cli mcp add --name "Retool" --scope global --url "https://example.retool.com/mcp"
- Exit your Kiro CLI session, and start a new session.
- Run
/mcp, and select theretoolMCP, which needs authentication. Click the link to redirect to the OAuth authentication. - Select the desired scopes and click Authorize.
- Return to Kiro CLI. The MCP is ready to use.
To configure the MCP server in VS Code, complete the following steps:
MCP support requires VS Code 1.102 or later with GitHub Copilot Chat. If MCP servers do not start, make sure the chat.mcp.access setting in VS Code is not set to none. Your organization can turn this setting off for managed installs.
- Create a
.vscode/mcp.jsonfile in your project root if one does not already exist. - Click Add Server....
- Select HTTP.
- Enter your MCP server URL,
https://example.retool.com/mcp. - Name your MCP server.
- A new browser tab opens and asks you to select the desired scopes.
- Authenticate, and return to VS Code. The MCP server is ready to use.
MCP server for self-hosted instances
Retool's MCP server is available for self-hosted instances that use version 4.0.0 and later. Once you set up your first instance or upgrade your existing instance, follow the instructions in the Enable MCP server guide.
Credit usage
For app-building tasks, the MCP server engages two agentic services:
- Your local development agent decides what to build, and passes your prompt to Retool.
- Retool's app building agent works to create or update your app.
Each of these services charges separately for their portion of the work. In Retool, if you utilize Retool-managed keys, any app building consumes AI credits. If your organization is on the Enterprise plan and you bring your own key, app building does not consume AI credits. Refer to the AI credits billing and usage page for more information.
No Retool credits are consumed for admin or resource exploration tasks.