Skip to content

MCP Integration

The fyrn MCP server lets AI agents manage your integrations through natural conversation. Agents can list flows, create new integrations, deploy, monitor, and troubleshoot — all through the Model Context Protocol.

The Model Context Protocol (MCP) is an open standard for connecting AI models to external tools and data sources. fyrn’s MCP server exposes 41 tools that give AI agents structured access to the platform.


Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

claude_desktop_config.json
{
"mcpServers": {
"fyrn": {
"command": "npx",
"args": ["@fyrn/mcp-server"],
"env": {
"FYRN_API_URL": "https://api.fyrn.ai",
"FYRN_API_KEY": "sk-your-agent-key"
}
}
}
}

Create an agent API key in the fyrn web UI under Settings → Agent Keys. Each key has:

  • Permission tier (1, 2, or 3) — controls which tools are available
  • Rate limit — per-second and daily quotas
  • Allowed tools — optional whitelist of specific tools

TierLabelWhat agents can do
1UseList flows, search, inspect status, trigger flows, view schedules, test adapters, view lookups
2BuildEverything in tier 1, plus: create instances, create flows, deploy, create adapters, create lookups, start batches
3ManageEverything in tier 2, plus: edit flows, pause/resume, retry messages, manage healing, update schedules, delete lookups

Tools that create or modify resources (tier 2-3) require human approval:

  1. Agent calls the tool → server returns approval_required with an action ID
  2. Human reviews and approves in the web UI
  3. Agent re-calls with approval_id → action executes

This ensures agents can’t make destructive changes without oversight.


ToolDescription
list_flowsList all flows with status and health
search_flowsSearch flows by name or description
get_flow_statusDetailed flow status with metrics
trigger_flowSend a payload through a flow
list_published_apisList published API endpoints
call_published_apiCall a published API endpoint
list_schedulesList scheduled flows
get_batch_statusGet batch job progress
list_batch_jobsList recent batch jobs
list_adaptersList custom adapters
test_adapterTest an adapter with sample input
list_lookupsList lookup tables
get_lookupGet a lookup table with entries
export_batch_errorsExport batch job errors
get_api_specGet OpenAPI spec for a published API
get_messagesView message logs (requires tier 3 at runtime)
ToolApprovalDescription
list_catalogNoBrowse connector catalog
create_instanceYesCreate connector instance
test_instanceNoTest connector connection
create_flowYesAI-generate and create a flow
preview_flowNoPreview transform without delivering
clone_flowYesClone a flow to another environment
deploy_flowYesDeploy a draft flow
trigger_scheduleYesManually trigger a schedule
start_batchYesStart a batch job
create_adapterYesCreate a custom adapter
create_lookupYesCreate a lookup table
set_lookup_entryYesAdd/update lookup entry
import_lookup_csvYesBulk import lookup entries
retry_batch_failed_recordsYesRetry failed batch records
create_published_apiYesCreate a published API
ToolApprovalDescription
edit_flowYesEdit flow YAML, name, description
pause_flowNoPause an active flow
resume_flowNoResume a paused flow
retry_messageNoRetry a failed message
list_healing_eventsNoView self-healing events
update_scheduleYesUpdate cron, timezone, enabled
update_adapterYesUpdate adapter code
delete_lookupYesDelete a lookup table
delete_lookup_entryYesRemove a lookup entry
approve_healingYesApprove a healing fix

See MCP Tools Reference for complete parameter details and JSON examples.


Here’s how an agent might build and deploy a flow:

User: Create a flow that syncs new Shopify orders to our NetSuite ERP

Agent: I’ll create that integration. Let me generate the flow… calls create_flow with description

Agent: I’ve generated a flow that maps Shopify order fields to NetSuite sales orders. Here’s the YAML — would you like me to deploy it?

User: Yes, deploy it

Agent: calls deploy_flow — requires approval

Agent: The deployment needs your approval. Please review and approve in the fyrn dashboard.

(Human approves)

Agent: calls deploy_flow with approval_id — deployed!

Agent: Your flow is live. Webhook URL: https://api.fyrn.dev/webhooks/receive/abc123. New Shopify orders will automatically sync to NetSuite.


  • PII filtering: Agent responses automatically redact sensitive config fields and PII
  • Rate limiting: Per-second and daily quotas per agent key
  • Loop detection: Repeated identical calls are blocked
  • Audit logging: Every tool call is recorded with agent key, input, output, and duration
  • Sandbox mode: Optional sandbox mode blocks deploy_flow entirely