# Hystruct — how to use (mcp.ai)

Connect your Hystruct account and use 1 tools for web scraping straight from your AI agent. Connect with your own API key. Hystruct is an AI-driven web scraping tool that simplifies data extraction from websites using predefined schemas, supporting various data fields like job listings and e-commerce.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_hystruct?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `hystruct_list_all_webhooks`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/hystruct`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/hystruct/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/hystruct/list/all/webhooks` — Tool to list all webhooks associated with the account. Use when you need to retrieve every configured webhook for your team.

## Example prompts
- "What can I do in Hystruct?"
- "Show me a summary of my Hystruct account"

## More
- Page: https://mcp.ai/hystruct
- Agent spec (llms.txt): https://mcp.ai/hystruct/llms.txt
- Postman collection: https://mcp.ai/hystruct/postman.json
