Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP port (only used when MCP_MODE=http)3000
MCP_MODENoTransport mode: stdio or httpstdio
LOG_LEVELNoLogging level (debug, info, warn, error)info
AUTH_TOKENNoAuthentication token for HTTP mode
LANGFLOW_API_KEYYesAPI key for Langflow authentication
LANGFLOW_BASE_URLYesBase URL of the Langflow instancehttp://localhost:7860
LANGFLOW_CONSOLIDATED_TOOLSNoSet to 'true' to enable consolidated mode (27 tools instead of 209)false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_flowA

Create a new Langflow workflow with optional configuration and organization.

Purpose: Initialize a new flow in your Langflow instance. Use this to create workflows from scratch or with predefined structure. The flow can be organized into folders and configured with initial data including nodes, edges, and component settings.

Parameters:

  • name (required, string, max: 255 chars): The display name of the flow (must be unique within folder)

  • description (optional, string): Brief explanation of flow's purpose and functionality

  • data (optional, object): Initial flow configuration containing nodes, edges, and component definitions

  • folder_id (optional, UUID string): ID of parent folder for organization (use list_folders to get valid IDs)

Returns: FlowRead object containing:

  • id (UUID): Newly created flow's unique identifier (save this for future operations)

  • name (string): Flow display name

  • description (string): Flow description

  • folder_id (UUID): Parent folder if specified

  • user_id (UUID): Owner user identifier

  • created_at, updated_at (ISO timestamps): Creation and modification timestamps

  • data (object): Complete flow structure with nodes and edges

Usage Examples:

  1. Create minimal flow: { name: "My Workflow" }

  2. Flow with description: { name: "Data Pipeline", description: "Processes user data" }

  3. Flow in folder: { name: "API Flow", folder_id: "folder-uuid-here" }

  4. Flow with structure: { name: "Chat Bot", data: { nodes: [...], edges: [...] } }

Best Practices:

  • Use descriptive names that indicate flow purpose (e.g., "Customer Onboarding" not "Flow1")

  • Add descriptions to document flow functionality for team collaboration

  • Organize related flows using folder_id for better project management

  • Start with minimal configuration, then use update_flow to add complexity

  • Validate data structure before passing complex flow configurations

Common Errors:

  • "Flow name already exists": Choose a unique name or specify different folder_id

  • "Invalid folder ID": Ensure folder_id is valid UUID from list_folders

  • "Name is required": Must provide name parameter

  • "Data validation failed": Check that data object follows Langflow schema structure

  • "Unauthorized": Verify LANGFLOW_API_KEY is valid

Related Tools:

  • list_flows: View all created flows

  • update_flow: Modify flow after creation

  • get_flow: Retrieve full flow details by ID

  • upload_flow: Import flow from JSON file instead of creating from scratch

  • create_folder: Create folders before organizing flows

list_flowsA

List Langflow flows with flexible filtering and pagination.

Purpose: Retrieve flows from your Langflow instance with optional pagination and organization filters. Essential for discovering available workflows, managing large flow collections, and browsing flows within specific folders.

Parameters:

  • page (optional, number, default: 1, min: 1): Page number for pagination

  • size (optional, number, default: 50, max: 100): Number of flows per page

  • folder_id (optional, UUID string): Filter flows within a specific folder

  • components_only (optional, boolean, default: false): Return only component flows (reusable flow components)

  • get_all (optional, boolean, default: true): Retrieve all flows ignoring pagination (use with caution for large datasets)

Returns: Array of FlowRead objects containing:

  • id (UUID): Unique flow identifier

  • name (string): Flow display name

  • description (string): Flow purpose description

  • folder_id (UUID): Parent folder if organized

  • user_id (UUID): Owner user identifier

  • created_at, updated_at (ISO timestamps): Flow lifecycle dates

  • data (object): Flow configuration with nodes, edges, and component definitions

Usage Examples:

  1. List recent flows (default): {}

  2. Paginate through flows: { page: 2, size: 20 }

  3. Flows in specific folder: { folder_id: "uuid-here" }

  4. Get all component flows: { components_only: true, get_all: true }

Best Practices:

  • Use pagination (page/size) for better performance instead of get_all

  • Filter by folder_id when working within organized projects

  • Keep page size <= 50 for optimal response times

  • Cache folder_id values to reduce API calls

  • Use get_all sparingly, only when you need complete dataset

