FlowTruxFlowTrux/Docs
Docsmcp

MCP Servers Overview

How FlowTrux uses Model Context Protocol servers to connect AI agents with external tools

MCP (Model Context Protocol) is a standardized way for AI models to discover and use external tools. FlowTrux runs MCP servers as child processes that communicate over JSON-RPC via stdio, giving Agent nodes access to tools like Slack messaging, database queries, file operations, and more.

Architecture

Each MCP server runs as an isolated child process on the FlowTrux server. When an Agent node needs to call a tool:

  1. FlowTrux starts (or reuses) the MCP server process.
  2. The server advertises its available tools and their parameter schemas.
  3. The AI model decides which tool to call and with what parameters.
  4. FlowTrux sends the tool call to the server via JSON-RPC over stdin/stdout.
  5. The server executes the tool and returns the result.
  6. The result is passed back to the AI model.

Connection Pool

MCP server connections are pooled at the workspace level:

  • Connections are reused across concurrent workflow executions within the same workspace.
  • Idle connections are automatically cleaned up after 5 minutes.
  • The pool holds a maximum of 50 entries.
  • Each workflow execution gets its own MCPManager scoped to workspace-configured servers.

This means the first execution may take slightly longer to start (while connections are established), but subsequent executions reuse existing connections.

Built-in Servers

FlowTrux includes the following built-in MCP servers:

ServerDescriptionDocumentation
SlackSend messages, manage channels, upload filesSlack
TelegramSend messages and documents via Telegram BotTelegram
Google WorkspaceSheets, Gmail, Calendar, DriveGoogle Workspace
StocksFinancial market data (Polygon.io, Finnhub)Stocks
FilesOrganization file storageFiles
FilesystemLocal server disk file operationsFilesystem
SSHRemote server command execution and file transferSSH
TwilioSMS, voice calls, WhatsApp messagingTwilio
YouTrackJetBrains YouTrack issue trackingYouTrack
PDFPDF document generation (markdown, reports, tables)PDF Generator
NotionPages, databases, blocks, commentsNotion
GitHubIssues, PRs, repos, Actions workflowsGitHub
JiraIssues, projects, sprints, transitionsJira
WialonTelematics: units, messages, geofences, reports, ACLWialon

External Servers

You can add any MCP-compatible server. See External Servers for details.

Setup

1. Add an MCP Server

  1. Navigate to Settings > MCP Servers (requires OWNER role).
  2. Click Add Server.
  3. Choose a built-in server type or select External for a custom server.
  4. Enter the required configuration (API keys, tokens, etc.).
  5. Click Save.

All credentials are encrypted before being stored in the database.

2. Assign to a Workspace

MCP servers are not automatically available in all workspaces:

  1. Go to Settings > Workspaces.
  2. Click Edit on the target workspace.
  3. Under MCP Servers, select which servers this workspace can use.
  4. Click Save.

3. Use in a Workflow

Once assigned to a workspace, MCP tools become available in:

  • Agent nodes -- Add tools in the Inspector panel so the AI can call them.
  • Action nodes -- Select "MCP" as the action type to call a specific tool directly.

Security

  • Each MCP server runs in its own child process, isolated from other servers.
  • Credentials are injected as environment variables into the child process, never passed through the AI model.
  • Server processes receive a 3-stage shutdown sequence (stdin close, SIGTERM, SIGKILL) to prevent zombie processes.
  • File and organization data are scoped -- servers can only access resources belonging to their organization and workspace.

Plan Limits

Your organization's plan may limit the number of MCP server configurations. Check Settings > Plan & Usage to see your current limits.