# MCP server

Source: https://langbot.app/docs/en/deploy/mcp-server

Manage a LangBot workspace from Claude, Cursor or any other MCP client: endpoint, authentication and tools.

LangBot has its own MCP server. With it, an AI assistant or agent outside LangBot can manage one workspace: bots, processors, workflows, knowledge bases, scheduled tasks and monitoring. (To let your bots use tools of other MCP servers, see [MCP](https://langbot.app/docs/en/usage/mcp/readme.md).)

## Connect

| Setting        | Value                                               |
| -------------- | --------------------------------------------------- |
| Transport      | Streamable HTTP                                     |
| URL            | `http://<your-langbot>:5300/mcp`                    |
| Authentication | `X-API-Key: <key>` or `Authorization: Bearer <key>` |

Create a key under **API Integration** in the sidebar. A key belongs to one workspace and only sees what its scopes allow. On a self-hosted instance with a single workspace, the global `api.global_api_key` in `config.yaml` also works. Treat keys like passwords: a key with write scopes can change your bots.

## Tools

Tools use the same operations, permissions and checks as the WebUI. Secrets are masked in what they return.

| Area                                                        | Tools                                                                                                                                                                                              |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bots                                                        | `list_bots`, `get_bot`, `create_bot`, `update_bot`, `delete_bot`, `list_bot_event_route_statuses`, …                                                                                               |
| Agents and other processors                                 | `list_processors`, `create_processor`, `update_processor`, `debug_agent`, `list_processor_runs`, …                                                                                                 |
| Chats (Pipelines)                                           | `list_pipelines`, `create_pipeline`, `update_pipeline`, `run_pipeline`, …                                                                                                                          |
| [Workflows](https://langbot.app/docs/en/usage/workflows.md) | `list_workflows`, `get_workflow`, `get_workflow_options`, `create_workflow`, `update_workflow`, `test_workflow`, `copy_workflow`, `delete_workflow`                                                |
| Workflow runs and versions                                  | `list_workflow_runs`, `get_workflow_run`, `list_workflow_versions`, `get_workflow_version`, `restore_workflow_version`                                                                             |
| Workflow data tables                                        | `list_workflow_data_tables`, `create_workflow_data_table`, `list_workflow_data_table_rows`, `add_workflow_data_table_row`, `update_workflow_data_table_rows`, `delete_workflow_data_table_rows`, … |
| Scheduled tasks                                             | `list_schedules`, `create_schedule`, `pause_schedule`, `trigger_schedule`, `list_schedule_runs`, …                                                                                                 |
| Knowledge, models, plugins, skills                          | `list_knowledge_bases`, `retrieve_knowledge_base`, `list_llm_models`, `list_plugins`, `list_skills`, …                                                                                             |
| Monitoring                                                  | `get_monitoring_executions`, `get_inflight_executions`, `get_monitoring_errors`, `get_monitoring_llm_calls`, …                                                                                     |
| Workspace and sandbox                                       | `get_system_info`, `get_workspace_timezone`, `get_sandbox_status`, …                                                                                                                               |

Workflow graphs, step types and trigger formats are described in the [`langbot-mcp-ops`](https://github.com/langbot-app/LangBot/blob/master/skills/skills/langbot-mcp-ops/SKILL.md) skill. Give that file to your agent before it builds workflows. `get_workflow_options` returns the step types and operations available on your instance.

## Related

- [`lbctl`](https://langbot.app/docs/en/deploy/lbctl.md): the same workspace from a terminal.
- [Settings](https://langbot.app/docs/en/deploy/settings.md): `api.global_api_key`.
