Skip to main content

Other MCP Clients

Connect ToolJet MCP to any client that can launch a stdio MCP server, such as Cursor or Cline, so your agent can build and modify applications in your ToolJet workspace, whether that's ToolJet Cloud or your own self-hosted domain.

Prerequisites​

  • An MCP client that can launch a stdio MCP server.
  • Node.js 20 or newer, available to your client.
  • Git, to clone the ToolJet MCP repository.
  • Access to the ToolJet workspace you want the agent to build in.

How It Works​

Your MCP client > ToolJet MCP server > ToolJet workspace

Your client launches the ToolJet MCP server on your machine from a local copy of the repository. The server reads your ToolJet URL and personal access token from the env block in your client's MCP configuration.

A token only works in the workspace it was created in, and every tool call runs with the permissions of the token's owner. The token you choose decides what the agent can see and change.

Step 1: Create a Personal Access Token​

  1. In ToolJet, open the workspace you want the agent to build in.
  2. Go to Profile settings > Personal access tokens and click Create new token.
  3. Copy the token, which begins with tj_pat_. ToolJet shows it only once.
Personal access tokens in Profile settings

Step 2: Clone the Repository​

Clone the ToolJet MCP repository. No build step is needed, as the bundle is committed:

git clone https://github.com/ToolJet/tooljet-mcp.git

Step 3: Register the Server​

Add the equivalent of this entry to your client's MCP configuration, using the absolute path to your clone and your own values:

{
"mcpServers": {
"tooljet": {
"command": "node",
"args": ["/absolute/path/to/tooljet-mcp/bundle/index.js"],
"env": {
"TOOLJET_PAT": "tj_pat_...",
"TOOLJET_DEPLOYMENT_URL": "https://your-tooljet-instance.com"
}
}
}
}
VariableRequiredDescriptionDefault
TOOLJET_DEPLOYMENT_URLYesURL of your ToolJet instancehttp://localhost:3000
TOOLJET_PATYesThe personal access token from Step 1

Most deployments serve the API and the UI from the same origin, so TOOLJET_DEPLOYMENT_URL covers both and is the only URL you need. It defaults to localhost, so you can omit it only when you are running ToolJet locally on the default ports.

If your API and UI are on different origins

Add TOOLJET_URL to the env block with the API origin. The common case is a local ToolJet checkout, where the frontend runs on :8082 and the backend on :3000: point TOOLJET_DEPLOYMENT_URL at the frontend and TOOLJET_URL at the backend. An explicit TOOLJET_URL always wins over the fallback.

Treat your token as a secret

The agent acts with the permissions of the token's owner in that workspace, so create the token in the workspace you actually want the agent to touch rather than in one with broader access. The token sits in plain text in your client's configuration file, so keep that file out of version control, and always use an https:// instance URL, since the token is sent to your instance on every call.

If your client supports skills, also load the skill/ directory from the clone. Without it the tools still work, but the agent has to infer ToolJet's app model instead of following the documented build recipe.

Restart your client after saving the configuration.

Step 4: Verify the Connection​

Ask your agent whether it can reach ToolJet:

Can you connect to ToolJet?

The agent should confirm the connection and name the workspace your token is pinned to.

Once that works, try a build:

Build me a tickets dashboard on my ToolJet DB.

The agent should inspect your datasources, create an app, add a query, bind a table to it, and hand back links for editing and testing the finished application.

Troubleshooting​

If something doesn't work, see Troubleshooting.



Need Help?​