ByteChef LogoByteChef
Settings
Coming soon

MCP Server

Connect AI assistants to ByteChef using the Model Context Protocol

Coming soon

This capability is not available in the latest released version of ByteChef.

ByteChef exposes a Model Context Protocol (MCP) server that lets AI assistants - such as Claude, Cursor, and Windsurf - interact directly with your ByteChef instance to manage projects, workflows, and components.

This is the management server: its tools operate on ByteChef itself. To publish your own component actions and workflows as tools for an assistant to call, use MCP Servers in the Automation workspace instead - that is a different server, with a different URL and a different tool set.

The management server is on by default. An administrator turns it off with:

BYTECHEF_AI_MCP_SERVER_ENABLED=false

See the AI MCP Server configuration reference.

Get Your MCP Server URL

The management server has one URL: https://<your-host>/api/management/mcp. It is the same for every ByteChef account and contains no secret, so you can add it to an MCP directory or share it with teammates. ByteChef works out which account a request belongs to from the credential: an admin API key, or the account you signed in with (this requires the built-in authorization server - see Sign in with ByteChef).

  1. Open ByteChef and go to Settings → MCP Server
  2. Copy the MCP server URL. The snippets are grouped into per-client tabs - Claude, Cursor, Windsurf, and Other.

The server speaks the Streamable HTTP transport only.

The settings page is available to tenant admins only.

The URL alone is never enough to connect: every request must also carry a credential - see Authentication.


Authentication

Every request must carry a credential: an admin API key or a sign-in through ByteChef itself. Requests without one are rejected with 401. There is no anonymous mode.

Upgrading? Earlier versions had a Require authentication setting that could be switched off. That setting is gone: a server that had it off now requires a credential like any other, so its clients must send one - see API key below. Admin API keys are an Enterprise Edition feature; on Community Edition, connect by signing in with ByteChef.

API key (default)

Create an admin API key under Settings → Admin API Keys (an Enterprise Edition page) and send it with every request as a Bearer header:

Authorization: Bearer <your-api-key>

It must be an Admin API key. A workspace API key - the kind under Settings → API Keys, for the automation public API - is rejected here with 401, because it is bound to a workspace while this server administers the whole account.

The connection snippets below include this header. An admin API key works in every environment: it is not checked against the X-ENVIRONMENT header, whichever environment it was created under. Tools that work inside a workspace take their own environment argument, which defaults to Development. A key that belongs to a deactivated user is rejected. Because the key is bound to your user account, the AI assistant acts with your permissions - and you can revoke a single client by deleting its key without touching the server URL or other clients.

Sign in with ByteChef (optional)

When the built-in OAuth2 authorization server is enabled, an MCP client that supports OAuth can connect to https://<your-host>/api/management/mcp without an API key. The client registers itself, you sign in with your ByteChef account and approve the connection, and the client then acts with your permissions. An administrator can see and revoke these connections under OAuth2 Clients; a revoked connection stops working on its next request.

The authorization server is on by default. The shipped configuration also trusts its own tokens through this issuer entry:

BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_SELF=true
BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_URI=${BYTECHEF_PUBLIC_URL}
BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_TENANT_CLAIM=tenant_id

To turn it off, set BYTECHEF_OAUTH2_AUTHORIZATION_SERVER_ENABLED=false.

Setting any BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_* variable replaces the whole default issuer list. When you add an external issuer, repeat the three self issuer lines above at a free index (for example _1_), or sign-in with ByteChef stops working. Discovery advertises the first issuer, so put the self issuer at index 0 only when it should be the advertised sign-in.

Set BYTECHEF_PUBLIC_URL to the address clients use to reach ByteChef. The issuer, the discovery documents and the 401 challenge all name that address, and an MCP client refuses a server whose discovery names a different one - which is what happens behind a proxy when the public URL is not set.

What the client gets:

  • A consent screen every time a client asks for access that you have not approved yet. Approving grants the requested scope (mcp:management here, mcp:automation for automation MCP servers) and nothing more.
  • A token for this URL only. The access token names the MCP URL the client connected to; it does not work on another MCP server, and the client cannot exchange it for one.
  • An access token that lasts one hour and a refresh token that lasts 30 days. The client renews the access token on its own, without sending you back to the browser. Each refresh token works once - the client gets a new one with every renewal - so a stolen refresh token is useless after the client's next renewal.

See Environment Variables for details.


Connect an AI Assistant

Claude.ai (web)

claude.ai integrations cannot send custom headers, so they cannot send the admin API key this server requires. Use Claude Desktop instead - unless the built-in authorization server is enabled, in which case claude.ai can connect to the tenant-less URL by signing in with ByteChef (see Sign in with ByteChef).

Claude Desktop

  1. Open Claude Desktop

  2. Go to Settings → Developer → Edit Config → Open claude_desktop_config.json

  3. Add the following, replacing the URL with yours and YOUR_API_KEY with an admin API key:

    {
      "mcpServers": {
        "ByteChef": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://<your-host>/api/management/mcp",
            "--header",
            "Authorization: Bearer YOUR_API_KEY"
          ]
        }
      }
    }
  4. Save the file, then quit and restart Claude Desktop


Available Tools

