Skip to content
Docs

MCP servers

The MCP servers screen in the Services group manages MCP server connections: remote Model Context Protocol servers whose tools your agents and flows can call. You create the server once, authorize it, discover and enable its tools, then carry it into a flow with the MCP Tools node (for an agent) or the MCP Call node (as an ordinary node in the flow).

The list shows every server with its endpoint, transport, and whether it is active, split into Enabled and Disabled views.

The MCP servers list with New MCP server and the Enabled and Disabled views: three servers with their endpoint, http transport, tool count and Active state
The MCP servers list with New MCP server and the Enabled and Disabled views: three servers with their endpoint, http transport, tool count and Active state

Click New MCP server and fill in the form:

Field Required Description
Name Yes A descriptive name for this connection.
Endpoint URL Yes The server’s MCP endpoint. Must be a public http(s) URL; private and loopback addresses are rejected.
Transport Yes Streamable HTTP (the default) or HTTP + Server-Sent Events. stdio is not offered: it would run local processes, which is unsafe in a shared platform.
Connection No The saved connection that authorizes calls to the server. Usually filled in for you by Connect with OAuth. Takes precedence over the auth token secret.
Auth token secret No Legacy: a secret holding a static bearer token. Ignored when a connection is selected.
Options No Key/value overrides such as cache_duration (minutes, 0 disables caching) or custom headers.
Active No When off, the server is ignored during agent runs.
Enabled tools No The tools exposed to agents. Populated after you run List tools.
The Create MCP server form: Name, Endpoint URL, Transport, Connection, Auth token secret, Options, the Active toggle and Enabled tools
The Create MCP server form: Name, Endpoint URL, Transport, Connection, Auth token secret, Options, the Active toggle and Enabled tools

How you authorize depends on what the server supports.

For a server behind OAuth, open the saved server and click Connect with OAuth. Publicus contacts the server to discover how it wants to be authorized, registers a client with the server’s authorization server where supported, and sends you there to approve access. The result is an ordinary connection, named after the server, with the same consent step, automatic token refresh, and health tracking as every other connection. Once a connection exists, the same button reads Reconnect with OAuth and starts a fresh grant.

A saved MCP server's page with Connect with OAuth, List tools and Delete in the header, then its Name, Endpoint URL, Transport, Connection, Auth token secret, Options, Active and Enabled tools
A saved MCP server's page with Connect with OAuth, List tools and Delete in the header, then its Name, Endpoint URL, Transport, Connection, Auth token secret, Options, Active and Enabled tools

The Auth token secret field is marked Legacy: it covers servers that hand you a long-lived bearer token instead of an OAuth sign-in. Store the token as a secret and select it here. Publicus reads it from the secret store only at the moment it calls the server; it never appears in the connection record, flow instructions, or run logs. When a connection is selected, this field is ignored.

If the server is open and needs no authorization, leave both fields empty.

A new server has no tools until you discover them:

  1. Open the server and click List tools. Publicus calls the server and records each tool’s name, description, and input schema; a notification reports how many were discovered.
  2. Under Enabled tools, check the tools you want agents to call, then save.
Enabled tools after List tools: four discovered tools, three checked and one left off
Enabled tools after List tools: four discovered tools, three checked and one left off

Newly discovered tools start disabled: a tool reaches agents only after you enable it. You can run List tools again at any time. Your enabled selections are preserved, and a tool the server no longer offers stays in the list but stops reaching agents, rather than being deleted, so a temporary outage does not silently drop your configuration.

Add an MCP Tools node to the flow, select the server in its mcpServer field, and connect its output to the Agent node’s tool handle. The agent then sees every tool that is enabled on the server and not switched off on the node, and calls them when it decides to.

The node adds flow-level control on top of the server’s enabled list:

  • Purpose: one or two sentences on why this agent has these tools (for example “HubSpot CRM: look up the customer and their deals before answering”). It is shown to the model with every tool from this server, which is where the model decides what to call.
  • Per-tool toggles and guidance: the node’s tool table is seeded from the server, so you switch tools off rather than add them. A tool with no row counts as enabled, which keeps tools the server adds later available without revisiting every flow. Switch off what the agent does not need: every offered tool costs prompt budget, and a long list measurably worsens tool choice.

If the server is unreachable during a run, its tools are omitted and the agent continues with whatever other tools it has; one server being down does not fail the run. An inactive server exposes no tools at all.

Calls to MCP tools count as external writes, because the remote tool is not inspected. Under the agent’s approval mode: a Read-only agent is not offered them at all, Ask first and Auto-write agents pause each call for approval, and Autopilot runs them without asking. The node’s Approval setting can pin this one node to always ask, even on Autopilot, or never ask.

The MCP Call node (on the API & integrations shelf) is the deterministic counterpart: it pins a single tool on a server, with arguments you supply, and runs it in line like any other integration call. No model is involved, which suits scheduled syncs and data pipelines. Its output is {"tool": name, "result": ...}, with a JSON-shaped result decoded so downstream expressions can reach into it.

Run the flow with Run by hand and give the agent a prompt that needs one of the server’s tools. If the call pauses for approval, approve it in Needs you or on the run report. Open the agent’s conversation afterward to confirm the tool was called and returned a result.

  • The agent seems stuck. The run is most likely waiting on a pending approval. Open Needs you and decide the request; the agent continues immediately.
  • List tools fails. Confirm the endpoint is reachable and the authorization is valid: reconnect with OAuth, or check that the selected secret holds a working token. The error notification shows the reason the server returned.
  • The agent has no MCP tools. Make sure at least one tool is enabled on the server, the server is Active, the node’s output is wired to the agent’s tool handle, and the tool is not switched off on the node.
  • Tools disappeared after re-listing. A tool the server no longer offers stays in the list but stops reaching agents. Re-list once the server provides it again.