MCP Gateway
appmixer.ai.mcptools
The MCP Gateway component (appmixer.ai.mcptools.MCPGateway, category AI > MCP Tools) turns an Appmixer flow into a set of tools for MCP clients such as Claude Code, Claude Desktop, Cursor, VS Code or Windsurf. Every action component you connect to its tool output port becomes a tool that the model can call.
The MCP client doesn't connect to the gateway directly. It runs the Appmixer MCP Server (appmixer-mcp) on your computer, and that server finds the gateways in your running flows and forwards tool calls to them. You don't need to register an OAuth app. The MCP server signs in as an Appmixer user.
How it works
When a flow with the MCP Gateway starts, the gateway builds tool definitions from the components on its
toolport. It then registers them with its webhook URL for the owner of the flow.appmixer-mcpreads the gateways registered for the user it signs in as (GET /plugins/appmixer/ai/mcptools/gateways) and offers their tools to the MCP client. It also listens for gateways being added or removed (/plugins/appmixer/ai/mcptools/events).When the model calls a tool,
appmixer-mcpsends the call to the gateway webhook. The gateway runs the component and returns its output as the tool result.
Before you start
The MCP Tools module (
appmixer.ai.mcptools) installed on your Appmixer tenant. Its plugin provides the endpoints above.Node.js 20 or newer on the computer where the MCP client runs.
The API URL of your tenant, e.g.
https://api.YOUR_TENANT.appmixer.cloud. This is not the URL of the Studio.An Appmixer user.
appmixer-mcpsees only the gateways in flows that this user owns.
Build the flow
Create a flow and add MCP Gateway from AI > MCP Tools.
Connect the action components you want to expose to the gateway's
tooloutput port. You can also connect Appmixer MCP servers (appmixer.mcpservers.*). Each tool of an MCP server becomes a separate tool.Configure each connected component:
Fields the model fills: insert the Model Defined Parameter variable of the
toolport. These fields become the parameters of the tool.Fixed fields: type the value. It's sent on every call and the model can't change it.
Variables from other components don't work here. A tool call runs only the connected component, so these values never exist, and the gateway ignores such fields.
Rename each connected component to say what the tool does, e.g. Create support ticket. The name becomes part of the tool name.
Start the flow. The tools exist only while the flow is running.
What the model sees:
Tool name:
<short component ID>_<component name>, e.g.2oRMgurHVxbLEUavJPTjmE_Create_support_ticket. Characters other than letters, digits and_are replaced with_, and the name is limited to 64 characters.Tool description: the description of the component type.
Parameter description: the label and tooltip of the field in the component inspector. A parameter is required if the field is required in the component.
The out port of the gateway sends one message when the flow starts: the webhook URL, the component ID, the flow ID and the list of tools. MCP clients don't need it. Use it when the rest of the flow needs to know the gateway, for example to send its webhook URL somewhere.
Get Appmixer credentials
appmixer-mcp signs in with an access token, or with a username and password.
Access token: get one by signing in through the API. The response contains
token.The token expires after the period set in
GRIDD_JWT_TOKEN_EXP(30 days by default). After that you have to replace it in the client configuration.Username and password:
appmixer-mcpgets the token by itself and gets a new one when it expires. This is the better choice for a setup that runs for a long time.
Configuration
appmixer-mcp reads these environment variables:
APPMIXER_BASE_URL(required): the API URL of your tenant.APPMIXER_ACCESS_TOKEN: the access token. Required unless you set the username and password.APPMIXER_USERNAME,APPMIXER_PASSWORD: the credentials used to get and renew the token.TOOLS: which tools to offer,api,mcpgatewayby default.mcpgateway: the tools of your MCP Gateways.api: tools that manage your flows. They list, start, stop and delete flows, trigger components, send app events and read flow logs.
Connect Claude Code
Put the options after the server name and the command after
--.-s useradds the server to all your projects. Leave it out to add it to the current project only.Run
/mcpin Claude Code to see the status of the server and its tools.
More in the Claude Code documentation: Connect Claude Code to tools via MCP.
Connect Claude Desktop
Open Settings > Developer and click Edit Config. This opens
claude_desktop_config.json:macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server:
Quit Claude Desktop and start it again. Settings > Developer shows the
appmixerserver and whether it's running.
Other MCP clients
Cursor, VS Code, Windsurf and other MCP clients run the same command (npx -y appmixer-mcp) with the same environment variables. The appmixer-mcp README shows the configuration for each of them.
Check the connection
In Claude Code,
/mcplists theappmixerserver with the tools of your running gateways.Without an MCP client, list the gateways registered for your user:
Each running gateway is one entry with
flowId,componentId,webhookandtools.
Security
A tool call runs the component with the connected accounts of the flow owner. Anyone who has the token or the credentials used by
appmixer-mcpcan call the tools.Expose only the actions you are fine with the model running. Set the fields that must not change (e.g. a recipient or a project) as fixed values instead of leaving them to the model.
Troubleshooting
The server doesn't start with "Base URL is required" or "Either access token or username and password are required". The client configuration is missing
APPMIXER_BASE_URL, or both the token and the username and password.The server runs but offers no gateway tools.
The flow with the gateway isn't running.
The flow belongs to a different user than the one
appmixer-mcpsigns in as.TOOLSdoesn't includemcpgateway.The MCP Tools module isn't installed on the tenant. The
gatewaysrequest in Check the connection returns 404.
The tools don't change after a flow starts or stops.
appmixer-mcpnotifies the client, but not every client reloads its tool list. Reconnect the server (/mcpin Claude Code) or restart Claude Desktop.Requests fail with "Unauthorized". The access token has expired. Get a new one, or set the username and password instead.
A tool call fails with "Failed to fetch … Not Found". The flow was stopped, or the client is using an old tool list. Reload the tools as described above.
A tool returns "Error calling tool …". The component itself failed, e.g. because a required field is empty or a connected account has expired. The text includes the error of the component, and the flow logs in Appmixer have the details.
Tools of a deleted flow are still listed. If a flow is removed without its gateway being stopped, the gateway stays registered. Remove it:
Server logs: Claude Desktop writes the output of the server to
~/Library/Logs/Claude/mcp-server-appmixer.logon macOS and%APPDATA%\Claude\logs\on Windows.
More about local MCP servers: Connect to local MCP servers.
Last updated
Was this helpful?