Common Errors:

  • "Page size cannot exceed 100": Reduce size parameter to 100 or less

  • "Invalid folder ID format": Ensure folder_id is a valid UUID (use list_folders to get valid IDs)

  • Empty results: Check if folder_id exists or try removing filters

  • Connection timeout: Reduce page size or enable pagination instead of get_all

Related Tools:

  • create_flow: Create new flows after listing existing ones

  • get_flow: Retrieve complete flow details by ID from this list

  • list_folders: Find valid folder_id values for filtering

  • update_flow: Modify flows found in this list

  • delete_flow: Remove flows identified in this list

get_flowA

Retrieve complete details and configuration of a specific flow.

Purpose: Fetch comprehensive information about a flow including its full node graph, component configurations, connections, and metadata. Essential for inspecting flow structure, debugging workflows, and preparing flows for modification or execution.

Parameters:

  • flow_id (required, UUID string): The unique identifier of the flow to retrieve (obtained from list_flows or create_flow)

Returns: FlowRead object containing:

  • id (UUID): Flow's unique identifier

  • name (string): Flow display name

  • description (string): Flow purpose description

  • folder_id (UUID): Parent folder identifier if organized

  • user_id (UUID): Owner user identifier

  • created_at, updated_at (ISO timestamps): Flow lifecycle timestamps

  • data (object): Complete flow structure including:

    • nodes (array): All component nodes with their configurations

    • edges (array): Connections between nodes

    • viewport (object): Canvas positioning data

    • description (string): Flow-level documentation

Usage Examples:

  1. Get flow details: { flow_id: "550e8400-e29b-41d4-a716-446655440000" }

  2. Inspect before modification: { flow_id: "flow-uuid-from-list" }

  3. Debug flow structure: { flow_id: "failing-flow-uuid" }

Best Practices:

  • Use list_flows first to discover available flow_id values

  • Cache flow data locally to reduce API calls when repeatedly accessing same flow

  • Check updated_at timestamp to detect if flow changed since last retrieval

  • Inspect data.nodes to understand flow's component structure

  • Review data.edges to trace data flow between components

  • Validate flow_id format (must be valid UUID) before making request

Common Errors:

  • "Flow not found": flow_id doesn't exist or was deleted (verify with list_flows)

  • "Invalid UUID format": flow_id must be valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000")

  • "Unauthorized": API key lacks permission to access this flow

  • "Flow ID is required": Must provide flow_id parameter

  • Connection timeout: Check Langflow instance availability and network connectivity

Related Tools:

  • list_flows: Find available flow_id values

  • update_flow: Modify flow configuration after retrieval

  • run_flow: Execute flow after inspecting its structure

  • build_flow: Compile and validate flow structure

  • delete_flow: Remove flow after inspection confirms it's no longer needed

update_flowA

Modify existing flow properties, configuration, or organization.

Purpose: Update flow metadata (name, description), modify flow structure (nodes, edges, components), or reorganize flows into different folders. Essential for maintaining flows, fixing configurations, renaming workflows, and managing project organization over time.

Parameters:

  • flow_id (required, UUID string): Unique identifier of flow to update (from list_flows or get_flow)

  • name (optional, string, max: 255 chars): New display name for the flow

  • description (optional, string): Updated purpose and functionality description

  • data (optional, object): New flow structure with nodes, edges, and component configurations

  • folder_id (optional, UUID string): Move flow to different folder (use list_folders for valid IDs, null for root level)

Returns: FlowRead object containing:

  • id (UUID): Flow's unique identifier (unchanged)

  • name (string): Updated flow name

  • description (string): Updated description

  • folder_id (UUID): New folder location

  • user_id (UUID): Owner identifier

  • created_at (ISO timestamp): Original creation time (unchanged)

  • updated_at (ISO timestamp): Timestamp of this update

  • data (object): Complete updated flow structure

Usage Examples:

  1. Rename flow: { flow_id: "flow-uuid", name: "Improved Customer Bot" }

  2. Update description: { flow_id: "flow-uuid", description: "Processes customer inquiries with sentiment analysis" }

  3. Move to folder: { flow_id: "flow-uuid", folder_id: "folder-uuid" }

  4. Move to root: { flow_id: "flow-uuid", folder_id: null }

  5. Update structure: { flow_id: "flow-uuid", data: { nodes: [...], edges: [...] } }

  6. Rename and move: { flow_id: "flow-uuid", name: "New Name", folder_id: "folder-uuid" }

