Connect Apilio to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the evaluate logicblock tool in Apilio
Use the list string variables tool in Apilio
Use the get variable tool in Apilio
Use the update boolean variable tool in Apilio
Use the update numeric variable tool in Apilio
Use the update string variable tool in Apilio
Supported Tools
evaluate_logicblock
Evaluate Logicblock
Trigger the evaluation of a logicblock in Apilio. This evaluates all conditions in the logicblock and executes the associated action chain (positive or negative) based on the result. The logicblock must be active for the actions to run.
list_string_variables
List String Variables
Retrieve all string variables from your Apilio account. String variables store text values used in automation logic, such as current weather status, last triggered device, or custom labels.
get_variable
Get Variable
Retrieve the current value and details of a specific variable in Apilio by its ID. Supports boolean, string, and numeric variable types. Useful for checking a variable's current state before updating it or making automation decisions.
update_boolean_variable
Update Boolean Variable
Set, toggle, or update a boolean variable in Apilio. Use **set** to assign true or false directly, or **toggle** to flip the current value. Boolean variables are commonly used to track device states and home/away status.
update_numeric_variable
Update Numeric Variable
Set a numeric variable to an absolute value, or add/subtract from the current value in Apilio. Use **set** to assign a specific number, **add** to increment, or **subtract** to decrement. Useful for counters, thresholds, and sensor-based automations.
update_string_variable
Update String Variable
Set or clear a string variable in Apilio. Provide a **value** to set the variable, or omit it to clear the stored text. String variables can hold any text value used in automation conditions.
list_logicblocks
List Logicblocks
Retrieve all logicblocks from your Apilio account. Logicblocks are the core automation units that combine conditions with AND/OR/NOT logic and trigger different action chains based on whether the overall evaluation is positive or negative.
get_condition
Get Condition
Retrieve the details and current evaluation state of a specific condition in Apilio. Returns whether the condition is currently met, which is useful for checking automation rule states before triggering logicblocks.
manage_logicblock
Manage Logicblock
Activate or deactivate a logicblock in Apilio. Active logicblocks will execute their action chains when evaluated; inactive logicblocks can still be evaluated but their actions will not run. This acts as an on/off switch for your automation logic.
list_numeric_variables
List Numeric Variables
Retrieve all numeric variables from your Apilio account. Numeric variables store number values used in automation logic, such as temperature readings, motion counts, or sensor thresholds.
list_conditions
List Conditions
Retrieve conditions from your Apilio account. Use get_condition to read a condition's current evaluation state. Conditions are rules that compare variable values against expected states (e.g., "Is it nighttime?") and are combined with AND/OR/NOT logic in logicblocks.
list_boolean_variables
List Boolean Variables
Retrieve all boolean variables from your Apilio account. Boolean variables store true/false states used in automation conditions, such as whether it is nighttime, if a door is open, or if you are home.
Enable Apilio in Metorial. In your Metorial portal, enable the Apilio MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Apilio tools.
Enable Apilio in Metorial. In your Metorial portal, enable the Apilio MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Apilio tools.
Enable Apilio in Metorial. In your Metorial portal, enable the Apilio MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Apilio tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Apilio in Metorial. In your Metorial portal, enable the Apilio MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Apilio tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Apilio in Metorial. In your Metorial portal, enable the Apilio MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Apilio tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Apilio through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Apilio and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Apilio tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Read and update existing Apilio boolean, string, and numeric variables; discover variable, time, and Tuya conditions; check condition states; and list, evaluate, activate, or deactivate logicblocks. Coordinate smart home automation through the Apilio REST API.
Frequently asked questions
Common questions about connecting Apilio to AI agents with Metorial.
How many tools does the Apilio MCP server have?
The Apilio MCP server exposes 12 tools, including Evaluate Logicblock, List String Variables, Get Variable. Each one is governed and traced through Metorial.
Does the Apilio MCP server support triggers?
Apilio exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Apilio MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Apilio MCP server through the same Metorial URL.
How do I give only some teams access to Apilio?
Use role-based access control to decide which teams, users, and agents can use Apilio and which of its tools they can call.
Can I self-host the Apilio MCP server?
Yes. Metorial is open source, so you can run the Apilio MCP server yourself or use the hosted gateway.
Connect Apilio to production AI agents
See how Metorial gives your team governed access to Apilio, with tracing and security controls built in.