Build an Equipment Request App with Appsmith MCP

Posted by Appsmith TeamPublished on Dec 02, 2026
10 min read
Share this article
Illustration of a laptop, monitor, headset and parcel passing through an approval gate topped by a checkmark badge

Equipment requests are a classic internal-tool job: someone needs a laptop, a monitor or something more specialised, a manager or IT has to look at it, and the details must be easy to find later. In this tutorial you will build that app by describing it to an AI client connected to Appsmith through the Model Context Protocol (MCP).

The tutorial leans on the MCP capabilities listed in the Appsmith v2.7.0 release notes: conditional forms, navigation that passes the selected row’s ID, and approval before widgets are removed. It covers one app and nothing else.

Read this first: all names, emails and request IDs below are fictional sample data. The prompts and the expected behavior are written from the MCP Server documentation and the v2.7.0 release notes. We did not record a demo run for this post, so it contains no screenshots, and you should confirm each result in your own editor. MCP Server is in beta, so tool names and behavior can change.

What you will build

A small app with two pages:

  • Request equipment page: a form with requester email, equipment type, quantity, needed-by date and a justification field.

  • A Requests table on the same page listing the sample requests, plus a Details button that opens the Request Details page for the selected row.

Four behaviors matter, and each gets its own step:

  1. The Justification field appears and is required only when Equipment type is “Specialty hardware”.

  2. Submit stays disabled until every required control is valid.

  3. The Details button opens the detail page with the selected request’s ID in the URL.

  4. Removing a widget through MCP needs your approval before it happens.

Before you start

MCP setup is the same for any app. The steps below summarize the official MCP Server guide, which is the source of truth.

  • An administrator enables MCP Server. It is off by default. On Business Cloud go to Admin Settings → Organisation → MCP Server (BETA). On a self-hosted Enterprise instance go to Admin Settings → Instance → MCP Server (BETA), then Save & Restart.

  • You create your own key. In Admin Settings under Profile, open MCP keys, click Create Key, name it and choose how long it stays valid (30 to 365 days). Appsmith shows the key once, so copy it or the client configuration straight away.

  • Your client must send the key as a bearer token. Appsmith MCP Server does not offer an OAuth sign-in flow. The guide lists Cursor, VS Code, Windsurf, Claude Code and Codex CLI as supported, and ChatGPT conversations as not supported.

  • A datasource you can write to. This tutorial assumes a PostgreSQL datasource connected in your workspace. Use a development database, not production.

For Cursor, the configuration the guide shows looks like this. Replace the two placeholders with the values from the key window, and keep the key out of source control:

{
  "mcpServers": {
    "appsmith": {
      "url": "https://YOUR_APPSMITH_DOMAIN/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_KEY"
      }
    }
  }
}

The key authenticates the client as you. It does not add permissions, so the client can only reach the organizations, workspaces, apps and actions your own account can. Use one key per client and revoke it if it might have leaked.

Create the sample data

Create this table in your development database. Every row is made up:

CREATE TABLE equipment_requests (
  id            TEXT PRIMARY KEY,
  requester     TEXT NOT NULL,
  equipment     TEXT NOT NULL,
  quantity      INTEGER NOT NULL DEFAULT 1,
  needed_by     DATE,
  justification TEXT,
  status        TEXT NOT NULL DEFAULT 'Pending'
);

INSERT INTO equipment_requests (id, requester, equipment, quantity, needed_by, justification, status) VALUES
  ('REQ-1001', 'alex.rivera@example.com', 'Laptop', 1, '2026-12-15', NULL, 'Pending'),
  ('REQ-1002', 'sam.okafor@example.com', 'Monitor', 2, '2026-12-18', NULL, 'Approved'),
  ('REQ-1003', 'jo.lindqvist@example.com', 'Specialty hardware', 1, '2027-01-08', 'Needs a GPU workstation to profile the nightly build.', 'Pending');

Equipment types for the form’s select: Laptop, Monitor, Headset, Standing desk and Specialty hardware. “Specialty hardware” is the choice that will need a justification.

Step 1: Build the request form

Start with the layout. Ask your client for the page and the form fields, and name the datasource so it does not have to guess:

In my Appsmith workspace, create an app called "Equipment Requests" with a page called "Request equipment".

On that page add a form with:
- Requester email (input, email format)
- Equipment type (select with options: Laptop, Monitor, Headset, Standing desk, Specialty hardware)
- Quantity (input, whole number, default 1)
- Needed by (date picker)
- Justification (multi-line input)
- A Submit button

Also add a table named "Requests" bound to a query that reads equipment_requests from my PostgreSQL datasource.

What to expect. The client builds the app and its widgets, then reports what it created. Check the page in the editor: the form widgets should exist with the names and options you asked for. Note that build_application also deploys the first version of a new app so that its viewer URL works; every later deploy goes through the prepare_publish and confirm_publish approval flow. Point the datasource at development data while you experiment.

Appsmith can also prefill the requester email with the signed-in user’s email. Add this to the prompt if you want it: “Default the requester email to the current user’s email.” These values come from appsmith.user, so each viewer sees their own.

Step 2: Show and require the justification only for one choice

This is the conditional-form capability from v2.7.0. You describe the rule in plain language, and Appsmith turns it into widget settings that it validates before saving. You do not write {{ }} yourself, and the client cannot either.

On the "Request equipment" page, make the Justification field visible only when the Equipment type select is "Specialty hardware".