Best Practices:

  • Get current flow data with get_flow before updating to avoid overwriting changes

  • Only specify fields you want to change (partial updates supported)

  • Rebuild flow with build_flow after data modifications to validate changes

  • Use descriptive names and descriptions for team collaboration

  • Update description when flow functionality changes significantly

  • Move flows to appropriate folders to maintain organization

  • Verify folder_id exists before moving (use list_folders)

  • Update flow name if purpose or functionality changes

Common Errors:

  • "Flow not found": flow_id doesn't exist or was deleted (verify with list_flows)

  • "Flow name already exists": Choose unique name within target folder

  • "Invalid folder ID": folder_id is not valid UUID (use list_folders to get valid IDs)

  • "Folder not found": Specified folder_id doesn't exist

  • "Invalid flow data structure": data object doesn't match Langflow schema

  • "Concurrent modification": Flow was updated by another user (re-fetch with get_flow)

  • "flow_id is required": Must provide flow_id parameter

  • "Unauthorized": API key lacks permission to modify this flow

Related Tools:

  • get_flow: Retrieve current flow state before updating

  • build_flow: Validate flow after data modifications

  • list_flows: Find flow_id for flows to update

  • list_folders: Get valid folder_id values for reorganization

  • create_flow: Create new flow instead of modifying existing one

delete_flowA

Permanently remove a single flow from Langflow instance.

Purpose: Delete flows that are no longer needed, removing obsolete workflows, or cleaning up test/development flows. This operation is destructive and irreversible - deleted flows cannot be recovered unless previously backed up via download_flows.

Parameters:

  • flow_id (required, UUID string): Unique identifier of flow to delete (from list_flows or get_flow)

Returns: Success object containing:

  • success (boolean): true if deletion succeeded

  • message (string): Confirmation message

Usage Examples:

  1. Delete single flow: { flow_id: "550e8400-e29b-41d4-a716-446655440000" }

  2. Remove test flow: { flow_id: "test-flow-uuid" }

Best Practices:

  • Download flow backup with download_flows before deletion if you might need it later

  • Verify flow_id is correct using get_flow before deleting to avoid mistakes

  • Check if flow is used in production or referenced by other systems before deletion

  • Document why flow was deleted for audit purposes

  • For deleting multiple flows, use delete_flows (batch operation) instead

  • Review flow contents one final time before permanent removal

  • Consider archiving flows to dedicated folder instead of deleting

  • Ensure no running jobs or active sessions using this flow

Common Errors:

  • "Flow not found": flow_id doesn't exist or already deleted (verify with list_flows)

  • "Invalid UUID format": flow_id must be valid UUID string

  • "Cannot delete running flow": Flow has active execution (wait for completion or cancel)

  • "flow_id is required": Must provide flow_id parameter

  • "Unauthorized": API key lacks permission to delete this flow

  • "Flow is referenced": Flow is used as component in other flows (remove references first)

Related Tools:

  • download_flows: Backup flow before deletion for potential recovery

  • list_flows: Find flow_id for flows to delete

  • get_flow: Inspect flow before deletion to confirm it's the right one

  • delete_flows: Delete multiple flows at once (more efficient for bulk operations)

delete_flowsA

Delete multiple flows at once. Pass array of flow IDs.

list_componentsA

List all available Langflow components. Returns components with their types, names, and descriptions.

run_flowA

Execute a Langflow flow with inputs and retrieve execution results.

Purpose: Run a workflow and receive its outputs. Essential for testing flows, integrating workflows into applications, and automating tasks. Supports both synchronous execution and streaming for real-time responses from LLM-based flows.

Parameters:

  • flow_id_or_name (required, string): Flow identifier (UUID) or flow name (case-sensitive)

  • input_request (required, object): Execution configuration containing:

    • input_value (optional, string): Primary input data for the flow (e.g., user message, data to process)

    • output_component (optional, string): Specific output component to return

    • output_type (optional, string): Expected output format (e.g., "chat", "text", "json")

    • input_type (optional, string): Type of input being provided (e.g., "chat", "text", "json")

    • session_id (optional, string): Session ID for conversation continuity

    • tweaks (optional, object): Component-specific parameter overrides (key: component_id, value: parameter object)

  • context (optional, object): Request context passed alongside the input request

  • stream (optional, boolean, default: false): Streaming is currently rejected by this MCP client because streamed responses are not JSON serializable

