langflow-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port (only used when MCP_MODE=http) | 3000 |
| MCP_MODE | No | Transport mode: stdio or http | stdio |
| LOG_LEVEL | No | Logging level (debug, info, warn, error) | info |
| AUTH_TOKEN | No | Authentication token for HTTP mode | |
| LANGFLOW_API_KEY | Yes | API key for Langflow authentication | |
| LANGFLOW_BASE_URL | Yes | Base URL of the Langflow instance | http://localhost:7860 |
| LANGFLOW_CONSOLIDATED_TOOLS | No | Set to 'true' to enable consolidated mode (27 tools instead of 209) | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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:
Returns: FlowRead object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: Array of FlowRead objects containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: FlowRead object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: FlowRead object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: Success object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: RunResponse object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: Array of FolderRead objects containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: FolderRead object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Returns: BuildFlowResponse object containing:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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:
Usage Examples:
Best Practices:
Common Errors:
Related Tools:
|
| 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
| Name | Description |
|---|---|
| langflow-quickstart | Step-by-step guide to create and run your first Langflow flow using the MCP server. |
| langflow-debug-flow | Diagnose and fix issues with a Langflow flow that is failing to build or execute. |
| langflow-rag-setup | Guide to setting up a RAG (Retrieval-Augmented Generation) pipeline with knowledge bases in Langflow. |
| langflow-flow-optimization | Analyze a flow and suggest optimizations for performance, reliability, and best practices. |
| langflow-batch-operations | Guide for performing bulk operations on flows, folders, and projects in Langflow. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Langflow Connection Config | Current Langflow MCP server connection configuration (base URL, timeout, mode). |
| Langflow Health Status | Connection info and pointer to the health_check tool for live status. |
| Available Tools Summary | Summary of all available MCP tools with their descriptions. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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