# Langflow

Source: https://pushary.com/docs/agents/guides/langflow
Last updated: 2026-10-04

> Connect a Langflow agent to Pushary with the MCP Tools component, so it can send you updates and ask you questions you answer on your phone.

Langflow agents can use Pushary through Langflow's MCP Tools component. MCP (Model Context Protocol) is the standard way AI apps call outside tools. You store your Pushary key as a Langflow credential, add Pushary as an MCP server, and connect it to an Agent. The agent can then send you updates and ask you questions on your phone.

This is the server URL you enter in Langflow:

```text
https://pushary.com/api/mcp/mcp
```

The agent chooses when to call a tool. This connection does not hold a separate action in a flow until you approve it.

## Connect Pushary [#connect-pushary]

You need a Pushary account with a connected phone and an API key from [Settings > API keys](https://pushary.com/dashboard/agent/settings). Use the key for the account that owns your phone. Do not put the key in a flow, a prompt or the server URL.

<Steps>
  <Step>
    ### Store your key as a credential [#store-your-key-as-a-credential]

    In Langflow, open **Settings > Global Variables > Add New**. Name the variable `PUSHARY_BEARER` and choose **Credential**. Set its value to `Bearer ` followed by your key, then save:

    ```text
    Bearer pk_xxx.xxx
    ```
  </Step>

  <Step>
    ### Add the MCP server [#add-the-mcp-server]

    Open **Settings > MCP Servers > Add MCP Server** and choose **Streamable HTTP/SSE**. Name the server `pushary` and set the URL to `https://pushary.com/api/mcp/mcp`.
  </Step>

  <Step>
    ### Add the header [#add-the-header]

    Under **Headers**, set the key to `Authorization` and select `PUSHARY_BEARER` as its value. Save the server. Langflow lists the Pushary tools.
  </Step>

  <Step>
    ### Build the flow [#build-the-flow]

    In a flow, add **Chat Input**, **Agent** and **Chat Output**. Choose a model provider for the Agent.
  </Step>

  <Step>
    ### Give the Agent the Pushary tools [#give-the-agent-the-pushary-tools]

    Drag `pushary` from the **MCP** sidebar onto the canvas. Turn on **Tool Mode** on the MCP Tools component, and connect its **Toolset** output to the Agent's **Tools** input.
  </Step>

  <Step>
    ### Tell the Agent when to ask [#tell-the-agent-when-to-ask]

    In the Agent's instructions, say when to use `ask_user` and `send_notification`. For a yes/no question, use `ask_user` with `type: "confirm"` and wait for the answer. Treat no answer, a decline or an expired question as no approval.
  </Step>

  <Step>
    ### Test it in the Playground [#test-it-in-the-playground]

    Ask the agent to send a harmless test notification. Then ask it to send a yes/no question through `ask_user`, and answer it on your phone. The answer shows in Langflow.
  </Step>
</Steps>

<Callout type="info">
  An Agent instruction guides the agent and enforces nothing. If an approval must protect a deployment, a payment or another business action, bind the exact action and recipient in your application, and verify the Pushary decision before you run that action. Partner workflows that address customers use the Partner server API and customer IDs instead of this personal MCP connection.
</Callout>

## Why does the test fail? [#why-does-the-test-fail]

* **The result shows `sent: 0` or a `no_recipients` status.** No phone is connected. Connect one in Pushary under **Settings > Connections**.
* **Langflow lists the tools, but a call returns `401 Unauthorized`.** Check that `PUSHARY_BEARER` holds your current key with the `Bearer ` prefix. Langflow can list the tools without a valid key, so a tool list alone does not prove the key works.

See [Langflow's MCP client guide](https://docs.langflow.org/mcp-client) for its current editor controls.

## Next steps [#next-steps]

<Cards>
  <Card title="Set up your phone" description="Install the Pushary app and turn on notifications so questions reach you." href="/docs/agents/receiving-notifications" />

  <Card title="Tools reference" description="What each Pushary tool does, its inputs and what it returns." href="/docs/agents/reference/tools" />
</Cards>