Returns: RunResponse object containing:

  • outputs (array): Flow execution results from output components

  • session_id (string): Unique session identifier for conversation continuity

  • Additional fields vary by flow configuration (message, data, artifacts)

Usage Examples:

  1. Simple execution: { flow_id_or_name: "my-chatbot", input_request: { input_value: "Hello" } }

  2. With output type: { flow_id_or_name: "data-processor", input_request: { input_value: "data", output_type: "json" } }

  3. With context: { flow_id_or_name: "llm-chat", input_request: { input_value: "Explain AI" }, context: { tenant: "acme" } }

  4. With tweaks: { flow_id_or_name: "flow-uuid", input_request: { input_value: "test", tweaks: { "component-id": { temperature: 0.7 } } } }

Best Practices:

  • Use flow ID (UUID) for production; names may change or conflict

  • Build flow first with build_flow to ensure it's valid before execution

  • Leave stream false; this MCP client currently returns JSON tool responses only

  • Cache session_id for multi-turn conversations to maintain context

  • Set appropriate timeout values for long-running flows

  • Test flows with various inputs before production deployment

  • Use tweaks sparingly; prefer configuring flows in Langflow UI

Common Errors:

  • "Flow not found": Verify flow_id_or_name exists using list_flows

  • "Flow has not been built": Run build_flow before executing

  • "Invalid input configuration": Ensure input_request matches flow's expected inputs

  • "Component configuration error": Check tweaks object matches component IDs and parameter names

  • "Execution timeout": Flow took too long; increase timeout or optimize flow

  • "Missing required input": Flow expects input_value but none provided

Related Tools:

  • build_flow: Compile flow before execution to validate structure

  • get_flow: Inspect flow structure to understand required inputs

  • get_build_status: Check build completion before running flow

  • trigger_webhook: Alternative execution method via webhook endpoint

  • list_flows: Find available flows to execute

trigger_webhookB

Trigger a flow via webhook endpoint. Simplified API for webhook-based flow execution.

upload_flowB

Upload a flow from file data. Provide an object with name, content (stringified JSON), and optional type fields.

download_flowsA

Download flows as JSON export. Exports multiple flows for backup or transfer.

get_basic_examplesA

Get basic example flows. Returns a list of pre-built example flows for learning and templates.

list_foldersA

List all folders with pagination for organizing flows hierarchically.

Purpose: Retrieve folders from your Langflow instance to discover organizational structure and obtain folder IDs for flow organization. Essential for understanding project hierarchy, finding folders for flow placement, and managing workspace organization.

Parameters:

  • page (optional, number, default: 1, min: 1): Page number for pagination

  • size (optional, number, default: 50, max: 100): Number of folders per page

Returns: Array of FolderRead objects containing:

  • id (UUID): Unique folder identifier (use as folder_id in create_flow or update_flow)

  • name (string): Folder display name

  • description (string): Folder purpose description

  • parent_id (UUID): Parent folder ID if nested, null for root-level folders

  • created_at, updated_at (ISO timestamps): Folder lifecycle timestamps

Usage Examples:

  1. List all folders (default): {}

  2. Paginate through folders: { page: 2, size: 25 }

  3. Get first 10 folders: { page: 1, size: 10 }

Best Practices:

  • Call this before create_flow to find appropriate folder_id for organization

  • Use pagination for large folder collections to improve performance

  • Cache folder IDs and names to reduce API calls

  • Check parent_id to understand folder hierarchy and nesting structure

  • Keep page size <= 50 for optimal response times

  • Map folder IDs to names for user-friendly displays in UIs

Common Errors:

  • "Page size cannot exceed 100": Reduce size parameter to 100 or less

  • "Invalid page number": page must be >= 1

  • Empty results: No folders exist (create folders with create_folder)

  • Connection timeout: Reduce page size or check Langflow instance availability

Related Tools:

  • create_folder: Create new folders after reviewing existing organization

  • get_folder: Retrieve detailed information about specific folder

  • create_flow: Use folder_id from this list to organize new flows

  • update_folder: Modify folder properties found in this list

  • list_flows: Filter flows by folder_id obtained from this list

create_folderA

Create a new folder for organizing flows with optional nested hierarchy.

Purpose: Establish organizational structure in Langflow by creating folders to group related flows. Supports hierarchical organization through nested folders, enabling project-based or team-based flow management. Essential for maintaining organized workspace with many flows.

