Set up Hystruct in Metorial for Claude, ChatGPT and Cursor
Share Hystruct with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 5 tools (2 read-only).
To give your team Hystruct in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Hystruct integration in a Metorial portal, and each person connects with an API key. Agents can extract structured data from websites using AI-powered web scraping. The integration has 5 tools, 2 read-only, 2 write and 1 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Hystruct in a portal and how each person connects
- What Hystruct asks for when you connect, and where to find it
- How to keep the 2 read-only tools and reject the other 3
Before you start
- A portal with at least one access group
- An API key from Hystruct for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | apiKey |
API Key
To connect, a person enters:
apiKey: Your Hystruct API key. Find it in the Hystruct dashboard under Settings > API Keys.
Admin: share Hystruct in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Hystruct. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Hystruct.
Choose who gets it
Add the access groups that should see Hystruct. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Hystruct integration. Once it exists, check which groups have it:
Employee: connect Hystruct
In the portal
Open Hystruct in the catalog
Sign in to your portal and open Hystruct. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Hystruct connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 2 read-only tools, such as list_webhooks and get_workflow_data, and lose the 2 write tools, such as create_job or subscribe_webhook, and the destructive tool unsubscribe_webhook.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 5 tools, minus any you rejected. list_webhooks takes no input. It lists all active webhook subscriptions for your Hystruct team.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (2)
list_webhooks: List all active webhook subscriptions for your Hystruct team.get_workflow_data: Retrieve all extracted and scraped data for a specific Hystruct workflow. NeedsworkflowId.
Write tools (2)
create_job: Queue a new scraping job for an existing Hystruct workflow. NeedsworkflowId.subscribe_webhook: Create a new webhook subscription for a specific Hystruct workflow. NeedsworkflowId,webhookUrlandevents.
Destructive tools (1)
unsubscribe_webhook: Delete an existing webhook subscription by its ID. NeedswebhookId.
Triggers
Hystruct has 1 trigger, which fire on events in Hystruct:
workflow_events: Receive real-time notifications when events occur in Hystruct workflows, such as job completions or data updates.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Hystruct there
- Tool permissions: tool filters and what employees see
- Hystruct on metorial.com: the integration overview