Make it required in that same case. For every other equipment type it should stay hidden and not required.

What to expect. The client sets a Visible condition and a Required condition on the Justification widget, both checking that the select has the value “Specialty hardware”. Verify in the editor and in preview:

  • With Laptop selected, the Justification field is not shown.

  • Switch to Specialty hardware: the field appears and is marked required.

  • Switch back to Laptop: the field is hidden again, so it cannot block the form.

If the client says it cannot do something, read the reason. Appsmith refuses a change rather than saving it partly. The documented limits include no raw JavaScript in widget properties, no curly braces inside condition text, no property that reads itself, and every referenced widget must already exist.

Step 3: Keep Submit disabled until the form is valid

Disable the Submit button until the form is valid:
- Requester email is filled in and is a valid email
- Equipment type is selected
- Quantity is filled in
- Needed by is filled in
- Justification is valid too, but only when it is visible (Equipment type is "Specialty hardware")

What to expect. A submit button can stay disabled until up to 10 form controls are valid, which is plenty here. In preview, check the combinations rather than trusting the happy path:

State of the formExpected Submit button
Empty formDisabled
Email, Laptop, quantity 1 and a date filled inEnabled
Equipment type changed to Specialty hardware, Justification emptyDisabled
Justification filled inEnabled
Equipment type changed back to LaptopEnabled again, even if Justification still holds text

Submitting itself needs a query that inserts the row. Writing that query is outside this tutorial, so add or review it in the editor and run it from the button’s click event. Keep in mind that when a client runs an action that can modify data, MCP uses the same two-step approval flow described below.

Step 4: Open a detail page with the selected request ID

Now connect the list to a detail page. MCP navigate events can pass URL parameters, and one of the documented value sources is a column of a table’s selected row.

Add a second page to the app called "Request Details".

On the "Request equipment" page, add a "Details" button next to the Requests table. When it is clicked, open the "Request Details" page and pass a URL parameter called id with the id column of the Requests table's selected row.

What to expect. The client creates the page and wires the button’s click event to navigate to it, with id set from the selected row. Navigation opens the page in the same window. Two rules from the guide are worth knowing: parameter names are plain identifiers, and a page name that reads as an IP address or as localhost is refused, so keep page names ordinary words.

The page that opens reads the value with {{appsmith.URL.queryParams.id}}. Use a prompt like this to build the detail view:

On the "Request Details" page, show the request whose id equals the "id" URL parameter: requester, equipment, quantity, needed by, justification and status in a read-only layout. Add a Back button that returns to "Request equipment".

How a query reads the URL parameter depends on what your client can bind. If the client reports that it cannot filter the query by a URL parameter, bind the query’s WHERE id = value to {{appsmith.URL.queryParams.id}} in the editor. The check is simple: select REQ-1003 in the table, click Details, and the detail page should show the Specialty hardware request with its justification. Selecting REQ-1001 should show a request with no justification.

Where you stay in control: removing a widget needs approval

Building is the easy part to hand to a client. Deleting is where you want a human in the loop, and Appsmith’s MCP server is designed that way. In v2.7.0, removing widgets through MCP now needs the user’s approval, in the same way that deleting a page or a query already did.

Suppose the form has a leftover “Notes” input you no longer need. You ask:

Remove the "Notes" input from the Request equipment form.

Here is the documented behavior. The client does not delete anything in a single step:

  1. It calls prepare_remove_widgets. This lists every widget that would be removed, including everything inside a container, so you can review the full extent of the removal.

  2. Your client asks you to approve the confirm_remove_widgets step. Clients such as Codex and the ChatGPT desktop app use the tool annotations to decide when to ask. Claude clients keep their own approval flow. When the client supports MCP elicitation, Appsmith also shows its own approval prompt with the exact scope of the change.

  3. Only after you approve does confirm_remove_widgets run and the widgets are removed.

Some details that keep this safe. One removal can name up to 20 widgets, and each named widget goes together with everything inside it. patch_widgets does not remove widgets: it refuses a remove operation and points the client back to prepare_remove_widgets. So there is no side door. Widgets on a page built from sections and zones cannot be removed with this pair of tools.

If the client asks to remove a container, read the prepared list before approving. A request to “remove the Notes input” should list one widget. If the list also names the Justification field or the Submit button, decline and tighten the prompt.

The same two-step pattern covers other destructive work: deleting a page, query, API or JS object, replacing a JS object’s code that was written in the editor, deploying an app, rolling back a change, committing to Git, and running an action that can modify data. Non-destructive edits, such as adding a widget or a query, run without that prompt, but they apply to the unpublished version of an existing app.

Before you share the app

  • Walk through all three form states in preview: Laptop, Specialty hardware without a justification, and Specialty hardware with one.

  • Select each sample row and confirm the detail page shows the matching request.

  • Read the detail page’s query and your insert query yourself. Do not put secrets in JS objects; MCP clients can read JS object source when MCP JS objects are enabled.

  • Publish through the approval flow (prepare_publish, then confirm_publish), not by asking the client to bypass it.

Where to go next

Everything above is built from documented MCP behavior, so the useful next step is to try it against a development workspace and tighten the prompts to match what your client does. Read the full MCP Server (BETA) guide for supported clients, limits and approvals, and the v2.7.0 release notes for the full list of what changed.

Found a gap between this walkthrough and what you see in your own editor? Tell us through Appsmith support and name the feature as MCP Server (BETA). Never include an MCP key in a ticket.