Parameters:

  • name (required, string, max: 255 chars): Folder display name (should be descriptive and unique)

  • description (optional, string): Purpose and contents description for documentation

  • parent_id (optional, UUID string): Parent folder ID for creating nested subfolder hierarchy (use list_folders to find valid parent IDs)

Returns: FolderRead object containing:

  • id (UUID): Newly created folder's unique identifier (use this as folder_id when creating/organizing flows)

  • name (string): Folder display name

  • description (string): Folder description

  • parent_id (UUID): Parent folder ID if nested, null for root-level folder

  • created_at, updated_at (ISO timestamps): Folder lifecycle timestamps

Usage Examples:

  1. Create root folder: { name: "Production Flows" }

  2. Folder with description: { name: "Customer Services", description: "Customer-facing automation workflows" }

  3. Create nested subfolder: { name: "API Integrations", parent_id: "parent-folder-uuid" }

  4. Project organization: { name: "Q1 2024 Project", description: "First quarter automation initiatives" }

Best Practices:

  • Use descriptive, hierarchical names (e.g., "Marketing/Email Campaigns" structure via nesting)

  • Add descriptions to document folder purpose and ownership

  • Plan folder hierarchy before creation (root categories, then subcategories)

  • Create folders before flows to enable immediate organization

  • Use consistent naming conventions across team (e.g., "Team - Project - Category")

  • Limit nesting depth to 2-3 levels for maintainability

  • Cache created folder IDs for subsequent flow creation operations

Common Errors:

  • "Folder name already exists": Choose unique name or create in different parent folder

  • "Invalid parent folder ID": Ensure parent_id is valid UUID from list_folders

  • "Parent folder not found": parent_id doesn't exist or was deleted

  • "Name is required": Must provide name parameter

  • "Maximum nesting depth exceeded": Too many nested levels (flatten hierarchy)

  • "Circular reference detected": parent_id creates loop in folder structure

Related Tools:

  • list_folders: Browse existing folders before creating new ones

  • update_folder: Modify folder name, description, or move to different parent

  • create_flow: Create flows organized within this folder using returned ID

  • get_folder: Retrieve folder details after creation

  • delete_folder: Remove folder when no longer needed

get_folderB

Get details of a specific folder by ID.

update_folderB

Update an existing folder. Can change name, description, or move to different parent.

delete_folderA

Delete a folder by ID. Warning: This may affect flows in the folder.

list_projectsA

List all projects with optional pagination. Projects group related flows and resources.

create_projectB

Create a new project. Projects help organize and group related flows.

get_projectB

Get details of a specific project by ID.

update_projectB

Update an existing project. Can change name or description.

delete_projectB

Delete a project by ID. Warning: This may affect flows in the project.

upload_projectB

Upload a project from file data. Provide an object with name, content (stringified JSON), and optional type fields.

download_projectA

Download a project as JSON export. Exports project for backup or transfer.

list_variablesB

List all global variables. Variables store reusable values across flows.

create_variableB

Create a new global variable. Variables can be referenced in multiple flows.

update_variableA

Update an existing variable. Can change name, value, or type.

delete_variableA

Delete a variable by ID. Warning: Flows using this variable may be affected.

build_flowA

Compile and validate a flow, returning job ID for asynchronous status monitoring.

Purpose: Build and validate a flow's component graph, ensuring all nodes are properly configured and connected. Essential prerequisite for flow execution - detects configuration errors, validates component parameters, and prepares the flow for running. Returns job_id for tracking build progress asynchronously.