The MCP server exposes the following tools to connected AI assistants.

Tools that list, search or create things inside a workspace take a workspaceId. The assistant finds it with listWorkspaces; a call that needs a workspace and names none returns an error pointing there. Tools that take a project or workflow id act on that object directly, and your permissions in its workspace decide whether the call is allowed.

Projects that belong to Embedded are out of reach of these tools: the automation catalog and the projects of your connected users are left out of listings and searches, and a call that names one of their projects or workflows fails as if it did not exist. Manage them from the Embedded pages instead.

Workspaces

ToolDescription
listWorkspacesList the workspaces you can access (all workspaces for an admin), with their ids

Projects

ToolDescription
createProjectCreate a new project
updateProjectUpdate an existing project
deleteProjectDelete a project
getProjectGet project details
listProjectsList the projects of a workspace
searchProjectsSearch projects by keyword
publishProjectPublish a project
getProjectStatusGet the current status of a project

Workflows

ToolDescription
createProjectWorkflowCreate a new workflow in a project
updateWorkflowUpdate an existing workflow
deleteWorkflowDelete a workflow
getWorkflowGet workflow details
listWorkflowsList the workflows of a project
searchWorkflowsSearch workflows by keyword
saveWorkflowTestConnectionSelect or create the connection a workflow uses when it is tested, in the current environment

Components & Actions

ToolDescription
listComponentsList all available components
getComponentGet component details
searchComponentsSearch components by keyword
listActionsList the actions of all components
getActionGet action details
searchActionsSearch actions by keyword
getActionDefinitionGet the full definition of an action
getOutputPropertyGet output property details
getPropertiesGet all properties of a trigger, action, or cluster element
searchClusterElementsFind components that support a given cluster element type
getClusterElementGet cluster element details

Triggers

ToolDescription
listTriggersList the triggers of all components
getTriggerGet trigger details
searchTriggersSearch triggers by keyword
getTriggerDefinitionGet the full definition of a trigger

Tasks

These tools address a task through a type argument - an action, a trigger, a task dispatcher, or, for some of them, a cluster element. listTasks and searchTasks cover actions, triggers and task dispatchers; getTaskDefinition does not accept cluster elements; getTaskDispatcherBuildInstructions takes no type.

ToolDescription
listTasksList tasks in the project, optionally filtered by type
getTaskGet details for one task of a given type
searchTasksSearch across actions, triggers, and task dispatchers
validateTaskValidate a task's structure and properties against its definition
getTaskDefinitionGet a JSON template for configuring the task in a workflow
getTaskDispatcherBuildInstructionsGet instructions for building with task dispatchers
getTaskPropertiesGet a task's properties, including nested ones
getTaskOutputPropertyGet the structure of a task's output property

Task dispatchers

ToolDescription
listTaskDispatchersList all task dispatchers
getTaskDispatcherGet task dispatcher details
searchTaskDispatchersSearch task dispatchers by keyword
getTaskDispatcherDefinitionGet the full definition of a task dispatcher
getTaskDispatcherPropertiesGet a task dispatcher's properties
getTaskDispatcherOutputGet a task dispatcher's output property

Editing a step in place

ToolDescription
updateScriptComponentCodeReplace the code of a script component task
updateClusterElementTaskUpdate a cluster element attached to a task
updateWorkflowRootPropertiesMerge root-level properties - label, description, inputs, outputs - into a workflow definition

Workspace resources

GroupTools
SkillsgetAiSkills, getAiSkill, createAiSkill, updateAiSkill, updateAiSkillContent, getAiSkillFilePaths, getAiSkillFileContent, createAdditionalFilesInSkill, removeFileInSkill
MCP serverslistMcpServers, createMcpServer, updateMcpServer, createMcpProject, cloneMcpProject, listMcpProjectWorkflows
DeploymentslistProjectDeployments, createProjectDeployment, updateProjectDeployment, deleteProjectDeployment, rollbackProjectDeployment, toggleProjectDeployment, promoteWorkflow
Knowledge baseslistKnowledgeBases, queryKnowledgeBase, createKnowledgeBase, addKnowledgeBaseDocument, deleteKnowledgeBaseDocument, cloneKnowledgeBase, deleteKnowledgeBase

Delegate tools

Some capabilities are exposed as a single delegate tool that takes a natural-language instruction and calls the underlying operations itself, rather than as a flat list of tools like the ones above. Each accepts a workspaceId (find it with listWorkspaces).

ToolDescription
buildWorkflowDesigns, edits, debugs or explains a workflow
importWorkflowConverts a workflow definition from another tool (n8n, Make, Zapier, Workato, …) into an existing ByteChef workflow
configureClusterElementDesigns, edits or explains cluster elements, such as an AI Agent's model, chat memory, RAG source, guardrails or tools
writeScriptWrites, edits, debugs or explains the JavaScript or Python code of a script task
authorSkillLists, explains, creates or updates skills
debugWorkflowExecutionInspects or diagnoses a past workflow run and fixes the underlying workflow
configureMcpServerWrites the tool name, tool description and per-input fromAi(...) mapping of every workflow already attached to an MCP server; it never creates the server, attaches workflows or enables it

How is this guide?

Last updated on

On this page