Skip to Content
dropshelf

Use an MCP server's data in a drop

Connect to an MCP server your admin has added and call its tools from a drop, so each visitor sees what their own access returns.

A dropshelf drop can show data from an MCP server your company runs, such as a ticket system or a metrics service. The drop names the tool calls it makes, and each call runs with the visitor's own connection to the server. This page is for the member who builds such a drop, and for its visitors.

Prerequisites

  • Your instance has connectors turned on, and an admin has added the MCP server as a source. Turn on optional features describes both.
  • You have an account on the MCP server, because you sign in to it yourself. A server that asks nobody to sign in needs no account and no connecting.

Connect to the server

Each member connects once. The server then decides what that member may see, exactly as it does anywhere else they use it.

  1. Open the account menu and select Connections. Data sources lists every source you may use in a drop: the databases an admin granted you and every MCP server. Only a server that signs you in has a Connect button.
  2. Select Connect beside the server. Either the server's own sign-in page opens and returns you to dropshelf, or dropshelf asks for a token that you paste.

Select a source's name to see how drops read it and what you may read: a database's schemas and the grant that names you, or a server's tools.

The token stays sealed on the instance, and dropshelf never shows it again. From a terminal, dropshelf connections lists the servers. dropshelf connections connect <source> opens the browser to sign in, and with --token it asks for a token in the terminal.

Add tool calls to a drop

A drop never chooses a tool from its page. You declare each call in the folder you publish, and the page runs it by name:

  1. Put a file named _dropshelf/queries.yaml at the root of the folder. Each query names its source, one tool the source allows, and the arguments the tool takes:

    queries:
      open_tickets:
        source: tickets
        tool: search_tickets
        args:
          status: open
          team: "{{team}}"
        params:
          team: { type: enum, values: [support, sales], default: support }
  2. In the page, run the query through the in-page API:

    const answer = await dropshelf.connect('tickets').run('open_tickets', { team: 'sales' });
    const tickets = answer.result;
  3. Publish the folder. Publishing needs no connection of your own: each visitor's call runs with their access.

A visitor can change only the parameters the query declares. A {{name}} placeholder that is a whole argument takes a parameter of any type. Inside longer text, a placeholder takes an enum, a number, a boolean, a date or a timestamp, never free text. Build on the drop platform has the full rules.

To find the tools a source allows and the arguments each takes, ask your agent. Over MCP it has list_sources and describe_source, and run_query to try a call.

Open a drop that calls a server

Every visitor sees what their own connection to the server returns, the drop's owner included. Two members who open the same drop can see different data.

  1. Open the drop in the dashboard.
  2. If the drop shows no data, select Data in the toolbar under the drop. It lists each server the drop calls and whether you are connected.
  3. Select Connect beside a server you are not connected to. dropshelf takes you to connect and brings you back to the drop.

A page can read which access answered from the access field of each answer. A call made by a visitor who is not connected is refused with the code connect_required.

When a query stops

A query stops for everyone when the source no longer allows its tool, or when an admin denies it. The page's call is then refused with the code blocked or denied, and the drop's owner and editors are told in the bell. A visitor whose own connection needs a new sign-in gets reconnect_required and signs in again on Connections.

See the drop's queries

To see the calls of the live version, open the drop, select the Settings tab and, under Data, open Connected sources. Each query sits under its source and shows its tool and its state.

Next steps

Last updated .

On this page