Parameters:

  • flow_id (required, UUID string): Flow identifier to build and validate

  • inputs (optional, object): Input values to use during build validation (key: input_name, value: test_data)

  • data (optional, object): Flow configuration override (use to build modified version without updating flow)

  • files (optional, array of strings): File paths to include in build context

  • stop_component_id (optional, string): Component ID where build should stop (useful for partial validation)

  • start_component_id (optional, string): Component ID where build should start (skip earlier components)

  • log_builds (optional, boolean, default: true): Enable detailed build logging for debugging

  • flow_name (optional, string): Override flow name during build (doesn't affect saved flow)

  • event_delivery (optional, string, default: "polling"): Delivery mode - "polling" (recommended), "streaming", or "direct"

Returns: BuildFlowResponse object containing:

  • job_id (UUID): Unique build job identifier for status polling via get_build_status

Usage Examples:

  1. Basic build: { flow_id: "550e8400-e29b-41d4-a716-446655440000" }

  2. Build with logging: { flow_id: "flow-uuid", log_builds: true }

  3. Build with test inputs: { flow_id: "flow-uuid", inputs: { "user_message": "test" } }

  4. Partial build: { flow_id: "flow-uuid", start_component_id: "node-1", stop_component_id: "node-5" }

  5. Streaming events: { flow_id: "flow-uuid", event_delivery: "streaming" }

Best Practices:

  • Always build flow before first execution to catch configuration errors early

  • Use polling event_delivery for reliable status tracking in production

  • Enable log_builds during development for detailed error diagnostics

  • Rebuild after any flow modifications (nodes, edges, parameters)

  • Monitor build status with get_build_status using returned job_id

  • Use partial builds (start/stop component) for faster validation of specific sections

  • Validate inputs during build to ensure flow accepts expected data format

  • Cache successful build status to avoid unnecessary rebuilds

Common Errors:

  • "Flow not found": flow_id doesn't exist (verify with list_flows or get_flow)

  • "Invalid flow configuration": Flow has disconnected nodes or missing required parameters

  • "Component validation failed": Node configuration is invalid (check component settings in Langflow UI)

  • "Missing required component parameters": Required fields not set on components

  • "Build timeout": Complex flow took too long; simplify or optimize component chain

  • "Invalid component ID": start_component_id or stop_component_id doesn't exist in flow

  • "Circular dependency detected": Flow has loop in node connections

Related Tools:

  • get_build_status: Poll build completion and retrieve validation results using job_id

  • run_flow: Execute flow after successful build

  • get_flow: Inspect flow structure before building

  • cancel_build: Stop long-running build job

  • update_flow: Fix configuration errors found during build

get_build_statusA

Get build status and events for a specific build job. Use polling mode to check async build progress.

cancel_buildB

Cancel a running build job. Stops the build process for the specified job.

list_knowledge_basesA

List all knowledge bases for Retrieval-Augmented Generation (RAG) workflows.

Purpose: Discover available knowledge bases containing document collections for RAG applications. Essential for understanding what document repositories are available, finding knowledge bases for flow integration, and managing document-based AI applications.

Parameters: None

Returns: Array of KnowledgeBaseInfo objects containing:

  • name (string): Knowledge base identifier/name (use this in get_knowledge_base or delete_knowledge_base)

  • description (string): Purpose and contents description

  • Additional metadata varies by knowledge base implementation (document count, vector store info, embedding model)

Usage Examples:

  1. List all knowledge bases: {}

Best Practices:

  • Call this before integrating knowledge bases into RAG flows to verify availability

  • Use knowledge base names in Langflow's Vector Store or RAG components

  • Document which flows use which knowledge bases for dependency tracking

  • Monitor knowledge base list to identify unused repositories for cleanup

  • Cache knowledge base names for flow configuration validation

  • Verify knowledge base exists before flow execution to avoid runtime errors

Common Errors:

  • Empty results: No knowledge bases configured (create knowledge bases in Langflow UI or via API)

  • Connection timeout: Check Langflow instance availability and vector store connectivity

  • "Knowledge base service unavailable": Vector store backend not configured or unreachable

Related Tools:

  • get_knowledge_base: Retrieve detailed information about specific knowledge base

  • delete_knowledge_base: Remove individual knowledge base when no longer needed

  • bulk_delete_knowledge_bases: Clean up multiple knowledge bases at once

  • create_flow: Build RAG flows using knowledge base names from this list

get_knowledge_baseA

Get detailed information about a specific knowledge base by name.

delete_knowledge_baseA

Delete a specific knowledge base by name. Warning: This will permanently remove the knowledge base.

bulk_delete_knowledge_basesB

Delete multiple knowledge bases at once. Useful for batch cleanup operations.

upload_fileC

Upload a file to a specific flow. Supports multipart/form-data for binary file uploads.

download_fileA

Download a specific file from a flow. Returns file content as base64.

list_filesC

List all files associated with a specific flow.

delete_fileB

Delete a specific file from a flow.

get_file_imageA

Get an image file from a flow. Returns image content as base64.

list_profile_picturesA

List all available profile pictures.

get_profile_pictureB

Get a specific profile picture by folder and file name.

validate_codeA

Validate Python code for custom components. Checks syntax and provides error/warning feedback.

validate_promptB

Validate prompt template syntax. Checks for valid variable syntax and returns extracted variables.

check_storeA

Check if the Langflow component store is enabled and accessible.

check_store_api_keyB

Validate a store API key for accessing the Langflow component store.

list_store_componentsA

Browse available components in the Langflow store. Supports pagination, filtering by tags, and search.

get_store_componentB

Get detailed information about a specific store component.

list_store_tagsB

List all available component tags in the store.

get_user_likesA

Get components liked by the current user.

run_flow_advancedC

Advanced flow execution with full parameter control including tweaks, input/output types, session management, and streaming. Supports both flow UUID and flow name.

run_flow_sessionB

Execute a flow with session-based state management. Maintains conversation context across multiple calls using the same session ID.

get_registrationA

Get current user registration status from Langflow. Returns whether the user is registered and their email if available.

register_userB

Register a new user with Langflow using their email address.

process_flowB

Legacy process endpoint for backward compatibility. Processes a flow with inputs and optional tweaks.

predict_flowA

Legacy predict endpoint for backward compatibility. Predicts flow output with inputs and optional tweaks.

get_monitor_buildsA

Get build execution history for a specific flow. Retrieves vertex build map model containing build status and execution details. Essential for monitoring flow build history, debugging build failures, and tracking build performance over time.

get_monitor_messagesB

Query chat/message history with flexible filtering options. Retrieve messages filtered by flow ID, session, sender, or sender name. Supports custom ordering for chronological or reverse-chronological message retrieval. Essential for debugging chat flows, analyzing conversation patterns, and monitoring user interactions.

get_monitor_messageA

Get detailed information about a specific message by ID. Retrieves complete message data including sender, content, timestamp, and metadata. Useful for inspecting individual message details and debugging message-related issues.

get_monitor_sessionsA

List all chat session IDs, optionally filtered by flow. Returns array of session identifiers that can be used to query session-specific messages. Essential for discovering active sessions, monitoring concurrent users, and analyzing session patterns.

get_monitor_session_messagesA

Get all messages for a specific session ID. Retrieves complete conversation history for a session in chronological order. Essential for reviewing full conversation context, debugging session-specific issues, and analyzing user interactions within a session.

migrate_monitor_sessionB

Migrate messages from old session ID to new session ID. Updates all messages from the old session to belong to the new session, effectively merging or renaming sessions. Useful for session continuity, combining split sessions, or correcting session identifiers.

get_monitor_transactionsA

List transaction logs for a flow with pagination support. Retrieves detailed transaction history including execution logs, API calls, and system events. Essential for debugging flow execution, analyzing performance bottlenecks, and monitoring API usage patterns.

delete_monitor_buildsA

Delete build history for a specific flow. Removes all stored build execution records to clean up old data and free storage space. Use cautiously as this permanently removes build history that may be useful for debugging.

delete_monitor_messagesA

Delete multiple messages by their IDs. Batch deletion of message records for cleanup, privacy compliance, or storage management. Permanently removes messages from the system.

build_verticesA

⚠️ DEPRECATED: This endpoint is deprecated in Langflow API 1.6.4 and will be removed in a future version. Use "build_flow" tool instead with start_component_id/stop_component_id for partial builds.

Get vertex build order for a flow. Retrieves the ordered list of vertex IDs representing the build execution sequence. Useful for understanding flow component dependencies, optimizing build performance, and debugging build order issues. Supports partial builds with start/stop component IDs.

stream_vertex_buildA

⚠️ DEPRECATED: This endpoint is deprecated in Langflow API 1.6.4 and will be removed in a future version. Use "get_build_status" tool with event_delivery="streaming" to monitor build progress.

Stream real-time build events for a specific vertex. Provides live updates during vertex build process using server-sent events (SSE). Essential for monitoring long-running component builds, debugging build failures in real-time, and providing live build status to users.

get_versionA

Get Langflow API version information. Retrieves current API version number and related system information. Essential for compatibility checks, debugging version-specific issues, and ensuring client-server version alignment.

list_usersA

List all users in the Langflow instance. Admin-only endpoint. Supports pagination with skip and limit parameters. Returns array of user objects with id, username, email, and other profile information.

get_current_userA

Get information about the currently authenticated user. Returns user profile including id, username, email, is_active, is_superuser status, and profile image.

update_userB

Update user profile information. Can modify username, password, or profile image. Returns updated user object.

reset_user_passwordA

Reset password for a specific user. Admin-only endpoint. Requires user ID and new password (minimum 8 characters). Returns updated user object.

list_api_keysA

List all API keys for the authenticated user. Returns array of API key objects with id, name, created_at, last_used_at, total_uses, and is_active status.

create_api_keyA

Create a new API key with a specified name. Returns the created API key object including the key value (only shown once).

delete_api_keyA

Delete a specific API key by ID. This action is permanent and cannot be undone. The API key will immediately stop working.

create_custom_componentB

Create a new custom component with Python code. Requires component code, name, and optional description and return_type. Returns created component object.

loginA

Authenticate with username and password. Returns access token, optional refresh token, and token type. Use the access token in subsequent API requests.

auto_loginA

Automatically login with stored credentials or session. Returns access token if auto-login is configured and enabled.

refresh_tokenB

Refresh authentication token using refresh token. Returns new access token and optionally a new refresh token.

logoutA

Logout and invalidate current authentication session. Clears authentication tokens and terminates the session.

get_public_flowA

Get a public flow by ID without authentication. Public flows can be accessed by anyone without API key or login credentials.

batch_create_flowsA

Create multiple flows in a single batch operation. More efficient than creating flows individually. Accepts array of flow objects.

get_task_statusA

⚠️ DEPRECATED: This endpoint is deprecated in Langflow API 1.6.4 and will be removed in a future version. Use "get_build_status" tool with job_id instead of task_id.

Get status of an asynchronous task by task ID. Returns task status (pending, running, completed, failed), result if completed, or error if failed.

download_folderB

Download entire folder as compressed archive. Returns archive file containing all flows and resources in the folder.

upload_folderA

Upload folder from compressed archive. Provide base64-encoded file content and filename. Creates folder structure and imports all flows.

list_starter_projectsA

List available starter project templates. Returns array of pre-built project templates that can be used to quickly bootstrap new Langflow projects.

upload_knowledge_baseB

Ingest a file into an existing knowledge base for RAG. Provide knowledge base name, base64-encoded file content, and filename.

list_elevenlabs_voicesA

List available ElevenLabs text-to-speech voices. Returns array of voice objects with voice_id and name for use in voice synthesis flows.

health_checkA

Check Langflow instance health status. Returns health status and system information. Use to verify the API is accessible and operational.

get_logsA

Retrieve system logs. Supports both regular and streaming modes. Use stream parameter to enable real-time log streaming.

replace_flowA

Replace an entire flow (PUT) with new content. Overwrites name, description, data, and folder for the given flow ID.

expand_flowsB

Expand flows by resolving component references into full flow definitions. Pass the expansion request payload as the body object.

get_flow_eventsA

Get the event stream/history for a flow. Optionally filter to events since a given cursor/timestamp.

create_flow_eventB

Create a new event for a flow (e.g. deployment or lifecycle event).

list_flow_versionsA

List saved versions of a flow with optional pagination and deployment provider filter.

create_flow_versionA

Create a new saved version (snapshot) of a flow. Optionally provide a body with version metadata.

get_flow_versionC

Get a specific saved version of a flow by version ID.

delete_flow_versionB

Delete a specific saved version of a flow.

activate_flow_versionA

Activate a specific saved version of a flow, making it the current version. Optionally save the current state as a draft first.

detect_variablesA

Detect global variables referenced by one or more flow versions.

Prompts

Interactive templates invoked by user choice

NameDescription
langflow-quickstartStep-by-step guide to create and run your first Langflow flow using the MCP server.
langflow-debug-flowDiagnose and fix issues with a Langflow flow that is failing to build or execute.
langflow-rag-setupGuide to setting up a RAG (Retrieval-Augmented Generation) pipeline with knowledge bases in Langflow.
langflow-flow-optimizationAnalyze a flow and suggest optimizations for performance, reliability, and best practices.
langflow-batch-operationsGuide for performing bulk operations on flows, folders, and projects in Langflow.

Resources

Contextual data attached and managed by the client

NameDescription
Langflow Connection ConfigCurrent Langflow MCP server connection configuration (base URL, timeout, mode).
Langflow Health StatusConnection info and pointer to the health_check tool for live status.
Available Tools SummarySummary of all available MCP tools with their descriptions.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nobrainer-tech/langflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server